fix incorrect usage of rpm-ostree to update kernel command line parameters
Resolves: bz1895258 Upstream: Fedora Conflict: None commit12ecbce359
Author: Coiby Xu <coxu@redhat.com> Date: Mon Dec 13 10:57:13 2021 +0800 fix incorrect usage of rpm-ostree to update kernel command line parameters CoreOS/Atomic/Silverblue use "rpm-ostree kargs" to manage kernel command line parameters. Fixes:86130ec
("kdumpctl: Add kdumpctl reset-crashkernel") Reviewed-by: Pingfan Liu <piliu@redhat.com> Reviewed-by: Philipp Rudo <prudo@redhat.com> Signed-off-by: Coiby Xu <coxu@redhat.com> Signed-off-by: Coiby Xu <coxu@redhat.com>
This commit is contained in:
parent
b3d9b9bd5c
commit
16777a88b8
4
kdumpctl
4
kdumpctl
@ -1396,9 +1396,9 @@ reset_crashkernel()
|
||||
|
||||
if is_atomic; then
|
||||
if rpm-ostree kargs | grep -q "crashkernel="; then
|
||||
rpm-ostree --replace="crashkernel=$crashkernel_default"
|
||||
rpm-ostree kargs --replace="crashkernel=$crashkernel_default"
|
||||
else
|
||||
rpm-ostree --append="crashkernel=$crashkernel_default"
|
||||
rpm-ostree kargs --append="crashkernel=$crashkernel_default"
|
||||
fi
|
||||
else
|
||||
entry=$(grubby --info ALL | grep "^kernel=.*$kernel")
|
||||
|
Loading…
Reference in New Issue
Block a user