If the file (created by setup) exists, use boot parameters from there

for the boot floppy instead of copying it from the current root partition.
This makes making a boot floppy at installation time before booting from
the new system possible (conveniently).
This commit is contained in:
Ben Gras 2005-05-13 12:27:42 +00:00
parent 6f9848f51c
commit e248f7c1a3

View file

@ -138,9 +138,15 @@ fdboot)
# Make bootable and copy the boot parameters.
installboot -d $dev $mdec/bootblock /boot/boot || exit
dd if=$root of=$dev skip=1 seek=1 count=1 conv=silent || exit
pfile=fdbootparams
if [ -f $pfile ]
then echo "Using floppy boot parameters from file $pfile."
edparams $dev "`cat $pfile`" || exit
else echo "Copying floppy boot parameters from $root."
dd if=$root of=$dev skip=1 seek=1 count=1 conv=silent || exit
fi
edparams $dev 'main(){delay 2000;boot}; save' || exit
echo "Test kernel installed on $dev with boot parameters from $root"
echo "Test kernel installed on $dev"
;;
cdfdboot)