add Fish-'s installer patches; possibly not in a working state. testing/fixes requested.
This commit is contained in:
parent
94c8e58f14
commit
fbea254ad3
7 changed files with 23 additions and 25 deletions
|
@ -27,6 +27,7 @@ sleep 1
|
||||||
|
|
||||||
f=`{ls /srv/fscons*>[2]/dev/null}
|
f=`{ls /srv/fscons*>[2]/dev/null}
|
||||||
k=`{ls /srv/kfs*cmd >[2]/dev/null|sort -r}
|
k=`{ls /srv/kfs*cmd >[2]/dev/null|sort -r}
|
||||||
|
c=`{ls /srv/cwfs*cmd >[2]/dev/null}
|
||||||
|
|
||||||
echo -n syncing...
|
echo -n syncing...
|
||||||
for(i in $f) @ {
|
for(i in $f) @ {
|
||||||
|
@ -58,6 +59,12 @@ for (i in $k){
|
||||||
sleep 2
|
sleep 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (i in $c){
|
||||||
|
echo -n $i...
|
||||||
|
echo halt >>$i
|
||||||
|
sleep 2
|
||||||
|
}
|
||||||
|
|
||||||
# halting (binaries we run can't be on the fs we're halting)
|
# halting (binaries we run can't be on the fs we're halting)
|
||||||
ramfs
|
ramfs
|
||||||
builtin cd /tmp
|
builtin cd /tmp
|
||||||
|
|
|
@ -22,7 +22,7 @@ case go
|
||||||
if(! test -f /tmp/plan9.ini) {
|
if(! test -f /tmp/plan9.ini) {
|
||||||
{
|
{
|
||||||
sfs=`{echo $fs | sed 's;/dev;#S;'}
|
sfs=`{echo $fs | sed 's;/dev;#S;'}
|
||||||
if(~ $fstype fossil fossil+venti){
|
if(~ $fstype fossil cwfs){
|
||||||
echo bootfile'='$bootfat!9pcf
|
echo bootfile'='$bootfat!9pcf
|
||||||
echo 'bootargs=local!'^$sfs
|
echo 'bootargs=local!'^$sfs
|
||||||
echo 'bootdisk=local!'^$sfs
|
echo 'bootdisk=local!'^$sfs
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
switch($1){
|
switch($1){
|
||||||
case checkdone
|
case checkdone
|
||||||
if(! ~ $fstype fossil fossil+venti){
|
if(! ~ $fstype cwfs){
|
||||||
configfs=ready
|
configfs=ready
|
||||||
export configfs
|
export configfs
|
||||||
}
|
}
|
||||||
|
@ -12,10 +12,9 @@ case checkdone
|
||||||
case go
|
case go
|
||||||
echo 'You can install the following types of file systems:'
|
echo 'You can install the following types of file systems:'
|
||||||
echo
|
echo
|
||||||
echo ' fossil the new Plan9 fileserver'
|
echo ' cwfs the cached-worm file server'
|
||||||
echo ' fossil+venti fossil + a archival dump server'
|
|
||||||
echo
|
echo
|
||||||
prompt -d fossil 'File system' fossil fossil+venti
|
prompt -d fossil 'File system' cwfs
|
||||||
fstype=$rd
|
fstype=$rd
|
||||||
export fstype
|
export fstype
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,12 +2,8 @@
|
||||||
|
|
||||||
echo -n 'Halting file systems...'
|
echo -n 'Halting file systems...'
|
||||||
|
|
||||||
if(ps | grep -s ' venti$')
|
if(ps | grep -s ' cwfs$')
|
||||||
venti/sync -h tcp!127.0.0.1!17034
|
echo halt >>/srv/cwfs.cmd
|
||||||
if(ps | grep -s ' fossil$'){
|
|
||||||
echo fsys all halt >>/srv/fscons
|
|
||||||
slay fossil|rc
|
|
||||||
}
|
|
||||||
|
|
||||||
echo done
|
echo done
|
||||||
echo
|
echo
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
# prereq: configfs
|
# prereq: configfs
|
||||||
|
|
||||||
switch($fstype){
|
switch($fstype){
|
||||||
case fossil fossil+venti
|
case cwfs
|
||||||
exec mountfossil $*
|
exec mountcwfs $*
|
||||||
case *
|
case *
|
||||||
mountfs=notdone
|
mountfs=notdone
|
||||||
export mountfs
|
export mountfs
|
||||||
|
|
|
@ -4,10 +4,8 @@
|
||||||
# prereq: partdisk
|
# prereq: partdisk
|
||||||
|
|
||||||
fn autotype {
|
fn autotype {
|
||||||
if(~ $fstype fossil)
|
if(~ $fstype cwfs)
|
||||||
echo -a 9fat -a nvram -a fossil -a swap
|
echo -a 9fat -a nvram -a fscache -a fsworm -a other
|
||||||
if(~ $fstype fossil+venti)
|
|
||||||
echo -a 9fat -a nvram -a arenas -a isect -a fossil -a swap # -a other
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch($1) {
|
switch($1) {
|
||||||
|
@ -47,15 +45,10 @@ case checkdone
|
||||||
if(! ~ $prepdisk ready){
|
if(! ~ $prepdisk ready){
|
||||||
prepdisk=done
|
prepdisk=done
|
||||||
switch($fstype){
|
switch($fstype){
|
||||||
case fossil
|
case cwfs
|
||||||
if(! test -f /dev/sd*/fossil* && ! test -f /dev/fs/fossil*)
|
if(! test -f /dev/sd*/fscache* && ! test -f /dev/fs/fscache*)
|
||||||
prepdisk=ready
|
prepdisk=ready
|
||||||
case fossil+venti
|
if(! test -f /dev/sd*/fsworm* && ! test -f /dev/fs/fsworm*)
|
||||||
if(! test -f /dev/sd*/fossil* && ! test -f /dev/fs/fossil*)
|
|
||||||
prepdisk=ready
|
|
||||||
if(! test -f /dev/sd*/arenas && ! test -f /dev/fs/arenas*)
|
|
||||||
prepdisk=ready
|
|
||||||
if(! test -f /dev/sd*/isect && ! test -f /dev/fs/isect*)
|
|
||||||
prepdisk=ready
|
prepdisk=ready
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,6 +80,9 @@ Auto autox[] =
|
||||||
{ "other", 200*MB, 0, 4, },
|
{ "other", 200*MB, 0, 4, },
|
||||||
{ "swap", 100*MB, 512*MB, 1, },
|
{ "swap", 100*MB, 512*MB, 1, },
|
||||||
{ "cache", 50*MB, 1*GB, 2, },
|
{ "cache", 50*MB, 1*GB, 2, },
|
||||||
|
|
||||||
|
{ "fscache", 200*MB, 0, 4, },
|
||||||
|
{ "fsworm", 500*MB, 0, 20, },
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue