diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-06-13 15:18:16 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-06-13 15:18:16 +0200 |
commit | 699a4dac3424ec286a8b4c2684ebbecbcb222cd5 (patch) | |
tree | f5a8ee31b8b658e68a87e648da5011497d2057a2 | |
parent | cd5cef000fc6decd40fc25d8a1760cf58884547c (diff) | |
download | plan9front-699a4dac3424ec286a8b4c2684ebbecbcb222cd5.tar.xz |
inst/bootsetup: update bootsector when not formating
-rwxr-xr-x | rc/bin/inst/bootsetup | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/rc/bin/inst/bootsetup b/rc/bin/inst/bootsetup index 6044fa04d..e2c5d34ba 100755 --- a/rc/bin/inst/bootsetup +++ b/rc/bin/inst/bootsetup @@ -60,9 +60,15 @@ case go 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 |