# HG changeset patch # User Pascal Bellard # Date 1455697974 -3600 # Node ID bce29264a97b6c1083f42436a8bb0c7b2079a206 # Parent a0169f6c39b616fc83c6202a683c2bfb849c133f tazusb: set boot flag in *any* partition diff -r a0169f6c39b6 -r bce29264a97b tazusb --- a/tazusb Thu Feb 04 12:45:09 2016 +0100 +++ b/tazusb Wed Feb 17 09:32:54 2016 +0100 @@ -342,8 +342,9 @@ umount $TARGET_ROOT 2>/dev/null _n 'Setting %s as bootable...' "$DEVICE" fdisk $DISK >/dev/null << EOF +$(fdisk -l $DISK | grep $DISK | sed "/\\*/!ds#$DISK##;s# .*##;s#.*#&\na#") a -1 +${DEVICE#$DISK} w EOF status