shithub: riscv

Download patch

ref: a8b922169bf064b11c3eff827770c2635e679a04
parent: f9c92129f38f3d4679675b1221f2e8ab269eeaef
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Sat Jun 4 17:34:51 EDT 2011

inst/bootsetup: dont use disk/format to add files to 9fat. use dossrv/wstat() to make 9bootfat continuous

--- a/rc/bin/inst/bootsetup
+++ b/rc/bin/inst/bootsetup
@@ -46,11 +46,12 @@
 
 	if(~ $need9fatformat yes){
 		log Initializing Plan 9 FAT partition.
-		disk/format -r 2 -d -b /386/pbs $fat /n/newfs/386/9bootfat
+		disk/format -r 2 -d -b /386/pbs $fat
 		mount -c /srv/dos /n/9fat $fat
 	}
 	logprog cp /tmp/plan9.ini /n/9fat/plan9.ini
 	logprog cp /n/newfs/386/9bootfat /n/9fat/9bootfat
+	logprog chmod +al /n/9fat/9bootfat
 	logprog cp /n/newfs/386/9pcf /n/9fat/9pcf
 	logprog cp /n/newfs/386/9pccpuf /n/9fat/9pccpuf