mkosi: Add more debugging

This commit is contained in:
Daan De Meyer 2023-02-16 10:23:01 +01:00 committed by Luca Boccassi
parent 464ec1dec7
commit 03d319a45f

View File

@ -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