diff options
author | Benno Fünfstück <benno.fuenfstueck@gmail.com> | 2018-07-21 21:10:01 +0000 |
---|---|---|
committer | Benno Fünfstück <benno.fuenfstueck@gmail.com> | 2018-07-25 22:45:09 +0200 |
commit | 29af6a608038bc126bd47ed21b48b95c3811fdd1 (patch) | |
tree | cb6e133e05eb52d1b82aadc16e3cc764734e4ee1 | |
parent | f03238525cec2e4589b0d748a19df94342f83bb1 (diff) | |
download | nixlib-29af6a608038bc126bd47ed21b48b95c3811fdd1.tar nixlib-29af6a608038bc126bd47ed21b48b95c3811fdd1.tar.gz nixlib-29af6a608038bc126bd47ed21b48b95c3811fdd1.tar.bz2 nixlib-29af6a608038bc126bd47ed21b48b95c3811fdd1.tar.lz nixlib-29af6a608038bc126bd47ed21b48b95c3811fdd1.tar.xz nixlib-29af6a608038bc126bd47ed21b48b95c3811fdd1.tar.zst nixlib-29af6a608038bc126bd47ed21b48b95c3811fdd1.zip |
nixos-generate-config: detect extlinux bootloader
-rw-r--r-- | nixos/modules/installer/tools/nixos-generate-config.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl index 165566912401..b543ca1509cc 100644 --- a/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/nixos/modules/installer/tools/nixos-generate-config.pl @@ -537,6 +537,13 @@ if ($showHardwareConfig) { 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. |