LiveDVD synchronized with rescue CD.
svn path=/nixos/trunk/; revision=10077
This commit is contained in:
parent
56107c81b0
commit
808f4ad781
@ -198,38 +198,49 @@ rec {
|
|||||||
makeTarball "nixpkgs.tar.bz2" (builtins.filterSource filter /etc/nixos/nixpkgs);
|
makeTarball "nixpkgs.tar.bz2" (builtins.filterSource filter /etc/nixos/nixpkgs);
|
||||||
|
|
||||||
|
|
||||||
# The configuration file for isolinux.
|
# The configuration file for Grub.
|
||||||
isolinuxCfg = pkgs.writeText "isolinux.cfg" "
|
grubCfg = pkgs.writeText "menu.lst" ''
|
||||||
default linux
|
default 0
|
||||||
prompt 1
|
timeout 10
|
||||||
timeout 60
|
splashimage /boot/background.xpm.gz
|
||||||
label linux
|
|
||||||
kernel vmlinuz
|
|
||||||
append initrd=initrd ${toString (system.config.boot.kernelParams)}
|
|
||||||
";
|
|
||||||
|
|
||||||
|
title NixOS Installer / Rescue
|
||||||
|
kernel /boot/vmlinuz ${toString system.config.boot.kernelParams}
|
||||||
|
initrd /boot/initrd
|
||||||
|
|
||||||
|
title Memtest86+
|
||||||
|
kernel /boot/memtest.bin
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
# Create an ISO image containing the isolinux boot loader, the
|
# Create an ISO image containing the Grub boot loader, the kernel,
|
||||||
# kernel, the initrd produced above, and the closure of the stage 2
|
# the initrd produced above, and the closure of the stage 2 init.
|
||||||
# init.
|
|
||||||
rescueCD = import ../helpers/make-iso9660-image.nix {
|
rescueCD = import ../helpers/make-iso9660-image.nix {
|
||||||
inherit (pkgs) stdenv perl cdrtools;
|
inherit (pkgs) stdenv perl cdrtools;
|
||||||
isoName = "nixos-${platform}.iso";
|
isoName = "nixos-${platform}.iso";
|
||||||
|
|
||||||
# Single files to be copied to fixed locations on the CD.
|
# Single files to be copied to fixed locations on the CD.
|
||||||
contents = [
|
contents = [
|
||||||
{ source = pkgs.syslinux + "/lib/syslinux/isolinux.bin";
|
{ source = "${pkgs.grub}/lib/grub/i386-pc/stage2_eltorito";
|
||||||
target = "isolinux/isolinux.bin";
|
target = "boot/grub/stage2_eltorito";
|
||||||
}
|
}
|
||||||
{ source = isolinuxCfg;
|
{ source = grubCfg;
|
||||||
target = "isolinux/isolinux.cfg";
|
target = "boot/grub/menu.lst";
|
||||||
}
|
}
|
||||||
{ source = pkgs.kernel + "/vmlinuz";
|
{ source = pkgs.kernel + "/vmlinuz";
|
||||||
target = "isolinux/vmlinuz";
|
target = "boot/vmlinuz";
|
||||||
}
|
}
|
||||||
{ source = system.initialRamdisk + "/initrd";
|
{ source = system.initialRamdisk + "/initrd";
|
||||||
target = "isolinux/initrd";
|
target = "boot/initrd";
|
||||||
|
}
|
||||||
|
{ source = pkgs.memtest86 + "/memtest.bin";
|
||||||
|
target = "boot/memtest.bin";
|
||||||
|
}
|
||||||
|
{ source = pkgs.fetchurl {
|
||||||
|
url = http://www.gnome-look.org/CONTENT/content-files/36909-soft-tux.xpm.gz;
|
||||||
|
sha256 = "14kqdx2lfqvh40h6fjjzqgff1mwk74dmbjvmqphi6azzra7z8d59";
|
||||||
|
};
|
||||||
|
target = "boot/background.xpm.gz";
|
||||||
}
|
}
|
||||||
{ source = cdMountPoints;
|
{ source = cdMountPoints;
|
||||||
target = "/";
|
target = "/";
|
||||||
@ -263,7 +274,7 @@ rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
bootable = true;
|
bootable = true;
|
||||||
bootImage = "isolinux/isolinux.bin";
|
bootImage = "boot/grub/stage2_eltorito";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user