Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ventoy committed Sep 11, 2020
1 parent ec72f80 commit 1651804
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions mkvhdboot.sh
Original file line number Diff line number Diff line change
@@ -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
Binary file added vhdiso/BOOTMGR
Binary file not shown.
Binary file added vhdiso/boot/etfsboot.com
Binary file not shown.
Binary file added vhdiso/efi.img
Binary file not shown.
Binary file added vhdiso/efi/microsoft/boot/bcd
Binary file not shown.

0 comments on commit 1651804

Please sign in to comment.