How to modify the GRUB2 default entry to boot a different Kernel version?
1. Check the current running Kernel Version
2. List the Kernel Entries as per GRUB2 file:
# awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
Oracle Linux Server, with Unbreakable Enterprise Kernel 3.8.13-94.el7uek.x86_64
Oracle Linux Server, with Unbreakable Enterprise Kernel 3.8.13-94.el7uek.x86_64 with debugging
Oracle Linux Server 7.1, with Linux 3.10.0-229.el7.x86_64
Oracle Linux Server 7.1, with Unbreakable Enterprise Kernel 3.8.13-55.1.6.el7uek.x86_64
Oracle Linux Server 7.1, with Linux 0-rescue-441e86c9ff854310a306bd33e56aae2b
3. Let us modify the Kernel Version to 3.8.13-55.1.6.el7uek.x86_64 which is at line number 4 but denoted as entry
4: Changes to /etc/default/grub require rebuilding the grub.cfg file as follows:
Reboot the Server and it will boot with Kernel Version 3.8.13-55.1.6.el7uek.x86_64.
1. Check the current running Kernel Version
# uname -a
Linux geeklab 3.8.13-94.el7uek.x86_64 #2 SMP Wed Feb 11 14:18:22 PST 2015 x86_64 x86_64 x86_64 GNU/Linux
2. List the Kernel Entries as per GRUB2 file:
# awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
Oracle Linux Server, with Unbreakable Enterprise Kernel 3.8.13-94.el7uek.x86_64
Oracle Linux Server, with Unbreakable Enterprise Kernel 3.8.13-94.el7uek.x86_64 with debugging
Oracle Linux Server 7.1, with Linux 3.10.0-229.el7.x86_64
Oracle Linux Server 7.1, with Unbreakable Enterprise Kernel 3.8.13-55.1.6.el7uek.x86_64
Oracle Linux Server 7.1, with Linux 0-rescue-441e86c9ff854310a306bd33e56aae2b
NOTE: The first entry is denoted as Zero. So currently the Server is booted to 0th entry as per the above `uname -a` command output.
3. Let us modify the Kernel Version to 3.8.13-55.1.6.el7uek.x86_64 which is at line number 4 but denoted as entry
# grub2-set-default 3
4: Changes to /etc/default/grub require rebuilding the grub.cfg file as follows:
# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-229.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-229.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.8.13-94.el7uek.x86_64
Found initrd image: /boot/initramfs-3.8.13-94.el7uek.x86_64.img
Found linux image: /boot/vmlinuz-3.8.13-55.1.6.el7uek.x86_64
Found initrd image: /boot/initramfs-3.8.13-55.1.6.el7uek.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-441e86c9ff854310a306bd33e56aae2b
Found initrd image: /boot/initramfs-0-rescue-441e86c9ff854310a306bd33e56aae2b.img
done
Reboot the Server and it will boot with Kernel Version 3.8.13-55.1.6.el7uek.x86_64.
# shutdown -r now
Our editorial group ensures we solely release quality articles would possibly be} readworthy. Coming to terms with 온라인 카지노 the fact that|the truth that} you might be an addict is not easy, and it usually requires exterior help. Online remedy and help groups are available, they usually can provide you with the necessary assist you to are looking for. When gambling habit strikes, it’s hardly fairly or one thing easy to cope with. Excessive gambling practices can lead you to burn through your financial savings at a fast and foolhardy pace that leaves you penniless and precipitates anxiety, despair, recklessness, and more. Online gamblers can simply go from completely pleased ordinary people to someone who experiences emotional and financial turmoilthat makes day by day life a challenge.
ReplyDelete