- skip BOOT_IMAGE param when copying the cmdline to BLS snippets
The bootloaders add a BOOT_IMAGE parameter that is present in the kernel command line exposed via the /proc/cmdline virtual file. If this param is added to the kernel cmdline in the BLS snippet, it will be duplicated. Resolves: #1782321
This commit is contained in:
parent
594bda140c
commit
3e57fc3074
@ -83,7 +83,7 @@ case "$COMMAND" in
|
|||||||
if ! [[ ${BOOT_OPTIONS[*]} ]]; then
|
if ! [[ ${BOOT_OPTIONS[*]} ]]; then
|
||||||
read -r -d '' -a line < /proc/cmdline
|
read -r -d '' -a line < /proc/cmdline
|
||||||
for i in "${line[@]}"; do
|
for i in "${line[@]}"; do
|
||||||
[[ "${i#initrd=*}" != "$i" ]] && continue
|
[[ "${i#initrd=*}" != "$i" || "${i#BOOT_IMAGE=*}" != "$i" ]] && continue
|
||||||
BOOT_OPTIONS+=("$i")
|
BOOT_OPTIONS+=("$i")
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user