mkosi: Use proper check to detect whether we're in a VM

This commit is contained in:
Daan De Meyer
2023-05-31 14:19:25 +02:00
parent fdeed78a71
commit 4dfb458f42
@@ -4,7 +4,7 @@
systemctl --failed --no-legend | tee /failed-services
# Check that secure boot keys were properly enrolled.
if [[ -d /sys/firmware/efi/efivars/ ]]; then
if ! systemd-detect-virt --container; then
cmp /sys/firmware/efi/efivars/SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c <(printf '\6\0\0\0\1')
cmp /sys/firmware/efi/efivars/SetupMode-8be4df61-93ca-11d2-aa0d-00e098032b8c <(printf '\6\0\0\0\0')
grep -q this_should_be_here /proc/cmdline