2006-11-13 00:30:03 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
ensureDir $out
|
|
|
|
|
|
|
|
ln -s $kernel $out/kernel
|
|
|
|
ln -s $grub $out/grub
|
2006-11-27 14:59:50 +01:00
|
|
|
ln -s $bootStage2 $out/init
|
|
|
|
ln -s $initrd $out/initrd
|
2006-12-10 01:04:58 +01:00
|
|
|
ln -s $activateConfiguration $out/activate
|
2006-12-10 23:29:44 +01:00
|
|
|
ln -s $etc/etc $out/etc
|
2007-03-20 14:01:53 +01:00
|
|
|
ln -s $systemPath $out/sw
|
2007-09-27 14:24:05 +02:00
|
|
|
ln -s $upstart $out/upstart
|
2006-12-10 23:29:44 +01:00
|
|
|
|
2006-12-11 18:36:57 +01:00
|
|
|
echo "$kernelParams" > $out/kernel-params
|
2007-06-23 18:09:05 +02:00
|
|
|
echo "$configurationName" > $out/configuration-name
|
2006-11-13 00:30:03 +01:00
|
|
|
|
2007-12-20 12:36:30 +01:00
|
|
|
mkdir $out/fine-tune
|
|
|
|
ChildCount=0;
|
|
|
|
for i in $children; do
|
|
|
|
ChildCount=$(( ChildCount + 1 ));
|
|
|
|
ln -s $i $out/fine-tune/child-$ChildCount;
|
|
|
|
done
|
|
|
|
|
2006-11-13 00:30:03 +01:00
|
|
|
cat > $out/menu.lst << GRUBEND
|
2006-12-11 18:36:57 +01:00
|
|
|
kernel $kernel init=$bootStage2 $kernelParams
|
2006-11-24 01:04:29 +01:00
|
|
|
initrd $initrd
|
2006-11-13 00:30:03 +01:00
|
|
|
GRUBEND
|
|
|
|
|
|
|
|
ensureDir $out/bin
|
2006-12-10 23:29:44 +01:00
|
|
|
substituteAll $switchToConfiguration $out/bin/switch-to-configuration
|
2006-11-13 00:30:03 +01:00
|
|
|
chmod +x $out/bin/switch-to-configuration
|