1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-11 09:18:07 +03:00

Merge pull request #14950 from keszybz/kernel-install-script-boot_image

kernel-install: strip BOOT_IMAGE= from kernel options
This commit is contained in:
Anita Zhang 2020-02-26 23:04:57 -08:00 committed by GitHub
commit 1e84031952
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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