Browse Source

Support /usr/lib/kernel/cmdline fallback path for /etc/kernel/cmdline.

master
Dimitri John Ledkov 10 years ago committed by Harald Hoyer
parent
commit
a7d3ad67c7
  1. 2
      50-dracut.install
  2. 2
      51-dracut-rescue.install

2
50-dracut.install

@ -20,6 +20,8 @@ case "$COMMAND" in @@ -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

2
51-dracut-rescue.install

@ -41,6 +41,8 @@ fi @@ -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

Loading…
Cancel
Save