Skip to content
Permalink
Browse files

create_iso: use illumos tools

  • Loading branch information...
pyhalov committed May 11, 2019
1 parent ef4ed66 commit 1028f2c25837e81ce2447b8293b62d8f9a915837
Showing with 5 additions and 5 deletions.
  1. +5 −5 usr/src/cmd/distro_const/utils/create_iso
@@ -116,15 +116,15 @@ if [[ "${PLATFORM}" == "i86pc" ]] ; then
/usr/sbin/mkfs -F pcfs -o nofdisk,size=8800 ${RLOFIDEV} < /dev/null
MDIR="`/bin/mktemp -d`"
/usr/sbin/mount -F pcfs ${LOFIDEV} ${MDIR}
mkdir -p ${MDIR}/efi/boot
/usr/bin/mkdir -p ${MDIR}/efi/boot
if [ -f ${PKG_IMG_PATH}/boot/loader32.efi ] ; then
cp ${PKG_IMG_PATH}/boot/loader32.efi ${MDIR}/efi/boot/bootia32.efi
cp ${PKG_IMG_PATH}/boot/loader64.efi ${MDIR}/efi/boot/bootx64.efi
/usr/bin/cp ${PKG_IMG_PATH}/boot/loader32.efi ${MDIR}/efi/boot/bootia32.efi
/usr/bin/cp ${PKG_IMG_PATH}/boot/loader64.efi ${MDIR}/efi/boot/bootx64.efi
else
cp ${PKG_IMG_PATH}/boot/loader.efi ${MDIR}/efi/boot/bootx64.efi
/usr/bin/cp ${PKG_IMG_PATH}/boot/loader.efi ${MDIR}/efi/boot/bootx64.efi
fi
/usr/sbin/umount ${MDIR}
rmdir ${MDIR}
/usr/bin/rmdir ${MDIR}
lofiadm -d ${LOFIDEV}

# the option order is important!

0 comments on commit 1028f2c

Please sign in to comment.
You can’t perform that action at this time.