shithub: riscv

Download patch

ref: 8beb5ec0a9ef76a9849192898623fd83b75d44e0
parent: 531d4710dfa1d7430ebb5529d120f7b377953587
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Wed Aug 31 14:57:31 EDT 2011

inst: allow using /root as distribution media

--- a/rc/bin/inst/mountdist
+++ b/rc/bin/inst/mountdist
@@ -71,7 +71,8 @@
 
 	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) {
 		echo -n '	'^$i
 		t=`{fstype $i}
@@ -100,14 +101,16 @@
 	mountstatus=x
 	while(! ~ $mountstatus ''){
 		default=()
-		if(! ~ $#cdboot 0 && ! ~ $#x9660 0)
-			default=(-d $x9660(1))
-		prompt $default 'Distribution disk' $fat $x9660 $fs
+		if(! ~ $#cdboot 0)
+			default=(-d /root)
+		prompt $default 'Distribution disk' $fat $x9660 $fs /root
 		disk=$rd
 
 		srvmedia=()
 		mountmedia=()
 		switch($disk){
+		case /root
+			mountmedia=(bind /root /n/distmedia)
 		case $fs
 			mountmedia=(bind /n/newfs /n/distmedia)
 		case $fat