Wee fix: $dev is passed in to the function with the /dev prefix already in

place, don't add it.
This commit is contained in:
Ian Lepore 2018-07-12 17:22:25 +00:00
parent f4cdb8aedd
commit e74c8ac80c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336222

View File

@ -33,9 +33,9 @@ make_esp() {
dev=$1 dev=$1
dst=$2 dst=$2
newfs_msdos -a 32 /dev/${dev} newfs_msdos -a 32 ${dev}
mntpt=$(mktemp -d /tmp/stand-test.XXXXXX) mntpt=$(mktemp -d /tmp/stand-test.XXXXXX)
mount -t msdos /dev/${md} ${mntpt} mount -t msdos ${dev} ${mntpt}
mkdir -p ${mntpt}/efi/boot mkdir -p ${mntpt}/efi/boot
cp ${dst}/boot/loader.efi ${mntpt}/efi/boot/bootx64.efi cp ${dst}/boot/loader.efi ${mntpt}/efi/boot/bootx64.efi
umount ${mntpt} umount ${mntpt}