diff options
author | Daniel Baumann <daniel@debian.org> | 2013-02-15 11:58:14 +0100 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-05-06 14:50:05 +0200 |
commit | 442dfb466911d0b604a418ff5610e8066b175415 (patch) | |
tree | 344304ed7fd3135bc40424477c58f6bab8211c79 /functions | |
parent | 6f39d25611704ac693a856ccabf941315f4aac9e (diff) | |
download | vyos-live-build-442dfb466911d0b604a418ff5610e8066b175415.tar.gz vyos-live-build-442dfb466911d0b604a418ff5610e8066b175415.zip |
Aborting with error if hdd label has a whitespace (Closes: #648861).
Diffstat (limited to 'functions')
-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 4a820bee2..4531551e1 100755 --- a/functions/defaults.sh +++ b/functions/defaults.sh @@ -1194,6 +1194,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 |