summaryrefslogtreecommitdiff
path: root/lx-trainer-vm
diff options
context:
space:
mode:
Diffstat (limited to 'lx-trainer-vm')
-rwxr-xr-xlx-trainer-vm/make_lxtrainer_secureboot.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lx-trainer-vm/make_lxtrainer_secureboot.sh b/lx-trainer-vm/make_lxtrainer_secureboot.sh
index 685f928..7eb2bee 100755
--- a/lx-trainer-vm/make_lxtrainer_secureboot.sh
+++ b/lx-trainer-vm/make_lxtrainer_secureboot.sh
@@ -39,7 +39,7 @@ dpkg -x $TMPD/3.deb $TMPD/3
if [ -n "$IMG" ]; then
# setup loop device for image
- DEV=`sudo losetup --show -P -f lx-trainer.img`
+ DEV=`sudo losetup --show -P -f $IMG`
DEVP="${DEV}p"
else
# block device
@@ -65,7 +65,7 @@ if [ -d "$TMPD/mnt/EFI/BOOT" ]; then
sudo cp $TMPD/3/usr/lib/shim/shimx64.efi.signed $TMPD/mnt/EFI/BOOT/BOOTX64.EFI
sudo cp $TMPD/grub.cfg $TMPD/mnt/EFI/ubuntu/
else
- echo "error: no UEFI found on lx-trainer.img"
+ echo "error: no UEFI found on $1"
fi
sudo umount $TMPD/mnt