firstboot: update all kernels config in grubbyCmd
Per vivek, update all kernels configs in grub config file make more sense. use --update-kernel=ALL to update all grub entries. Signed-off-by: Dave Young <dyoung@redhat.com> Reviewed-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
parent
caf1c13f53
commit
ed4d7a3865
@ -379,12 +379,12 @@ class moduleClass(Module):
|
|||||||
|
|
||||||
# Are we adding or removing the crashkernel param?
|
# Are we adding or removing the crashkernel param?
|
||||||
if self.kdumpEnabled:
|
if self.kdumpEnabled:
|
||||||
grubbyCmd = "/sbin/grubby --%s --update-kernel=/boot/vmlinuz-%s --args=crashkernel=%iM" \
|
grubbyCmd = "/sbin/grubby --%s --update-kernel=ALL --args=crashkernel=%iM" \
|
||||||
% (self.bootloader, self.runningKernel, self.reserveMem)
|
% (self.bootloader, self.reserveMem)
|
||||||
chkconfigStatus = "enable"
|
chkconfigStatus = "enable"
|
||||||
else:
|
else:
|
||||||
grubbyCmd = "/sbin/grubby --%s --update-kernel=/boot/vmlinuz-%s --remove-args=crashkernel=%s" \
|
grubbyCmd = "/sbin/grubby --%s --update-kernel=ALL --remove-args=crashkernel=%s" \
|
||||||
% (self.bootloader, self.runningKernel, self.origCrashKernel)
|
% (self.bootloader, self.origCrashKernel)
|
||||||
chkconfigStatus = "disable"
|
chkconfigStatus = "disable"
|
||||||
|
|
||||||
if self.doDebug:
|
if self.doDebug:
|
||||||
|
Loading…
Reference in New Issue
Block a user