Support /usr/lib/kernel/cmdline fallback path for /etc/kernel/cmdline.
parent
7e9341434f
commit
a7d3ad67c7
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue