inst: allow using /root as distribution media
This commit is contained in:
parent
531d4710df
commit
8beb5ec0a9
1 changed files with 7 additions and 4 deletions
|
@ -71,7 +71,8 @@ case go
|
||||||
|
|
||||||
echo Please wait... Scanning storage devices...
|
echo Please wait... Scanning storage devices...
|
||||||
|
|
||||||
parts=`{ls /dev/sd*/* >[2]/dev/null | grep -v '/(plan9.*|nvram|ctl|log|raw)$'}
|
parts=`{ls /dev/sd*/* /srv/sd*/*.iso >[2]/dev/null |
|
||||||
|
grep -v '/(plan9.*|nvram|ctl|log|raw)$'}
|
||||||
for (i in $parts) {
|
for (i in $parts) {
|
||||||
echo -n ' '^$i
|
echo -n ' '^$i
|
||||||
t=`{fstype $i}
|
t=`{fstype $i}
|
||||||
|
@ -100,14 +101,16 @@ case go
|
||||||
mountstatus=x
|
mountstatus=x
|
||||||
while(! ~ $mountstatus ''){
|
while(! ~ $mountstatus ''){
|
||||||
default=()
|
default=()
|
||||||
if(! ~ $#cdboot 0 && ! ~ $#x9660 0)
|
if(! ~ $#cdboot 0)
|
||||||
default=(-d $x9660(1))
|
default=(-d /root)
|
||||||
prompt $default 'Distribution disk' $fat $x9660 $fs
|
prompt $default 'Distribution disk' $fat $x9660 $fs /root
|
||||||
disk=$rd
|
disk=$rd
|
||||||
|
|
||||||
srvmedia=()
|
srvmedia=()
|
||||||
mountmedia=()
|
mountmedia=()
|
||||||
switch($disk){
|
switch($disk){
|
||||||
|
case /root
|
||||||
|
mountmedia=(bind /root /n/distmedia)
|
||||||
case $fs
|
case $fs
|
||||||
mountmedia=(bind /n/newfs /n/distmedia)
|
mountmedia=(bind /n/newfs /n/distmedia)
|
||||||
case $fat
|
case $fat
|
||||||
|
|
Loading…
Reference in a new issue