2006-11-12 23:30:03 +00:00
|
|
|
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";
|
|
|
|
|
2006-11-13 11:41:27 +00:00
|
|
|
# Build boot scripts.
|
|
|
|
bootEnv = import ./rescue-system.nix {
|
2006-11-12 23:30:03 +00:00
|
|
|
autoDetectRootDevice = false;
|
|
|
|
inherit rootDevice;
|
2006-11-13 11:41:27 +00:00
|
|
|
stage2Init = "/init"; # !!! should be bootEnv.bootStage2;
|
|
|
|
readOnlyRoot = false;
|
2006-11-12 23:30:03 +00:00
|
|
|
};
|
|
|
|
|
2006-11-13 11:41:27 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
with bootEnv;
|
2006-11-12 23:30:03 +00:00
|
|
|
|
|
|
|
rec {
|
|
|
|
|
|
|
|
|
|
|
|
systemConfiguration = pkgs.stdenv.mkDerivation {
|
|
|
|
name = "system-configuration";
|
|
|
|
builder = ./system-configuration.sh;
|
|
|
|
inherit (pkgs) grub coreutils gnused gnugrep diffutils;
|
|
|
|
inherit grubDevice;
|
2006-11-13 11:41:27 +00:00
|
|
|
inherit bootStage2;
|
2006-11-12 23:30:03 +00:00
|
|
|
kernel = pkgs.kernel + "/vmlinuz";
|
|
|
|
initrd = initialRamdisk + "/initrd";
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|