diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-09-13 22:10:25 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-09-13 22:10:25 +0000 |
commit | c4f910f55015b150bebe3d3ecdea76c1aa8bbcca (patch) | |
tree | a1793a719be053a1e4323dc556346edb0cf984b5 /modules/installer/cd-dvd/iso-image.nix | |
parent | 4046056cdc3140871421bcff81a220f2be5a44cd (diff) | |
download | nixpkgs-c4f910f55015b150bebe3d3ecdea76c1aa8bbcca.tar nixpkgs-c4f910f55015b150bebe3d3ecdea76c1aa8bbcca.tar.gz nixpkgs-c4f910f55015b150bebe3d3ecdea76c1aa8bbcca.tar.bz2 nixpkgs-c4f910f55015b150bebe3d3ecdea76c1aa8bbcca.tar.lz nixpkgs-c4f910f55015b150bebe3d3ecdea76c1aa8bbcca.tar.xz nixpkgs-c4f910f55015b150bebe3d3ecdea76c1aa8bbcca.tar.zst nixpkgs-c4f910f55015b150bebe3d3ecdea76c1aa8bbcca.zip |
* Substitute the path of the system derivation directly in the stage 2
init script. This removes the need for the `systemConfig' boot parameter; `init=<stage-2-init>' is enough. However, the GRUB menu builder still needs to add `systemConfig' to the kernel command line for compatibility with old configurations. svn path=/nixos/trunk/; revision=23775
Diffstat (limited to 'modules/installer/cd-dvd/iso-image.nix')
-rw-r--r-- | modules/installer/cd-dvd/iso-image.nix | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/installer/cd-dvd/iso-image.nix b/modules/installer/cd-dvd/iso-image.nix index 15ac3449207..8117d8631f5 100644 --- a/modules/installer/cd-dvd/iso-image.nix +++ b/modules/installer/cd-dvd/iso-image.nix @@ -174,11 +174,9 @@ in # Closures to be copied to the Nix store on the CD, namely the init # script and the top-level system configuration directory. isoImage.storeContents = - [ config.system.build.bootStage2 - config.system.build.toplevel - ] ++ - (optional config.isoImage.includeSystemBuildDependencies - config.system.build.toplevel.drvPath); + [ config.system.build.toplevel ] ++ + optional config.isoImage.includeSystemBuildDependencies + config.system.build.toplevel.drvPath; # Create the squashfs image that contains the Nix store. system.build.squashfsStore = import ../../../lib/make-squashfs.nix { @@ -220,7 +218,7 @@ in boot.loader.grub.extraEntries = '' menuentry "NixOS Installer / Rescue" { - linux /boot/bzImage init=${config.system.build.bootStage2} systemConfig=${config.system.build.toplevel} ${toString config.boot.kernelParams} + linux /boot/bzImage init=${config.system.build.toplevel}/init ${toString config.boot.kernelParams} initrd /boot/initrd } |