diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-02-16 10:23:01 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-02-21 14:51:59 +0100 |
commit | 03d319a45f6af7d394a72930ec91e63e5221a4a4 (patch) | |
tree | a2a71ff8236b0c8f849d5ea6fae82d59c614c8b9 | |
parent | homectl: add missing break (diff) | |
download | systemd-03d319a45f6af7d394a72930ec91e63e5221a4a4.tar.xz systemd-03d319a45f6af7d394a72930ec91e63e5221a4a4.zip |
mkosi: Add more debugging
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/mkosi.yml | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml index c11202a18c..22673d417a 100644 --- a/.github/workflows/mkosi.yml +++ b/.github/workflows/mkosi.yml @@ -106,12 +106,25 @@ jobs: run: mkosi summary - name: Boot ${{ matrix.distro }} systemd-nspawn - run: sudo mkosi boot ${{ env.KERNEL_CMDLINE }} audit=0 + run: | + STATUS=0 + sudo strace -f -Z -o strace mkosi boot ${{ env.KERNEL_CMDLINE }} audit=0 || STATUS=$? + if [ $STATUS -ne 0 ]; then + cat strace + fi + exit $STATUS env: SYSTEMD_LOG_LEVEL: debug - name: Check ${{ matrix.distro }} systemd-nspawn - run: sudo mkosi shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }" + run: | + STATUS=0 + sudo strace -f -Z -o strace mkosi shell bash -c "[[ -e /testok ]] || STATUS=$?" + if [ $STATUS -ne 0 ]; then + cat /failed-services + cat strace + fi + exit $STATUS env: SYSTEMD_LOG_LEVEL: debug @@ -119,6 +132,13 @@ jobs: run: timeout -k 30 10m mkosi qemu - name: Check ${{ matrix.distro }} QEMU - run: sudo mkosi shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }" + run: | + STATUS=0 + sudo strace -f -Z -o strace mkosi shell bash -c "[[ -e /testok ]] || STATUS=$?" + if [ $STATUS -ne 0 ]; then + cat /failed-services + cat strace + fi + exit $STATUS env: SYSTEMD_LOG_LEVEL: debug |