Added feature to remember root parameter in /usr/src/tools, so make fdboot

will know how to make a boot floppy before actually booting from the new
system.
This commit is contained in:
Ben Gras 2005-05-13 12:26:40 +00:00
parent b480fa7c18
commit 6f9848f51c

View file

@ -364,6 +364,9 @@ if [ $cache -eq 0 ]; then cache=; else cache="ramsize=$cache"; fi
# Make bootable.
installboot -d /dev/$root /usr/mdec/bootblock /boot/boot >/dev/null || exit
edparams /dev/$root "rootdev=$root; ramimagedev=$root; $cache; save" || exit
pfile="/usr/src/tools/fdbootparams"
echo "Remembering boot parameters in ${pfile}."
echo "rootdev=$root; ramimagedev=$root; $cache; save" >$pfile || exit
sync
echo "