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:
Dave Young 2012-08-28 16:22:11 +08:00
parent caf1c13f53
commit ed4d7a3865

View File

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