diff options
| author | John Ogness <john.ogness@linutronix.de> | 2018-05-14 21:33:39 +0200 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2018-05-14 21:33:39 +0200 |
| commit | 2a5f4ad1b3aee971d0be494abd7759dc169290c1 (patch) | |
| tree | f3b18b91ce2d86f24a7c4804d9cd5fc72db5102d /lx-trainer-vm | |
| parent | 27ffe6e29d41d7f8b39a0490709a4d912fc2f7ff (diff) | |
secureboot: remove references to lx-trainer.img
Use the image/device argument now passed to the script.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Diffstat (limited to 'lx-trainer-vm')
| -rwxr-xr-x | lx-trainer-vm/make_lxtrainer_secureboot.sh | 4 |
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 |
