This commit is contained in:
longpanda 2020-09-12 02:39:54 +08:00
parent ec72f809da
commit 165180496e
5 changed files with 27 additions and 0 deletions

27
mkvhdboot.sh Normal file
View File

@ -0,0 +1,27 @@
#!/bin/sh
rm -f ventoy_vhdboot.*
cp -a vhdiso vhdiso_tmp
cd ./vhdiso_tmp
option='-d -R -U -max-iso9660-filenames -D'
size=$(stat -c '%s' ./boot/etfsboot.com)
if [ $size -eq 4096 ]; then
loadsize=8
else
loadsize=4
fi
cd ./boot
ln ../efi/microsoft/boot/bcd bcd
cd ..
mkisofs $option -no-emul-boot -boot-load-size $loadsize -b boot/etfsboot.com -eltorito-alt-boot -no-emul-boot -e efi.img -o ../ventoy_vhdboot.img ./
cd ..
rm -rf vhdiso_tmp

BIN
vhdiso/BOOTMGR Normal file

Binary file not shown.

BIN
vhdiso/boot/etfsboot.com Normal file

Binary file not shown.

BIN
vhdiso/efi.img Normal file

Binary file not shown.

Binary file not shown.