- update kernel install script to write /etc/kernel/cmdline (#2161740)
- Resolves: #2161740
This commit is contained in:
parent
5df5172a29
commit
77420b25d7
@ -76,18 +76,20 @@ case "$COMMAND" in
|
|||||||
|
|
||||||
if [[ ! -f /sbin/new-kernel-pkg || -d "${BLS_DIR}" ]]; then
|
if [[ ! -f /sbin/new-kernel-pkg || -d "${BLS_DIR}" ]]; then
|
||||||
declare -a BOOT_OPTIONS
|
declare -a BOOT_OPTIONS
|
||||||
|
if [[ ! -f /etc/kernel/cmdline ]]; then
|
||||||
|
last=''
|
||||||
|
for entry in "${BLS_DIR}"/*.conf; do
|
||||||
|
last="$entry"
|
||||||
|
done
|
||||||
|
if [[ ! -z "$last" ]]; then
|
||||||
|
args="$(awk '/options/{$1="";$0=$0;$1=$1;print}' $last)"
|
||||||
|
echo "$args" > /etc/kernel/cmdline
|
||||||
|
fi
|
||||||
|
fi
|
||||||
if [[ -f /etc/kernel/cmdline ]]; then
|
if [[ -f /etc/kernel/cmdline ]]; then
|
||||||
read -r -d '' -a BOOT_OPTIONS < /etc/kernel/cmdline
|
read -r -d '' -a BOOT_OPTIONS < /etc/kernel/cmdline
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! [[ ${BOOT_OPTIONS[*]} ]]; then
|
|
||||||
read -r -d '' -a line < /proc/cmdline
|
|
||||||
for i in "${line[@]}"; do
|
|
||||||
[[ "${i#initrd=*}" != "$i" || "${i#BOOT_IMAGE=*}" != "$i" ]] && continue
|
|
||||||
BOOT_OPTIONS+=("$i")
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! [[ ${BOOT_OPTIONS[*]} ]]; then
|
if ! [[ ${BOOT_OPTIONS[*]} ]]; then
|
||||||
echo "Could not determine the kernel command line parameters." >&2
|
echo "Could not determine the kernel command line parameters." >&2
|
||||||
echo "Please specify the kernel command line in /etc/kernel/cmdline!" >&2
|
echo "Please specify the kernel command line in /etc/kernel/cmdline!" >&2
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
Name: s390utils
|
Name: s390utils
|
||||||
Summary: Utilities and daemons for IBM z Systems
|
Summary: Utilities and daemons for IBM z Systems
|
||||||
Version: 2.25.0
|
Version: 2.25.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
License: MIT
|
License: MIT
|
||||||
ExclusiveArch: s390 s390x
|
ExclusiveArch: s390 s390x
|
||||||
@ -907,6 +907,10 @@ User-space development files for the s390/s390x architecture.
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jan 19 2023 Dan Horák <dhorak@redhat.com> - 2:2.25.0-2
|
||||||
|
- update kernel install script to write /etc/kernel/cmdline (#2161740)
|
||||||
|
- Resolves: #2161740
|
||||||
|
|
||||||
* Tue Dec 13 2022 Dan Horák <dhorak@redhat.com> - 2:2.25.0-1
|
* Tue Dec 13 2022 Dan Horák <dhorak@redhat.com> - 2:2.25.0-1
|
||||||
- rebased to 2.25.0 (#2110310)
|
- rebased to 2.25.0 (#2110310)
|
||||||
- zipl: Support for Secure Boot IPL and Dump from ECKD DASD (#2044200)
|
- zipl: Support for Secure Boot IPL and Dump from ECKD DASD (#2044200)
|
||||||
|
Loading…
Reference in New Issue
Block a user