nixpkgs/nixos/modules/system/boot
iliana etaoin 53135cc8c7 nixos/grub: don't die on EFI-only systems if devices != ["nodev"]
Without this change, GRUB installation on non-PC systems (such as
aarch64-linux) only works if boot.loader.grub.devices is set to exactly
`["nodev"]`. If boot.loader.grub.devices was any other value (including
the default `[]`), users got the error:

    Died at /nix/store/an9ngv2vg95bdcy0ifsxlbkasprm4dcw-install-grub.pl line 586.

install-grub.pl verifies that if both $grub and $grubEfi are set, then
$grubTarget (e.g. i386-pc) and $grubTargetEfi (e.g. x86_64-efi) must
both be set, or the script will `die`. On non-PC systems, $grubTarget
is "".

When boot.loader.grub.devices is ["nodev"], $grub is set to null,
disabling non-EFI installation. But if a user has devices set for an
x86_64 config, or is using only mirroredBoots without setting devices,
they will hit this `die`.

This change sets $grub to "" if $grubTarget is "".
2023-06-25 17:46:12 +00:00
..
loader nixos/grub: don't die on EFI-only systems if devices != ["nodev"] 2023-06-25 17:46:12 +00:00
systemd Merge pull request #227628 from m-bdf/logind-handle-keys 2023-05-29 14:31:43 -04:00
binfmt.nix nixos/binfmt: add loongarch64-linux 2023-04-28 12:11:58 +03:00
emergency-mode.nix
grow-partition.nix systemd-stage-1: Add assertions for unsupported options. 2023-04-21 13:05:12 -04:00
initrd-network.nix systemd-initrd: Flush networkd 2023-04-17 16:41:36 -04:00
initrd-openvpn.nix systemd-initrd: OpenVPN 2023-04-17 16:41:35 -04:00
initrd-ssh.nix systemd-initrd: sshd 2023-04-17 16:41:35 -04:00
kernel_config.nix
kernel.nix nixos/*: remove trailing period in mkEnableOptions 2023-02-08 15:23:34 +01:00
kexec.nix
luksroot.nix nixos: fix typos 2023-05-19 22:31:04 -04:00
modprobe.nix nixos/modprobe: fix typo in boot.modprobeConfig.enable documentation 2023-01-20 13:58:15 +01:00
networkd.nix networkd: support specifying the ClientIdentifier for DHCPv4 options 2023-05-27 15:06:06 +02:00
pbkdf2-sha512.c
plymouth.nix nixos/plymouth: don't start Plymouth on config switch 2022-11-05 19:52:42 -04:00
resolved.nix nixos: Make services.resolved discoverable via "systemd-resolved" search 2023-04-07 01:09:05 +02:00
shutdown.nix
stage-1-init.sh nixos: fix typos 2023-05-19 22:31:04 -04:00
stage-1.nix systemd-initrd: Fix up root directory mode 2023-04-11 15:20:47 -04:00
stage-2-init.sh nixos/version: add config.system.nixos.distroName and config.system.nixos.distroId 2023-01-14 16:19:06 -05:00
stage-2.nix nixos/version: add config.system.nixos.distroName and config.system.nixos.distroId 2023-01-14 16:19:06 -05:00
stratisroot.nix minor refactoring 2023-05-19 10:22:45 -04:00
systemd.nix Merge pull request #216826 from gdamjan/systemd-253 2023-03-13 17:37:39 +01:00
timesyncd.nix
tmp.nix nixos/tmp: add a note to useTmpfs on potential issues 2023-03-20 17:27:06 +01:00
uvesafb.nix nixos/uvesafb: init 2022-10-23 11:47:11 -03:00