mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
c43dc7b013
svn path=/nixos/trunk/; revision=9375
25 lines
589 B
Bash
25 lines
589 B
Bash
source $stdenv/setup
|
|
|
|
ensureDir $out
|
|
|
|
ln -s $kernel $out/kernel
|
|
ln -s $grub $out/grub
|
|
ln -s $bootStage2 $out/init
|
|
ln -s $initrd $out/initrd
|
|
ln -s $activateConfiguration $out/activate
|
|
ln -s $etc/etc $out/etc
|
|
ln -s $systemPath $out/sw
|
|
ln -s $upstart $out/upstart
|
|
|
|
echo "$kernelParams" > $out/kernel-params
|
|
echo "$configurationName" > $out/configuration-name
|
|
|
|
cat > $out/menu.lst << GRUBEND
|
|
kernel $kernel init=$bootStage2 $kernelParams
|
|
initrd $initrd
|
|
GRUBEND
|
|
|
|
ensureDir $out/bin
|
|
substituteAll $switchToConfiguration $out/bin/switch-to-configuration
|
|
chmod +x $out/bin/switch-to-configuration
|