git.iko.soy/typeable/nixpkgs
on master help sign in
Rename boot.loader.gummiboot.enable -> boot.loader.systemd-boot.enable
commit9f0e137338a0c8186a104b4af5c6d49d09552784 authorEelco Dolstra <eelco.dolstra@logicblox.com> dateWed 1 Jun 2016, 12:51 (11 years ago) parent587473c
4 files changed+19−14
nixos/doc/manual/installation/installing-uefi.xml+2−2 nixos/modules/installer/tools/nixos-generate-config.pl+2−2 nixos/modules/system/boot/loader/gummiboot/gummiboot.nix+8−3 nixos/tests/installer.nix+7−7
nixos/doc/manual/installation/installing-uefi.xml+2−2
@@ -26,7 +26,7 @@ changes:
2626 <literal>vfat</literal> filesystem.</para>
2727 </listitem>
2828 <listitem>
29− <para>You must set <option>boot.loader.gummiboot.enable</option> to
29+ <para>You must set <option>boot.loader.systemd-boot.enable</option> to
3030 <literal>true</literal>. <command>nixos-generate-config</command>
3131 should do this automatically for new configurations when booted in
3232 UEFI mode.</para>
@@ -38,7 +38,7 @@ changes:
3838 </listitem>
3939 <listitem>
4040 <para>You may want to look at the options starting with
41− <option>boot.loader.efi</option> and <option>boot.loader.gummiboot</option>
41+ <option>boot.loader.efi</option> and <option>boot.loader.systemd-boot</option>
4242 as well.</para>
4343 </listitem>
4444</itemizedlist>
nixos/modules/installer/tools/nixos-generate-config.pl+2−2
@@ -518,8 +518,8 @@ if ($showHardwareConfig) {
518518 my $bootLoaderConfig = "";
519519 if (-e "/sys/firmware/efi/efivars") {
520520 $bootLoaderConfig = <<EOF;
521− # Use the gummiboot efi boot loader.
522− boot.loader.gummiboot.enable = true;
521+ # Use the systemd-boot EFI boot loader.
522+ boot.loader.systemd-boot.enable = true;
523523 boot.loader.efi.canTouchEfiVariables = true;
524524EOF
525525 } elsif ($virt ne "systemd-nspawn") {
nixos/modules/system/boot/loader/gummiboot/gummiboot.nix+8−3
@@ -3,7 +3,7 @@
33with lib;
44
55let
6− cfg = config.boot.loader.gummiboot;
6+ cfg = config.boot.loader.systemd-boot;
77
88 efi = config.boot.loader.efi;
99
@@ -23,7 +23,12 @@ let
2323 inherit (efi) efiSysMountPoint canTouchEfiVariables;
2424 };
2525in {
26− options.boot.loader.gummiboot = {
26+
27+ imports =
28+ [ (mkRenamedOptionModule [ "boot" "loader" "gummiboot" "enable" ] [ "boot" "loader" "systemd-boot" "enable" ])
29+ ];
30+
31+ options.boot.loader.systemd-boot = {
2732 enable = mkOption {
2833 default = false;
2934
@@ -47,7 +52,7 @@ in {
4752 system = {
4853 build.installBootLoader = gummibootBuilder;
4954
50− boot.loader.id = "gummiboot";
55+ boot.loader.id = "systemd-boot";
5156
5257 requiredKernelConfig = with config.lib.kernelConfig; [
5358 (isYes "EFI_STUB")
nixos/tests/installer.nix+7−7
@@ -30,8 +30,8 @@ let
3030 boot.loader.grub.configurationLimit = 100 + ${toString forceGrubReinstallCount};
3131 ''}
3232
33− ${optionalString (bootLoader == "gummiboot") ''
34− boot.loader.gummiboot.enable = true;
33+ ${optionalString (bootLoader == "systemd-boot") ''
34+ boot.loader.systemd-boot.enable = true;
3535 ''}
3636
3737 hardware.enableAllFirmware = lib.mkForce false;
@@ -57,7 +57,7 @@ let
5757 (if system == "x86_64-linux" then "-m 768 " else "-m 512 ") +
5858 (optionalString (system == "x86_64-linux") "-cpu kvm64 ");
5959 hdFlags = ''hda => "vm-state-machine/machine.qcow2", hdaInterface => "${iface}", ''
60− + optionalString (bootLoader == "gummiboot") ''bios => "${pkgs.OVMF}/FV/OVMF.fd", '';
60+ + optionalString (bootLoader == "systemd-boot") ''bios => "${pkgs.OVMF}/FV/OVMF.fd", '';
6161 in
6262 ''
6363 $machine->start;
@@ -159,7 +159,7 @@ let
159159
160160 makeInstallerTest = name:
161161 { createPartitions, preBootCommands ? "", extraConfig ? ""
162− , bootLoader ? "grub" # either "grub" or "gummiboot"
162+ , bootLoader ? "grub" # either "grub" or "systemd-boot"
163163 , grubVersion ? 2, grubDevice ? "/dev/vda", grubIdentifier ? "uuid"
164164 , enableOCR ? false, meta ? {}
165165 }:
@@ -195,7 +195,7 @@ let
195195 virtualisation.qemu.diskInterface =
196196 if grubVersion == 1 then "scsi" else "virtio";
197197
198− boot.loader.gummiboot.enable = mkIf (bootLoader == "gummiboot") true;
198+ boot.loader.systemd-boot.enable = mkIf (bootLoader == "systemd-boot") true;
199199
200200 hardware.enableAllFirmware = mkForce false;
201201
@@ -249,7 +249,7 @@ in {
249249 '';
250250 };
251251
252− # Simple GPT/UEFI configuration using Gummiboot with 3 partitions: ESP, swap & root filesystem
252+ # Simple GPT/UEFI configuration using systemd-boot with 3 partitions: ESP, swap & root filesystem
253253 simpleUefiGummiboot = makeInstallerTest "simpleUefiGummiboot"
254254 { createPartitions =
255255 ''
@@ -269,7 +269,7 @@ in {
269269 "mount LABEL=BOOT /mnt/boot",
270270 );
271271 '';
272− bootLoader = "gummiboot";
272+ bootLoader = "systemd-boot";
273273 };
274274
275275 # Same as the previous, but now with a separate /boot partition.