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

master
Dimitri John Ledkov 2015-02-09 11:55:20 +00:00 committed by Harald Hoyer
parent 7e9341434f
commit a7d3ad67c7
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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