From a99ec2cd62cf9d99c691f44ec95f55d483698e5b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 15 Feb 2013 11:58:14 +0100 Subject: Aborting with error if hdd label has a whitespace (Closes: #648861). --- functions/defaults.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3