From 9f0e137338a0c8186a104b4af5c6d49d09552784 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 1 Jun 2016 12:51:33 +0200 Subject: [PATCH] Rename boot.loader.gummiboot.enable -> boot.loader.systemd-boot.enable --- nixos/doc/manual/installation/installing-uefi.xml | 4 ++-- .../installer/tools/nixos-generate-config.pl | 4 ++-- .../system/boot/loader/gummiboot/gummiboot.nix | 11 ++++++++--- nixos/tests/installer.nix | 14 +++++++------- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/nixos/doc/manual/installation/installing-uefi.xml b/nixos/doc/manual/installation/installing-uefi.xml index 90d18695447..1cb43112944 100644 --- a/nixos/doc/manual/installation/installing-uefi.xml +++ b/nixos/doc/manual/installation/installing-uefi.xml @@ -26,7 +26,7 @@ changes: vfat filesystem. - You must set to + You must set to true. nixos-generate-config should do this automatically for new configurations when booted in UEFI mode. @@ -38,7 +38,7 @@ changes: You may want to look at the options starting with - and + and as well. diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl index ca7fb71ba9b..5e576367eb2 100644 --- a/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/nixos/modules/installer/tools/nixos-generate-config.pl @@ -518,8 +518,8 @@ if ($showHardwareConfig) { my $bootLoaderConfig = ""; if (-e "/sys/firmware/efi/efivars") { $bootLoaderConfig = < "vm-state-machine/machine.qcow2", hdaInterface => "${iface}", '' - + optionalString (bootLoader == "gummiboot") ''bios => "${pkgs.OVMF}/FV/OVMF.fd", ''; + + optionalString (bootLoader == "systemd-boot") ''bios => "${pkgs.OVMF}/FV/OVMF.fd", ''; in '' $machine->start; @@ -159,7 +159,7 @@ let makeInstallerTest = name: { createPartitions, preBootCommands ? "", extraConfig ? "" - , bootLoader ? "grub" # either "grub" or "gummiboot" + , bootLoader ? "grub" # either "grub" or "systemd-boot" , grubVersion ? 2, grubDevice ? "/dev/vda", grubIdentifier ? "uuid" , enableOCR ? false, meta ? {} }: @@ -195,7 +195,7 @@ let virtualisation.qemu.diskInterface = if grubVersion == 1 then "scsi" else "virtio"; - boot.loader.gummiboot.enable = mkIf (bootLoader == "gummiboot") true; + boot.loader.systemd-boot.enable = mkIf (bootLoader == "systemd-boot") true; hardware.enableAllFirmware = mkForce false; @@ -249,7 +249,7 @@ in { ''; }; - # Simple GPT/UEFI configuration using Gummiboot with 3 partitions: ESP, swap & root filesystem + # Simple GPT/UEFI configuration using systemd-boot with 3 partitions: ESP, swap & root filesystem simpleUefiGummiboot = makeInstallerTest "simpleUefiGummiboot" { createPartitions = '' @@ -269,7 +269,7 @@ in { "mount LABEL=BOOT /mnt/boot", ); ''; - bootLoader = "gummiboot"; + bootLoader = "systemd-boot"; }; # Same as the previous, but now with a separate /boot partition.