summary refs log tree commit diff
path: root/pkgs/os-specific/linux/systemd
diff options
context:
space:
mode:
authorBen Wolsieffer <benwolsieffer@gmail.com>2023-10-06 21:27:11 -0400
committerBen Wolsieffer <benwolsieffer@gmail.com>2023-10-06 23:49:07 -0400
commit1c2425ac787a033086ae687cedb4b30e1ad4c341 (patch)
treee55a026100917b5ddc92196005fb38431552ded8 /pkgs/os-specific/linux/systemd
parent4deff14bf0e49eea484ea45eb5a30253b151045d (diff)
downloadnixpkgs-1c2425ac787a033086ae687cedb4b30e1ad4c341.tar
nixpkgs-1c2425ac787a033086ae687cedb4b30e1ad4c341.tar.gz
nixpkgs-1c2425ac787a033086ae687cedb4b30e1ad4c341.tar.bz2
nixpkgs-1c2425ac787a033086ae687cedb4b30e1ad4c341.tar.lz
nixpkgs-1c2425ac787a033086ae687cedb4b30e1ad4c341.tar.xz
nixpkgs-1c2425ac787a033086ae687cedb4b30e1ad4c341.tar.zst
nixpkgs-1c2425ac787a033086ae687cedb4b30e1ad4c341.zip
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.
Diffstat (limited to 'pkgs/os-specific/linux/systemd')
-rw-r--r--pkgs/os-specific/linux/systemd/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix
index 0d38016d9d7..d96a6882d63 100644
--- a/pkgs/os-specific/linux/systemd/default.nix
+++ b/pkgs/os-specific/linux/systemd/default.nix
@@ -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