]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
alias "debugrd" for "debuginitrd"
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 5 Feb 2013 16:02:27 +0000 (16:02 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 5 Feb 2013 16:02:27 +0000 (16:02 +0000)
some broken loaders (i.e refind) parse "debuginitrd=sh" as if "initrd=sh" was
passed and then fail to load initrd image at all.

svn-id: @12621

geninitrd

index ce7d37373da5e4302b3ff3a64cce552b534a61b4..fe0166328ac6a6be0ea161c6141af483f6a68b60 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -1385,11 +1385,11 @@ add_linuxrc <<-'EOF'
        read CMDLINE < /proc/cmdline
 
        for arg in $CMDLINE; do
-               if [ "${arg}" = "debuginitrd" ]; then
+               if [ "${arg}" = "debuginitrd" ] || [ "${arg}" = "debugrd" ]; then
                        DEBUGINITRD=yes
                fi
-               if [ "${arg##debuginitrd=}" != "${arg}" ]; then
-                       DEBUGINITRD=${arg##debuginitrd=}
+               if [ "${arg##debuginitrd=}" != "${arg}" ] || [ "${arg##debugrd=}" != "${arg}" ]; then
+                       DEBUGINITRD=${arg##debug*rd=}
                fi
                if [ "${arg##root=}" != "${arg}" ]; then
                        ROOT=${arg##root=}
This page took 0.256644 seconds and 4 git commands to generate.