Set $CMDLINE in $BOOTDEBUG part only if it is not available yet
authorMichael Prokop <mika@grml.org>
Tue, 11 Aug 2009 09:41:46 +0000 (11:41 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 11 Aug 2009 09:41:46 +0000 (11:41 +0200)
debian/changelog
grml-autoconfig

index e096620..da88dde 100644 (file)
@@ -2,13 +2,16 @@ grml-autoconfig (0.8.25) UNRELEASED; urgency=low
 
   * config_finddcsdir(): Use the correct device for GRMLCFG.
     Bugreport and path by Julian Langschädel, thanks!
 
   * config_finddcsdir(): Use the correct device for GRMLCFG.
     Bugreport and path by Julian Langschädel, thanks!
-  * Streamline calls of bootparams-functions, single quotes everywhere.
-    Patch by Marc Haber, thanks!
-  * Don't print the "Debs, config, scripts will be read from the live
-    image directly." message if no debs, config or scripts option
-    was given on the command line. Thanks for the patch, Marc Haber!
-
- -- Michael Prokop <mika@grml.org>  Tue, 11 Aug 2009 11:27:30 +0200
+  * Patches by Marc Haber (thanks!):
+    - Streamline calls of bootparams-functions, single quotes everywhere.
+    - Don't print the "Debs, config, scripts will be read from the live
+      image directly." message if no debs, config or scripts option
+      was given on the command line.
+    - Drop $CMDLINE from grml-autoconfig; it's initialized from within
+      autoconfig.functions.
+  * Set $CMDLINE in $BOOTDEBUG part only if it's not available yet.
+
+ -- Michael Prokop <mika@grml.org>  Tue, 11 Aug 2009 11:39:35 +0200
 
 grml-autoconfig (0.8.24) unstable; urgency=low
 
 
 grml-autoconfig (0.8.24) unstable; urgency=low
 
index f57a890..a53d2c5 100755 (executable)
@@ -283,9 +283,12 @@ if [ -z "$SPLASH" ] ; then
 fi
 
 if [ -n "$BOOTDEBUG" ] ; then
 fi
 
 if [ -n "$BOOTDEBUG" ] ; then
-   CMDLINE="$(cat /proc/cmdline)"
-   [ -d /cdrom/bootparams/ ] && CMDLINE="$CMDLINE $(cat /cdrom/bootparams/*)"
-   [ -d /live/image/bootparams/ ] && CMDLINE="$CMDLINE $(cat /live/image/bootparams/*)"
+   # set only if not already set
+   if [ -z "$CMDLINE" ] ; then
+     CMDLINE="$(cat /proc/cmdline)"
+     [ -d /cdrom/bootparams/ ] && CMDLINE="$CMDLINE $(cat /cdrom/bootparams/*)"
+     [ -d /live/image/bootparams/ ] && CMDLINE="$CMDLINE $(cat /live/image/bootparams/*)"
+   fi
    einfo "Bootoption debug detected. Printing kernel command line:"
    echo "$CMDLINE"
 fi
    einfo "Bootoption debug detected. Printing kernel command line:"
    echo "$CMDLINE"
 fi