]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Support /usr/lib/kernel/cmdline fallback path for /etc/kernel/cmdline.
authorDimitri John Ledkov <dimitri.j.ledkov@intel.com>
Mon, 9 Feb 2015 11:55:20 +0000 (11:55 +0000)
committerHarald Hoyer <harald@redhat.com>
Thu, 19 Feb 2015 09:50:58 +0000 (10:50 +0100)
50-dracut.install
51-dracut-rescue.install

index 5ac74f1f4d5c6f08016dca0da388cca19c0262e5..d05abb9a577922ddffac5740bda8fa63c2b5a729 100755 (executable)
@@ -20,6 +20,8 @@ case "$COMMAND" in
 
         if [[ -f /etc/kernel/cmdline ]]; then
             readarray -t BOOT_OPTIONS < /etc/kernel/cmdline
+        elif [[ -f /usr/lib/kernel/cmdline ]]; then
+            readarray -t BOOT_OPTIONS < /usr/lib/kernel/cmdline
         fi
 
         if ! [[ "${BOOT_OPTIONS[@]}" ]]; then
index 9fb0c5d8b8164ab39fab986249ed3e0b7b004090..9abd9d73ecba64ec7dd5011b1ce6109742d064ef 100755 (executable)
@@ -41,6 +41,8 @@ fi
 
 if [[ -f /etc/kernel/cmdline ]]; then
     readarray -t BOOT_OPTIONS < /etc/kernel/cmdline
+elif [[ -f /usr/lib/kernel/cmdline ]]; then
+    readarray -t BOOT_OPTIONS < /usr/lib/kernel/cmdline
 fi
 if ! [[ "${BOOT_OPTIONS[@]}" ]]; then
     read -ar BOOT_OPTIONS < /proc/cmdline