···121 <literal>gnucash24</literal>.
122 </para>
123 </listitem>
124+ <listitem>
125+ <para>
126+ The GRUB specific option <option>boot.loader.grub.extraInitrd</option>
127+ has been replaced with the generic option
128+ <option>boot.initrd.secrets</option>. This option creates a secondary
129+ initrd from the specified files, rather than using a manually created
130+ initrd file.
131+ </para>
132+ </listitem>
133 </itemizedlist>
134 </section>
135
+5-15
nixos/modules/system/boot/loader/grub/grub.nix
···35 let
36 efiSysMountPoint = if args.efiSysMountPoint == null then args.path else args.efiSysMountPoint;
37 efiSysMountPoint' = replaceChars [ "/" ] [ "-" ] efiSysMountPoint;
038 in
39 pkgs.writeText "grub-config.xml" (builtins.toXML
40 { splashImage = f cfg.splashImage;
···49 storePath = config.boot.loader.grub.storePath;
50 bootloaderId = if args.efiBootloaderId == null then "NixOS${efiSysMountPoint'}" else args.efiBootloaderId;
51 timeout = if config.boot.loader.timeout == null then -1 else config.boot.loader.timeout;
52- inherit efiSysMountPoint;
53 inherit (args) devices;
54 inherit (efi) canTouchEfiVariables;
55 inherit (cfg)
56 version extraConfig extraPerEntryConfig extraEntries forceInstall useOSProber
57- extraEntriesBeforeNixOS extraPrepareConfig extraInitrd configurationLimit copyKernels
58 default fsIdentifier efiSupport efiInstallAsRemovable gfxmodeEfi gfxmodeBios;
59 path = (makeBinPath ([
60 pkgs.coreutils pkgs.gnused pkgs.gnugrep pkgs.findutils pkgs.diffutils pkgs.btrfs-progs
···284 '';
285 };
286287- extraInitrd = mkOption {
288- type = types.nullOr types.path;
289- default = null;
290- example = "/boot/extra_initramfs.gz";
291- description = ''
292- The path to a second initramfs to be supplied to the kernel.
293- This ramfs will not be copied to the store, so that it can
294- contain secrets such as LUKS keyfiles or ssh keys.
295- This implies that rolling back to a previous configuration
296- won't rollback the state of this file.
297- '';
298- };
299-300 useOSProber = mkOption {
301 default = false;
302 type = types.bool;
···540 boot.loader.grub.mirroredBoots = optionals (cfg.devices != [ ]) [
541 { path = "/boot"; inherit (cfg) devices; inherit (efi) efiSysMountPoint; }
542 ];
00543544 system.build.installBootLoader =
545 let