ref: cf12aed72bd91937635d972ba297c7098c0fe2fb
parent: 23f62987e9a96a74637da359892ab493d5a4779c
	author: cinap_lenrek <cinap_lenrek@felloff.net>
	date: Fri Jan  5 03:38:23 EST 2018
	
inst: determine kernel for bootsetup from $bootfile and $cputype
--- a/rc/bin/inst/bootsetup
+++ b/rc/bin/inst/bootsetup
@@ -30,8 +30,9 @@
9fat=$rd
export 9fat
+	bootfile=`{basename $bootfile}+
 	if(! test -f /tmp/plan9.ini) {- bootfile=9pc
 		@{echo 'bootfile='^$bootfile
echo 'bootargs=local!'^$fs' '$"fsflags
@@ -82,7 +83,7 @@
logprog mount -c /srv/dos /n/9fat $9fat
- logprog rm -f /n/9fat/^(9bootfat plan9.ini 9pc)
+ logprog rm -f /n/9fat/^(9bootfat plan9.ini $bootfile)
logprog cp /n/newfs/386/9bootfat /n/9fat/9bootfat
# make file continous on disk
@@ -92,7 +93,7 @@
logprog cp /tmp/plan9.ini /n/9fat/plan9.ini
# copy kernel
- logprog cp /n/newfs/386/9pc /n/9fat/9pc
+ logprog cp /n/newfs/$cputype/$bootfile /n/9fat/
# copy efi bootloader
logprog mkdir -p /n/9fat/efi/boot
--
⑨