diff --git a/functions.sh b/functions.sh index 18a9156..f6b5e49 100644 --- a/functions.sh +++ b/functions.sh @@ -773,12 +773,13 @@ if [ -n "$1" ]; then PART_CRYPT[$i]="$(echo "$PART_LINE" | awk '{print $5}')" MOUNT_POINT_SIZE[$i]=${PART_SIZE[$i]} - EXTRAS="$(echo "$PART_LINE" | awk '{print $6}')" + # Print in awk columns from 6 until the end. + EXTRAS="$(echo "$PART_LINE" | awk '{for(i=6;i<=NF;++i)print $i}')" for extra in $EXTRAS; do echo "Additional partition config: $extra" | debugoutput echo "Additional partition config: $extra" >>/tmp/additionals.txt 2>&1 - eval "$6" + eval "$extra" PART_EXTRAS[$i]="${PART_EXTRAS[$i]} $extra" done