]> git.ipfire.org Git - thirdparty/dracut.git/blobdiff - 51-dracut-rescue.install
Support /usr/lib/kernel/cmdline fallback path for /etc/kernel/cmdline.
[thirdparty/dracut.git] / 51-dracut-rescue.install
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