]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Run in debug mode
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 9 May 2023 18:53:02 +0000 (20:53 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 11 May 2023 10:18:50 +0000 (12:18 +0200)
Let's make sure we log more of what mkosi's doing so we can debug
issues better. Note this also makes mkosi set SYSTEMD_LOG_LEVEL=debug
when running programs so we'll get all the systemd debug logging as
well.

.github/workflows/mkosi.yml

index fc1c95ebfa526edc0399814b34fb2628a2d82c63..12f3b6e73ab3642d963aa25c455f25952df6cee5 100644 (file)
@@ -71,6 +71,9 @@ jobs:
           - distro: centos
             release: "8"
 
+    env:
+      SYSTEMD_LOG_LEVEL: debug
+
     steps:
     - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
     - uses: systemd/mkosi@3008c7e9383669b7fb6f6afe556c6fd28f28f8f4
@@ -99,22 +102,22 @@ jobs:
         EOF
 
     - name: Generate secure boot key
-      run: mkosi genkey
+      run: mkosi --debug genkey
 
     - name: Show ${{ matrix.distro }} image summary
       run: mkosi summary
 
     - name: Build ${{ matrix.distro }}
-      run: mkosi
+      run: mkosi --debug
 
     - name: Boot ${{ matrix.distro }} systemd-nspawn
-      run: sudo mkosi boot
+      run: sudo mkosi --debug boot
 
     - name: Check ${{ matrix.distro }} systemd-nspawn
-      run: sudo mkosi shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }"
+      run: sudo mkosi --debug shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }"
 
     - name: Boot ${{ matrix.distro }} QEMU
-      run: timeout -k 30 10m mkosi qemu
+      run: timeout -k 30 10m mkosi --debug qemu
 
     - name: Check ${{ matrix.distro }} QEMU
-      run: sudo mkosi shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }"
+      run: sudo mkosi --debug shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }"