ref: 3489599c2fcbd024085ae55c21ec62b53bc07161
parent: 658bbe1c3d389dc4c94f2d82795ea8534a108811
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Mon Jun 13 11:18:16 EDT 2011
inst/bootsetup: update bootsector when not formating
--- a/rc/bin/inst/bootsetup
+++ b/rc/bin/inst/bootsetup
@@ -60,9 +60,15 @@
if(~ $need9fatformat yes){log Initializing Plan 9 FAT partition.
- disk/format -r 2 -d -b /386/pbs $9fat
- mount -c /srv/dos /n/9fat $9fat
+ logprog disk/format -r 2 -d -b /386/pbs $9fat
+ logprog mount -c /srv/dos /n/9fat $9fat
}
+ if not {+ log Updating bootsector.
+ logprog dd -if $9fat -of /n/9fat/pbs.bak -bs 512 -count 1
+ logprog disk/format -b /386/pbs $9fat
+ }
+
logprog rm -f /n/9fat/^(9bootfat plan9.ini 9pcf 9pccpuf)
logprog cp /n/newfs/386/9bootfat /n/9fat/9bootfat
# make file continous on disk
--
⑨