Updates to resolve review comments.
This commit is contained in:
parent
7c3713ddcb
commit
4aa7a35aa6
2 changed files with 73 additions and 11 deletions
|
@ -1,16 +1,44 @@
|
|||
[[booting_specific_kernel_default]]
|
||||
== Setting an installed kernel to boot by default
|
||||
|
||||
To set a specific installed kernel to boot by default, use the following command
|
||||
To set a specific installed kernel to boot by default, first check the kernels installed on the system.
|
||||
|
||||
----
|
||||
sudo grubby --set-default /boot/vmlinuz-n.nn.nn-nnn.fcnn.x86_64
|
||||
sudo ls /boot | grep vmlinuz
|
||||
----
|
||||
|
||||
Identify the kernel to be set to boot by default.
|
||||
|
||||
Use the following command to set the default kernel to boot:
|
||||
|
||||
----
|
||||
sudo grubby --set-default /boot/vmlinuz-<version>.<release>.<arch>
|
||||
----
|
||||
|
||||
Here is a sample output (on an `x84_64` architecture system):
|
||||
|
||||
----
|
||||
sudo ls /boot | grep vmlinuz
|
||||
|
||||
vmlinuz-0-rescue-c722f5f7d614446b99c39b846c2bb76c
|
||||
vmlinuz-5.12.18-200.fc33.x86_64
|
||||
vmlinuz-5.8.15-301.fc33.x86_64
|
||||
----
|
||||
|
||||
If `vmlinuz-<version>.<release>.<arch>` is chosen to be set as the default, we issue the following command:
|
||||
|
||||
----
|
||||
sudo grubby --set-default /boot/vmlinuz-<version>.<release>.<arch>
|
||||
----
|
||||
|
||||
For the above scenario, the command will look like so
|
||||
|
||||
----
|
||||
sudo grubby --set-default /boot/vmlinuz-5.12.18-200.fc33.x86_64
|
||||
----
|
||||
|
||||
where `vmlinuz-n.nn.nn-nnn.fcnn` is the version of installed kernel as can be found in the `/boot` directory.
|
||||
|
||||
[[sect-references]]
|
||||
=== References:
|
||||
|
||||
* https://docs.fedoraproject.org/en-US/fedora/rawhide/system-administrators-guide/kernel-module-driver-configuration/Working_with_the_GRUB_2_Boot_Loader/[Fedora Rawhide Docs :: Working with the GRUB 2 Boot Loader]
|
||||
* https://docs.fedoraproject.org/en-US/Fedora/23/html/System_Administrators_Guide/sec-Configuring_GRUB_2_Using_the_grubby_Tool.html[Using the grubby tool]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue