summaryrefslogtreecommitdiff
path: root/rc/bin/inst/mountcwfs
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-04-28 22:38:29 +0000
committercinap_lenrek <cinap_lenrek@centraldogma>2011-04-28 22:38:29 +0000
commit24f96acf8067ef332fde0ef3808c1de14836bffb (patch)
treea7d61f9fa3cf0084f9370e882157c08c03dca348 /rc/bin/inst/mountcwfs
parentd1a1034cbe1492a5b4cfdac5c3190dd5d069bc4f (diff)
inst: ask to ream filesystem, use 16K blocksize for copydist, fix missed mount in bootsetup
Diffstat (limited to 'rc/bin/inst/mountcwfs')
-rw-r--r--rc/bin/inst/mountcwfs64
1 files changed, 40 insertions, 24 deletions
diff --git a/rc/bin/inst/mountcwfs b/rc/bin/inst/mountcwfs
index f19efa57c..afbe014a3 100644
--- a/rc/bin/inst/mountcwfs
+++ b/rc/bin/inst/mountcwfs
@@ -44,33 +44,50 @@ case go
fsother=$rd
export fsother
- if(! test -f /tmp/fsconfig){
- {
- echo service cwfs
- echo config $fs
-
- # new config option
- echo noauth
-
- echo filsys main c'('$fs')('$fsworm')'
- echo filsys dump o
- if(! ~ $fsother ''){
- echo filsys other '('$fsother')'
- echo ream other
- }
- echo ream main
- echo end
- } >/tmp/fsconfig
- }
+ ream=no
+ if(! ~ $fstype `{fstype $fs})
+ ream=yes
+ prompt -d $ream 'Ream the filesystem?' yes no
+ ream=$rd
log Starting $fstype file server for $fs
unmount /n/newfs >[2]/dev/null
echo halt >>/srv/cwfs.cmd >[2]/dev/null
rm -f /srv/cwfs /srv/cwfs.cmd
- if(! $fstype -c -f $fs </tmp/fsconfig){
- mountfs=ready
- export mountfs
- exit oops
+
+ if(~ $ream yes){
+ if(! test -f /tmp/fsconfig){
+ {
+ echo service cwfs
+ echo config $fs
+
+ # new config option
+ echo noauth
+
+ echo filsys main c'('$fs')('$fsworm')'
+ echo filsys dump o
+ if(! ~ $fsother ''){
+ echo filsys other '('$fsother')'
+ echo ream other
+ }
+ echo ream main
+ echo end
+ } >/tmp/fsconfig
+ }
+ echo 'Reaming filesystem'
+ if(! $fstype -f $fs -c </tmp/fsconfig){
+ mountfs=ready
+ export mountfs
+ exit oops
+ }
+ }
+ if not {
+ echo 'Entering manual configuration mode. when done, type end'
+ if(! $fstype -n cwfs -f $fs -c){
+ mountfs=ready
+ export mountfs
+ exit oops
+ }
}
log Configuering $fstype file server for $fs
@@ -91,9 +108,8 @@ case go
echo create /usr/$user/tmp $user $user 750 d
echo cfs main
}
- # not synchronized
- sleep 5
} >>/srv/cwfs.cmd
+ sleep 5
log Mounting $fstype file server for $fs
if(! logprog mount -c /srv/cwfs /n/newfs){