summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: