Skip to content

Commit a0c6f54

Browse files
committed
mkosi: disable secure boot check as GHA cannot enable it due to hyperv bug
(cherry picked from commit 87acfc7)
1 parent 86da563 commit a0c6f54

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

mkosi.presets/20-final/mkosi.extra/usr/lib/systemd/mkosi-check-and-shutdown.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ systemctl reset-failed systemd-vconsole-setup.service
77
systemctl --failed --no-legend | tee /failed-services
88

99
# Check that secure boot keys were properly enrolled.
10-
if ! systemd-detect-virt --container; then
11-
cmp /sys/firmware/efi/efivars/SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c <(printf '\6\0\0\0\1')
12-
cmp /sys/firmware/efi/efivars/SetupMode-8be4df61-93ca-11d2-aa0d-00e098032b8c <(printf '\6\0\0\0\0')
10+
# TODO: re-enable once secureboot can be enabled on nested kvm on hyperv without crashing qemu
11+
# if ! systemd-detect-virt --container; then
12+
# cmp /sys/firmware/efi/efivars/SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c <(printf '\6\0\0\0\1')
13+
# cmp /sys/firmware/efi/efivars/SetupMode-8be4df61-93ca-11d2-aa0d-00e098032b8c <(printf '\6\0\0\0\0')
1314
# TODO: Figure out why this is failing
1415
# grep -q this_should_be_here /proc/cmdline
1516
# grep -q this_should_not_be_here /proc/cmdline && exit 1
16-
fi
17+
# fi
1718

1819
# Exit with non-zero EC if the /failed-services file is not empty (we have -e set)
1920
[[ ! -s /failed-services ]]

0 commit comments

Comments
 (0)