Merge pull request #44108 from bennofs/gen-config-extlinux

nixos-generate-config: detect extlinux bootloader

Changed files
+7
nixos
modules
installer
+7
nixos/modules/installer/tools/nixos-generate-config.pl
···
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
EOF
+
} elsif (-e "/boot/extlinux") {
+
$bootLoaderConfig = <<EOF;
+
# Use the extlinux boot loader. (NixOS wants to enable GRUB by default)
+
boot.loader.grub.enable = false;
+
# Enables the generation of /boot/extlinux/extlinux.conf
+
boot.loader.generic-extlinux-compatible.enable = true;
+
EOF
} elsif ($virt ne "systemd-nspawn") {
$bootLoaderConfig = <<EOF;
# Use the GRUB 2 boot loader.