diff options
author | Eric Hameleers <alien@slackware.com> | 2019-05-11 21:40:33 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2019-05-11 21:40:33 +0200 |
commit | ec860d69c80f5c0a2d68da45f7ef55aaf714b3b5 (patch) | |
tree | 91e6623ad68925d9024329866879b8ebc7fa0d31 /iso2usb.sh | |
parent | cdd7825f4f5335376e34d71521c1ef148e138068 (diff) | |
download | liveslak-ec860d69c80f5c0a2d68da45f7ef55aaf714b3b5.tar.gz liveslak-ec860d69c80f5c0a2d68da45f7ef55aaf714b3b5.tar.xz |
iso2usb.sh: fix the "refresh" case
Diffstat (limited to '')
-rw-r--r-- | iso2usb.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -653,7 +653,11 @@ if [ $REFRESH -eq 0 ]; then FEAT_64BIT="-O ^64bit" fi tune2fs -c 0 -i 0 -m 0 ${FEAT_64BIT} ${TARGETP3} - +else + # Determine partition names independently of storage architecture: + TARGETP1=$(fdisk -l $TARGET |grep ^$TARGET |cut -d' ' -f1 |grep -E '[^0-9]1$') + TARGETP2=$(fdisk -l $TARGET |grep ^$TARGET |cut -d' ' -f1 |grep -E '[^0-9]2$') + TARGETP3=$(fdisk -l $TARGET |grep ^$TARGET |cut -d' ' -f1 |grep -E '[^0-9]3$') fi # End [ $REFRESH -eq 0 ] # Create temporary mount points for the ISO file and USB device: |