dd onto chosen device, not /dev/sdb by default
authorAndrew Engelbrecht <andrew@fsf.org>
Mon, 28 Aug 2023 18:05:05 +0000 (14:05 -0400)
committerAndrew Engelbrecht <andrew@fsf.org>
Mon, 28 Aug 2023 18:05:05 +0000 (14:05 -0400)
live-usb-loader.sh

index e1a0b5fba3a5489d611cac8335ece4f0c8666685..4cd4b5ebf9849794907d4d03da2438b46190890b 100755 (executable)
@@ -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