summaryrefslogtreecommitdiff
path: root/rc/bin/inst/copydist
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-04-22 00:50:41 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-04-22 00:50:41 +0000
commit40dab914b7b92e75dd6297ab31c86bea033e8fa9 (patch)
tree98edac34471e8144fb646824b88f5d04daacf3f2 /rc/bin/inst/copydist
parentb14bc93a797c909fb3e1bf2681aa8277043c6cf0 (diff)
downloadplan9front-40dab914b7b92e75dd6297ab31c86bea033e8fa9.tar.xz
inst: installer adaption to cwfs
Diffstat (limited to 'rc/bin/inst/copydist')
-rwxr-xr-xrc/bin/inst/copydist15
1 files changed, 6 insertions, 9 deletions
diff --git a/rc/bin/inst/copydist b/rc/bin/inst/copydist
index 507d5602b..375b6ff84 100755
--- a/rc/bin/inst/copydist
+++ b/rc/bin/inst/copydist
@@ -5,26 +5,23 @@
switch($1){
case checkready
- if(! test -d /n/dist/dist/replica){
+ if(! test -f /n/dist/LICENSE){
copydist=notdone
export copydist
exit
}
- if(test -f /n/newfs/dist/replica/didplan9){
+ if(test -f /n/newfs/LICENSE && test -f /tmp/copydone){
copydist=done
export copydist
exit
}
case go
- inst/watchfd applylog 0 `{ls -l /n/dist/dist/replica/plan9.log | awk '{print $6}'} 'Installing file system' &
- replica/pull -c / /rc/bin/inst/replcfg
- if(~ $status '' *conflicts || test -f /n/newfs/dist/replica/didplan9witherrors)
- >/n/newfs/dist/replica/didplan9
- if not
- >/n/newfs/dist/replica/didplan9witherrors
+ rm -f /tmp/copydone
+ disk/mkfs -s /n/dist -d /n/newfs /sys/lib/sysconfig/proto/allproto
+ touch /tmp/copydone
case checkdone
- if(! test -f /n/newfs/dist/replica/didplan9){
+ if(! test -f /tmp/copydone){
copydist=notdone
export copydist
}