forked from mirrors/nixpkgs
49f8402876
* Stage 2 init: handle non-read-only roots. svn path=/nixu/trunk/; revision=7014
37 lines
760 B
Nix
37 lines
760 B
Nix
let
|
|
|
|
# The root device.
|
|
rootDevice = "/dev/hda1";
|
|
|
|
# The device on which GRUB should be installed (leave empty if you
|
|
# don't want GRUB to be installed).
|
|
grubDevice = "/dev/hda";
|
|
|
|
# Build boot scripts.
|
|
bootEnv = import ./rescue-system.nix {
|
|
autoDetectRootDevice = false;
|
|
inherit rootDevice;
|
|
stage2Init = "/init"; # !!! should be bootEnv.bootStage2;
|
|
readOnlyRoot = false;
|
|
};
|
|
|
|
in
|
|
|
|
with bootEnv;
|
|
|
|
rec {
|
|
|
|
|
|
systemConfiguration = pkgs.stdenv.mkDerivation {
|
|
name = "system-configuration";
|
|
builder = ./system-configuration.sh;
|
|
inherit (pkgs) grub coreutils gnused gnugrep diffutils;
|
|
inherit grubDevice;
|
|
inherit bootStage2;
|
|
kernel = pkgs.kernel + "/vmlinuz";
|
|
initrd = initialRamdisk + "/initrd";
|
|
};
|
|
|
|
|
|
}
|