aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-04-17 01:17:10 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-04-17 01:17:19 -0400
commitade8d1ac87a00b4d8d9733670418860e64a282b8 (patch)
tree8493222ecaa5fc695768f1865e43ffd5ca145c9f
parent87ede4ee354ec25a3883155a2bb1da384a4413ae (diff)
added comment as to deficiencies of ${PART} detection
-rwxr-xr-xinstall.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index bcbc318..eb6b81f 100755
--- a/install.sh
+++ b/install.sh
@@ -13,6 +13,7 @@ fi
export BASE=$(basename $DRIVE)
export PART="/dev/$(basename $(echo /sys/class/block/$BASE/$BASE* | \
xargs -n1 echo | sed 1q | rev | cut -c 2- | rev ))"
+ # Assumes there is SOME partitioning
# List all partitions of device, get first one, remove last char.
umount $DRIVE*
if [ ! -e installed ]; then