Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1598216 - Description of /etc/sysconfig/kernel
Summary: Description of /etc/sysconfig/kernel
Keywords:
Status: RELEASE_PENDING
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: doc-Deployment_Guide
Version: 6.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Marie Dolezelova
QA Contact: ecs-bugs
Marie Dolezelova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-04 17:21 UTC by Michal Bocek
Modified: 2018-10-14 21:29 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Comment 2 Michal Bocek 2018-07-24 14:43:20 UTC
The grubby tool /sbin/new-kernel-pkg, which is executed in postinstall scriptlet of kernel pkg [1], contains:

# set this as the default if we have the package and it matches
if [ "$mode" == "--install" -a "$UPDATEDEFAULT" == "yes" -a -n "$package" -a -n "$DEFAULTKERNEL" -a "$package" == "$DEFAULTKERNEL" ]; then
    makedefault="--make-default"
    [ -n "$verbose" ] && echo "making it the default based on config"
fi

From that it seems to me that in case I, as a user, don't want to make the newly installed kernel as default in the selection of the boot entries, I just comment out the UPDATEDEFAULT option, or assign whatever value except "yes".

[1] /usr/sbin/new-kernel-pkg --package kernel --install 3.10.0-862.el7.x86_64

Comment 4 Michal Bocek 2018-07-24 16:45:58 UTC
This section is about GRUB 2 and RHEL 5&6 use GRUB Legacy, thus this chapter is not completely relevant.
The thing is that the /etc/sysconfig/kernel is used by grubby, not GRUB. So grubby takes care of making the newly installed kernel default.

But you can use the following sentence from the above chapter:
"The DEFAULTKERNEL directive specifies what package type will be used as the default. Installing a package of type kernel-debug will not change the default kernel while the DEFAULTKERNEL is set to package type kernel."

Comment 6 Michal Bocek 2018-07-24 18:46:39 UTC
Just don't use any other part of that text you've found, apart the text I quoted in the previous comment.

Comment 7 Michal Bocek 2018-07-24 18:48:41 UTC
It would be probably better to approach the maintainer of grubby - pjones - to ask him about the right description of the file.

Comment 9 Michal Bocek 2018-07-25 15:29:33 UTC
Looks good, thanks Adam.

Comment 12 Michal Bocek 2018-07-30 16:24:11 UTC
1) Yes
2) I think the current description in the Kernel Admin guide is kind sufficient and you don't need to update it. But if you want, then you can use exactly what you have for RHEL 6.

Comment 13 Adam Kvitek 2018-08-01 10:07:06 UTC
Hello Michal,

here is a preview and stage build of the book with the chapter for Deployment Guide of RHEL 5 and RHEL6:

https://doc-stage.usersys.redhat.com/documentation/en-us/red_hat_enterprise_linux/5/html-single/deployment_guide/#s2-sysconfig-kernel

https://access.qa.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html-single/deployment_guide/#s2-sysconfig-kernel

Best regards,
Adam Kvítek


Note You need to log in before you can comment on or make changes to this bug.