systemd: disable bootloader by default if EFI is disabled

If EFI is disabled, either because it is not available on the platform or
because the user has manually disabled it, automatically disable building
systemd-boot. The "withBootloader -> withEfi" assertion is maintained in
case someone manually tries to enable the bootloader without EFI support.

This fixes evaluation on platforms without EFI support.
This commit is contained in:
Ben Wolsieffer 2023-10-06 21:27:11 -04:00
parent 4deff14bf0
commit 1c2425ac78

View file

@ -88,7 +88,7 @@
, withAnalyze ? true
, withApparmor ? true
, withAudit ? true
, withBootloader ? !stdenv.hostPlatform.isMusl # compiles systemd-boot, assumes EFI is available.
, withBootloader ? withEfi && !stdenv.hostPlatform.isMusl # compiles systemd-boot, assumes EFI is available.
, withCompression ? true # adds bzip2, lz4, xz and zstd
, withCoredump ? true
, withCryptsetup ? true