mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
kernel-install: strip BOOT_IMAGE= from kernel options
https://bugzilla.redhat.com/show_bug.cgi?id=1716164.
This commit is contained in:
parent
1ad448673e
commit
e60228bf68
@ -55,6 +55,7 @@ else
|
|||||||
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" ]] && continue
|
||||||
|
[[ "${i#BOOT_IMAGE=*}" != "$i" ]] && continue
|
||||||
BOOT_OPTIONS+=("$i")
|
BOOT_OPTIONS+=("$i")
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user