summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfunctions/defaults.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index d3a7a653f..3dac1d51e 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -1201,6 +1201,13 @@ Check_defaults ()
fi
fi
+ if echo ${LB_HDD_LABEL} | grep -qs ' '
+ then
+ Echo_error "There are currently no whitespaces supported in hdd labels."
+
+ exit 1
+ fi
+
if [ "${LB_DEBIAN_INSTALLER}" != "false" ]
then
# d-i true, no caching