/sys/lib/dist/mkfile: efi iso/hybrid support
This commit is contained in:
parent
4e5b596bba
commit
3ba84f05c2
1 changed files with 13 additions and 4 deletions
17
sys/lib/dist/mkfile
vendored
17
sys/lib/dist/mkfile
vendored
|
@ -15,17 +15,26 @@ binds:V:
|
||||||
@{rfork n
|
@{rfork n
|
||||||
mk binds
|
mk binds
|
||||||
disk/mk9660 -c9j -B 386/9bootiso -E 386/efiboot.fat -p $proto -s /n/src9 -v 'Plan 9 Front' $target
|
disk/mk9660 -c9j -B 386/9bootiso -E 386/efiboot.fat -p $proto -s /n/src9 -v 'Plan 9 Front' $target
|
||||||
if(bind -q /n/src9/386/9boothyb /n/src9/386/9bootfat){
|
if(test -r /n/src9/386/9boothyb){
|
||||||
dd -if /dev/zero -bs 512 -count 4096 >> $target
|
dd -if /dev/zero -bs 2048 -count 1024 >> $target
|
||||||
disk/partfs -m /n/partfs $target
|
disk/partfs -m /n/partfs $target
|
||||||
disk=/n/partfs/sdXX
|
disk=/n/partfs/sdXX
|
||||||
disk/mbr -m /n/src9/386/mbr $disk/data
|
disk/mbr -m /n/src9/386/mbr $disk/data
|
||||||
@{echo a p1 '$-1' '$'
|
@{echo a p1 '$-1' '$'
|
||||||
echo t p1 FAT16
|
echo t p1 ESP
|
||||||
echo A p1
|
echo A p1
|
||||||
echo w
|
echo w
|
||||||
echo q} | disk/fdisk -b $disk/data
|
echo q} | disk/fdisk -b $disk/data
|
||||||
disk/format -b /n/src9/386/pbs -d -r 1 $disk/dos /n/src9/386/9bootfat
|
disk/format -b /n/src9/386/pbs -xd -t hard $disk/esp
|
||||||
|
s = esp.$pid
|
||||||
|
dossrv -f $disk/esp $s
|
||||||
|
mount -c /srv/$s /n/esp
|
||||||
|
cp /n/src9/386/9boothyb /n/esp/9bootfat
|
||||||
|
mkdir /n/esp/efi
|
||||||
|
mkdir /n/esp/efi/boot
|
||||||
|
cp /n/src9/386/boot*.efi /n/esp/efi/boot
|
||||||
|
unmount /n/esp
|
||||||
|
rm -f /srv/$s
|
||||||
}}
|
}}
|
||||||
|
|
||||||
%.zynq.img:
|
%.zynq.img:
|
||||||
|
|
Loading…
Reference in a new issue