tazusb rev 184

tazusb: set boot flag in *any* partition
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 17 09:32:54 2016 +0100 (2016-02-17)
parents a0169f6c39b6
children 1a1165db2fc2
files tazusb
line diff
     1.1 --- a/tazusb	Thu Feb 04 12:45:09 2016 +0100
     1.2 +++ b/tazusb	Wed Feb 17 09:32:54 2016 +0100
     1.3 @@ -342,8 +342,9 @@
     1.4  		umount $TARGET_ROOT 2>/dev/null
     1.5  		_n 'Setting %s as bootable...' "$DEVICE"
     1.6  		fdisk $DISK >/dev/null << EOF
     1.7 +$(fdisk -l $DISK | grep $DISK  | sed "/\\*/!ds#$DISK##;s# .*##;s#.*#&\na#")
     1.8  a
     1.9 -1
    1.10 +${DEVICE#$DISK}
    1.11  w
    1.12  EOF
    1.13  		status