]> Zhao Yanbai Git Server - minix.git/commitdiff
Added feature to remember root parameter in /usr/src/tools, so make fdboot
authorBen Gras <ben@minix3.org>
Fri, 13 May 2005 12:26:40 +0000 (12:26 +0000)
committerBen Gras <ben@minix3.org>
Fri, 13 May 2005 12:26:40 +0000 (12:26 +0000)
will know how to make a boot floppy before actually booting from the new
system.

commands/scripts/setup.sh

index 363cb8bfb360506dfbe0bed7d7418b4cebc9a0c7..97a6f04ee9aea4afcd6f1de7cd934a8a7a465ccb 100755 (executable)
@@ -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 "