Aborting with error if hdd label has a whitespace (Closes: #648861).

This commit is contained in:
Daniel Baumann 2013-02-15 11:58:14 +01:00 committed by Daniel Baumann
parent 09067bbbf8
commit a99ec2cd62
1 changed files with 7 additions and 0 deletions

View File

@ -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