[PATCH] In /etc/sysconfig/kernel set UPDATEDEFAULT=no
Gene Czarcinski
gczarcinski at ec.rr.com
Fri Oct 10 14:24:56 UTC 2014
The previous patch which changed the contents of /boot/grub2/grubenv
to saved_entry=0 was incomplete. We also need to specify
UPDATEDEFAULT=no
This partially addresses RHBZ #1141414 and RHBZ #1111790.
There will need to be a patch to grubby so that it acts on
UPDATEDEFAULT=yes and UPDATEDEFAULT=no
---
pyanaconda/bootloader.py | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index 7a22d92..008ac7d 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -2336,11 +2336,8 @@ def writeSysconfigKernel(storage, version, instClass):
f = open(iutil.getSysroot() + "/etc/sysconfig/kernel", "w+")
f.write("# UPDATEDEFAULT specifies if new-kernel-pkg should make\n"
"# new kernels the default\n")
- # only update the default if we're setting the default to linux (#156678)
- if storage.bootloader.default.device == storage.rootDevice:
- f.write("UPDATEDEFAULT=yes\n")
- else:
- f.write("UPDATEDEFAULT=no\n")
+ # with saved_entry=0, never update the default by default
+ f.write("UPDATEDEFAULT=no\n")
f.write("\n")
f.write("# DEFAULTKERNEL specifies the default kernel package type\n")
f.write("DEFAULTKERNEL=%s\n" % kernel)
--
1.9.3
More information about the anaconda-patches
mailing list