summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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
commitec860d69c80f5c0a2d68da45f7ef55aaf714b3b5 (patch)
tree91e6623ad68925d9024329866879b8ebc7fa0d31
parentcdd7825f4f5335376e34d71521c1ef148e138068 (diff)
downloadliveslak-ec860d69c80f5c0a2d68da45f7ef55aaf714b3b5.tar.gz
liveslak-ec860d69c80f5c0a2d68da45f7ef55aaf714b3b5.tar.xz
iso2usb.sh: fix the "refresh" case
-rw-r--r--iso2usb.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/iso2usb.sh b/iso2usb.sh
index d006d6c..e8c7014 100644
--- a/iso2usb.sh
+++ b/iso2usb.sh
@@ -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: