boot: mountpoint fix
This commit is contained in:
parent
6a4063e245
commit
d78b83bdfc
2 changed files with 6 additions and 6 deletions
|
@ -147,7 +147,7 @@ if(! ~ $#kbmap 0){
|
|||
for(i in I l`{seq 0 3})
|
||||
bind -qa '#'$i /net
|
||||
|
||||
configusb # run partfs on usb disks
|
||||
configusb # run partfs on usb disks
|
||||
configlocal # add partitions and binds
|
||||
|
||||
while(){
|
||||
|
@ -157,5 +157,5 @@ while(){
|
|||
# cleanup so it can be restarted
|
||||
nobootprompt=()
|
||||
user=()
|
||||
rm -f /srv/boot /srv/slashn /srv/cs /srv/dns
|
||||
rm -f /srv/boot /srv/dosusb /srv/slashn /srv/cs /srv/dns
|
||||
}
|
||||
|
|
|
@ -7,14 +7,14 @@ fn configusb{
|
|||
}
|
||||
|
||||
fn connectusb{
|
||||
m=/mnt/usb
|
||||
m=/mnt/dosusb
|
||||
if(! test -r $1)
|
||||
fatal device $1 does not exist
|
||||
if(! test -r $1/dos)
|
||||
fatal device $1 does not have dos partition
|
||||
fatal device $1 does not have a dos partition
|
||||
mkdir -p $m
|
||||
dossrv -r -f $1/dos usb
|
||||
mount /srv/usb $m
|
||||
dossrv -r -f $1/dos dosusb
|
||||
mount /srv/dosusb $m
|
||||
if(! test -r $m/9front.iso)
|
||||
fatal $m/9front.iso not found
|
||||
{9660srv -s -f $m/9front.iso &} <[0=1] | echo 0 >/srv/boot
|
||||
|
|
Loading…
Reference in a new issue