git: 9front

Download patch

ref: 3fbd9f07c8ce1a8fe1910d2edf71cda3dcf5703e
parent: 1348b1de416268f1f3d9b00402a8050bf4da4963
author: ment <thement@ibawizard.net>
date: Sat Apr 30 13:06:05 EDT 2011

boot: mountpoint fix

--- a/sys/src/9/boot/bootrc
+++ b/sys/src/9/boot/bootrc
@@ -147,7 +147,7 @@
 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 @@
 	# 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
 }
--- a/sys/src/9/boot/usb.rc
+++ b/sys/src/9/boot/usb.rc
@@ -7,14 +7,14 @@
 }
 
 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
--