shithub: riscv

Download patch

ref: d1fd22d72bfc5425863d4249e022f833ea928940
parent: 994606821c685d34a99f890ea6e59bdfdc756dbd
author: cinap_lenrek <cinap_lenrek@localhost>
date: Mon Apr 11 21:09:16 EDT 2011

dont put plan9.ini bootimage in cd root

--- a/sys/lib/dist/mkfile
+++ b/sys/lib/dist/mkfile
@@ -1,4 +1,3 @@
-scr=/tmp/cdstub
 iso=/tmp/9front.iso
 
 cd:V: $iso
@@ -5,13 +4,9 @@
 	
 
 clean:V:
-	rm -fr $scr $iso
+	rm -fr $iso
 
-%.iso:	/n/src9/386/9bootiso
-	mkdir -p $scr
-	cp $prereq $scr
-	cp pc/plan9.ini.cd $scr/plan9.ini
-	bind -a /n/src9 $scr
-	disk/mk9660 -9cj -B 9bootiso -p pc/cdproto -s $scr -v 'Plan 9 Front' $target
-	unmount $scr
-	rm -fr $scr
+%.iso: pc/plan9.ini.cd
+	bind $prereq /n/src9/cfg/plan9.ini
+	disk/mk9660 -9cj -B 386/9bootiso -p pc/cdproto -s /n/src9 -v 'Plan 9 Front' $target
+	unmount /n/src9/cfg/plan9.ini
--- a/sys/src/boot/pc/iso.c
+++ b/sys/src/boot/pc/iso.c
@@ -155,7 +155,7 @@
 	readn(&ex, origin, ex.len);
 	close(&ex);
 
-	if(isowalk(f = &ex, drive, "plan9.ini")){
+	if(isowalk(f = &ex, drive, "/cfg/plan9.ini")){
 		print("no config\r\n");
 		f = 0;
 	}
--- a/sys/src/boot/pc/l.s
+++ b/sys/src/boot/pc/l.s
@@ -237,6 +237,7 @@
 #ifdef ISO
 
 TEXT bootname(SB), $0
+	BYTE $'3'; BYTE $'8'; BYTE $'6'; BYTE $'/';
 	BYTE $'9'; BYTE $'b'; BYTE $'o'; BYTE $'o';
 	BYTE $'t'; BYTE $'i'; BYTE $'s'; BYTE $'o';
 	BYTE $0