import grubby-8.40-45.el8
This commit is contained in:
parent
a32c16c77c
commit
ec27133b7d
@ -511,6 +511,24 @@ update_bls_fragment() {
|
|||||||
fi
|
fi
|
||||||
elif [[ $bootloader = grub2 ]]; then
|
elif [[ $bootloader = grub2 ]]; then
|
||||||
opts="$(grub2-editenv "${env}" list | grep kernelopts | sed -e "s/kernelopts=//")"
|
opts="$(grub2-editenv "${env}" list | grep kernelopts | sed -e "s/kernelopts=//")"
|
||||||
|
elif [[ $bootloader = zipl ]]; then
|
||||||
|
if [[ ! -f /etc/kernel/cmdline ]]; then
|
||||||
|
# anaconda could create this, but we'd just end up in the same
|
||||||
|
# place.
|
||||||
|
sed 's/BOOT_IMAGE=[^ ]*//' /proc/cmdline > /etc/kernel/cmdline
|
||||||
|
fi
|
||||||
|
if [[ $param = "ALL" ]] && [[ -n $remove_args || -n $add_args ]]; then
|
||||||
|
read old_args < /etc/kernel/cmdline
|
||||||
|
opts="$(update_args "${old_args}" "${remove_args}" "${add_args}")"
|
||||||
|
echo "$opts" > /etc/kernel/cmdline
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $bootloader = grub2 ]] && [[ ! -f /etc/kernel/cmdline ]]; then
|
||||||
|
opts=$(grub2-editenv "${env}" list | grep kernelopts | sed 's/kernelopts=//')
|
||||||
|
if [[ -n $opts ]]; then
|
||||||
|
echo "opts" > /etc/kernel/cmdline
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for i in ${indexes[*]}; do
|
for i in ${indexes[*]}; do
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Name: grubby
|
Name: grubby
|
||||||
Version: 8.40
|
Version: 8.40
|
||||||
Release: 42%{?dist}
|
Release: 45%{?dist}
|
||||||
Summary: Command line tool for updating BootLoaderSpec files
|
Summary: Command line tool for updating BootLoaderSpec files
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://github.com/rhinstaller/grubby
|
URL: https://github.com/rhinstaller/grubby
|
||||||
@ -169,6 +169,18 @@ current boot environment.
|
|||||||
%{_mandir}/man8/*.8*
|
%{_mandir}/man8/*.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 11 2022 Robbie Harwood <rharwood@redhat.com> - 8.40-44
|
||||||
|
- Write to /etc/kernel/cmdline on non-s390x also
|
||||||
|
- Resolves: #1978226
|
||||||
|
|
||||||
|
* Thu Aug 11 2022 Robbie Harwood <rharwood@redhat.com> - 8.40-44
|
||||||
|
- Write to /etc/kernel/cmdline on s390x and only s390x
|
||||||
|
- Resolves: #1978226
|
||||||
|
|
||||||
|
* Fri Jun 03 2022 Robbie Harwood <rharwood@redhat.com> - 8.40-43
|
||||||
|
- Additionally write to /etc/kernel/cmdline
|
||||||
|
- Resolves: #1978226
|
||||||
|
|
||||||
* Wed Jun 09 2021 Javier Martinez Canillas <javierm@redhat.com> - 8.40-42
|
* Wed Jun 09 2021 Javier Martinez Canillas <javierm@redhat.com> - 8.40-42
|
||||||
- grubby-bls: expand only the kernelopts variable
|
- grubby-bls: expand only the kernelopts variable
|
||||||
Resolves: rhbz#1819666
|
Resolves: rhbz#1819666
|
||||||
|
Loading…
Reference in New Issue
Block a user