Source /etc/grml_nocolors with nocolor boot option mika/systemd
authorMichael Prokop <mika@grml.org>
Fri, 13 Jan 2017 12:37:50 +0000 (13:37 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 13 Jan 2017 12:37:50 +0000 (13:37 +0100)
Otherwise we still end up with colors in the output because
$NORMAL isn't defined properly.

autoconfig.functions

index 3fc0232..19a240d 100755 (executable)
@@ -196,6 +196,7 @@ fi
 if checkbootparam 'nocolor'; then
   RC_NOCOLOR=yes
   . /etc/grml/lsb-functions
 if checkbootparam 'nocolor'; then
   RC_NOCOLOR=yes
   . /etc/grml/lsb-functions
+  . /etc/grml_nocolors
   einfo "Disabling colors in bootsequence as requested on commandline." ; eend 0
 else
   . /etc/grml/lsb-functions
   einfo "Disabling colors in bootsequence as requested on commandline." ; eend 0
 else
   . /etc/grml/lsb-functions