mkisoimages.sh: don't use -p flag when copying loader.efi to msdosfs.

This fixes 'cdrom' target in the case when world was built by user,
and not root.

Reviewed by:	imp
Differential revision:	https://reviews.freebsd.org/D18414
This commit is contained in:
Yuri Pankov 2018-12-03 22:31:57 +00:00
parent 52af996782
commit 709bc7e0c1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=341446

View File

@ -49,7 +49,7 @@ if [ "$1" = "-b" ]; then
mkdir efi
mount -t msdosfs /dev/$device efi
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
rmdir efi
mdconfig -d -u $device