2006-11-12 15:30:03 -08:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
ensureDir $out
|
|
|
|
|
|
|
|
ln -s $kernel $out/kernel
|
|
|
|
ln -s $grub $out/grub
|
2006-11-27 05:59:50 -08:00
|
|
|
ln -s $bootStage2 $out/init
|
|
|
|
ln -s $initrd $out/initrd
|
2006-12-09 16:04:58 -08:00
|
|
|
ln -s $activateConfiguration $out/activate
|
2006-12-10 14:29:44 -08:00
|
|
|
ln -s $etc/etc $out/etc
|
|
|
|
|
2006-11-27 05:59:50 -08:00
|
|
|
echo "$extraKernelParams" > $out/kernel-params
|
2006-11-12 15:30:03 -08:00
|
|
|
|
|
|
|
cat > $out/menu.lst << GRUBEND
|
2006-11-27 05:59:50 -08:00
|
|
|
kernel $kernel init=$bootStage2 $extraKernelParams
|
2006-11-23 16:04:29 -08:00
|
|
|
initrd $initrd
|
2006-11-12 15:30:03 -08:00
|
|
|
GRUBEND
|
|
|
|
|
|
|
|
ensureDir $out/bin
|
2006-12-10 14:29:44 -08:00
|
|
|
substituteAll $switchToConfiguration $out/bin/switch-to-configuration
|
2006-11-12 15:30:03 -08:00
|
|
|
chmod +x $out/bin/switch-to-configuration
|