Changeset View
Changeset View
Standalone View
Standalone View
head/release/amd64/mkisoimages.sh
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | if [ "$1" = "-b" ]; then | ||||
# Make EFI system partition (should be done with makefs in the future) | # Make EFI system partition (should be done with makefs in the future) | ||||
dd if=/dev/zero of=efiboot.img bs=4k count=200 | dd if=/dev/zero of=efiboot.img bs=4k count=200 | ||||
device=`mdconfig -a -t vnode -f efiboot.img` | device=`mdconfig -a -t vnode -f efiboot.img` | ||||
newfs_msdos -F 12 -m 0xf8 /dev/$device | newfs_msdos -F 12 -m 0xf8 /dev/$device | ||||
mkdir efi | mkdir efi | ||||
mount -t msdosfs /dev/$device efi | mount -t msdosfs /dev/$device efi | ||||
mkdir -p efi/efi/boot | mkdir -p efi/efi/boot | ||||
cp -p "$BASEBITSDIR/boot/loader.efi" efi/efi/boot/bootx64.efi | cp "$BASEBITSDIR/boot/loader.efi" efi/efi/boot/bootx64.efi | ||||
umount efi | umount efi | ||||
rmdir efi | rmdir efi | ||||
mdconfig -d -u $device | mdconfig -d -u $device | ||||
bootable="$bootable -o bootimage=i386;efiboot.img -o no-emul-boot -o platformid=efi" | bootable="$bootable -o bootimage=i386;efiboot.img -o no-emul-boot -o platformid=efi" | ||||
shift | shift | ||||
else | else | ||||
BASEBITSDIR="$3" | BASEBITSDIR="$3" | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |