diff options
| author | cinap_lenrek <cinap_lenrek@localhost> | 2011-04-22 00:50:41 +0000 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-04-22 00:50:41 +0000 |
| commit | 40dab914b7b92e75dd6297ab31c86bea033e8fa9 (patch) | |
| tree | 98edac34471e8144fb646824b88f5d04daacf3f2 /rc/bin/inst/prepdisk | |
| parent | b14bc93a797c909fb3e1bf2681aa8277043c6cf0 (diff) | |
| download | plan9front-40dab914b7b92e75dd6297ab31c86bea033e8fa9.tar.xz | |
inst: installer adaption to cwfs
Diffstat (limited to 'rc/bin/inst/prepdisk')
| -rwxr-xr-x | rc/bin/inst/prepdisk | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/rc/bin/inst/prepdisk b/rc/bin/inst/prepdisk index a1faf0fe6..359b93621 100755 --- a/rc/bin/inst/prepdisk +++ b/rc/bin/inst/prepdisk @@ -4,8 +4,10 @@ # prereq: partdisk fn autotype { - if(~ $fstype cwfs) + switch($fstype){ + case cwfs cwfs64 cwfs64x echo -a 9fat -a nvram -a fscache -a fsworm -a other + } } switch($1) { @@ -41,16 +43,7 @@ case go case checkdone if(! test -f /dev/sd*/9fat) prepdisk=ready - - if(! ~ $prepdisk ready){ + if(! ~ $prepdisk ready) prepdisk=done - switch($fstype){ - case cwfs - if(! test -f /dev/sd*/fscache* && ! test -f /dev/fs/fscache*) - prepdisk=ready - if(! test -f /dev/sd*/fsworm* && ! test -f /dev/fs/fsworm*) - prepdisk=ready - } - } export prepdisk } |
