X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Fhooks%2Fpartition.DEFAULT;h=a058acc21ae788a3e63dcfb309ee94d3ee26db78;hp=f98e59556cb8dc338a0c6a3eb6e96344d2c4e68c;hb=4a15f52c1cc7732ba49466067a111b9c519a0b9b;hpb=0c400e34881621fa39a4d0bbf4403209e81efcfa diff --git a/fai/config/hooks/partition.DEFAULT b/fai/config/hooks/partition.DEFAULT index f98e595..a058acc 100755 --- a/fai/config/hooks/partition.DEFAULT +++ b/fai/config/hooks/partition.DEFAULT @@ -65,16 +65,17 @@ fi # RAID1: forces raid1 filesystem. mkroot2=false -case $1 in - mkroot2) - mkroot2=true - ;; - *) - echo "$0: error: unsupported arg: $1" >&2 - exit 1 - ;; -esac - +if [[ $1 ]]; then + case $1 in + mkroot2) + mkroot2=true + ;; + *) + echo "$0: error: unsupported arg: $1" >&2 + exit 1 + ;; + esac +fi if [[ $SPECIAL_DISK ]]; then