mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-06 12:58:22 +03:00
kernel-install: strip BOOT_IMAGE= from kernel options
https://bugzilla.redhat.com/show_bug.cgi?id=1716164. (cherry picked from commit e60228bf68427c0c0f96f816ee9124fd39585038) (cherry picked from commit 2095b6a279cfe6e9688c5c357d550289dfcd8e8d)
This commit is contained in:
parent
b754ff8b63
commit
165ae6edc6
@ -55,6 +55,7 @@ else
|
||||
read -r -d '' -a line < /proc/cmdline
|
||||
for i in "${line[@]}"; do
|
||||
[[ "${i#initrd=*}" != "$i" ]] && continue
|
||||
[[ "${i#BOOT_IMAGE=*}" != "$i" ]] && continue
|
||||
BOOT_OPTIONS+=("$i")
|
||||
done
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user