diff options
author | Daniel Baumann <daniel@debian.org> | 2013-02-15 11:58:14 +0100 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-04-09 05:22:12 +0200 |
commit | a99ec2cd62cf9d99c691f44ec95f55d483698e5b (patch) | |
tree | e0ce10986b0de6a7446ab7f871ff6f3f769b7889 | |
parent | 09067bbbf82545c6b53fd8dedd1781715e876f19 (diff) | |
download | vyos-live-build-a99ec2cd62cf9d99c691f44ec95f55d483698e5b.tar.gz vyos-live-build-a99ec2cd62cf9d99c691f44ec95f55d483698e5b.zip |
Aborting with error if hdd label has a whitespace (Closes: #648861).
-rwxr-xr-x | functions/defaults.sh | 7 |
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 |