--- a/debian/changelog Fri Feb 15 15:48:03 2008 +0100
+++ b/debian/changelog Fri Feb 15 16:09:04 2008 +0100
@@ -19,8 +19,9 @@ grml-live (0.4) unstable; urgency=low
support of several grml flavours on one single usb pen for the future
- adjust grub's menu.lst and isolinux.cfg as well as grml-live itself
for new directory layout
-
- -- Michael Prokop <mika@grml.org> Fri, 15 Feb 2008 14:28:45 +0100
+ * Make sure $GRML_NAME does not contain known problematic characters.
+
+ -- Michael Prokop <mika@grml.org> Fri, 15 Feb 2008 16:08:38 +0100
grml-live (0.3) unstable; urgency=low
--- a/docs/grml-live.txt Fri Feb 15 15:48:03 2008 +0100
+++ b/docs/grml-live.txt Fri Feb 15 16:09:04 2008 +0100
@@ -104,8 +104,8 @@ Force execution and do not prompt for ac
-g **GRML_NAME**::
Set the grml flavour name. Common usage examples: grml, grml-small, grml64.
-Please do NOT use blanks inside GRML_NAME, otherwise you might notice problems
-with booting.
+Please do NOT use blanks and any characters like '-', '/', ';' inside GRML_NAME,
+otherwise you might notice problems with booting.
-h::
--- a/grml-live Fri Feb 15 15:48:03 2008 +0100
+++ b/grml-live Fri Feb 15 16:09:04 2008 +0100
@@ -4,7 +4,7 @@
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2 or any later version.
-# Latest change: Fri Feb 15 14:28:37 CET 2008 [mika]
+# Latest change: Fri Feb 15 16:08:28 CET 2008 [mika]
################################################################################
# read configuration files, set some misc variables {{{
@@ -222,6 +222,10 @@ specify it on the command line using the
specify it on the command line using the -c option."
[ -n "$OUTPUT" ] || bailout 1 "Error: \$OUTPUT unset, please set it in $LIVE_CONF or
specify it on the command line using the -o option."
+
+# trim characters that are known to cause problems inside $GRML_NAME;
+# for example isolinux does not like '-' inside the directory name
+[ -n "$GRML_NAME" ] && export GRML_NAME="$(echo $GRML_NAME | tr -d ',./;\- ')"
# }}}
# clean/zero grml-live logfile {{{