From 4fb802676aecf2b12b524aa4229fe1cfb28cb9e5 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Mon, 28 Aug 2023 14:05:05 -0400 Subject: [PATCH] dd onto chosen device, not /dev/sdb by default --- live-usb-loader.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-usb-loader.sh b/live-usb-loader.sh index e1a0b5f..4cd4b5e 100755 --- a/live-usb-loader.sh +++ b/live-usb-loader.sh @@ -69,7 +69,7 @@ rmdir $ISOTMP # Set up bootloader, requires syslinux. version 6.04 has been tested. syslinux --directory /syslinux/ --install ${DEV}1 -sudo dd if=/usr/lib/SYSLINUX/mbr.bin of=/dev/sdb +sudo dd if=/usr/lib/SYSLINUX/mbr.bin of=${DEV} parted $DEV set 1 boot on #eject $DEV -- 2.25.1