RHEL / CentOS Change default kernel - Oracle Linux Change UEK kernel with Redhat kernel

آموزشهای آزاد مدیریت لینوکس

 

Oracle Linux Change UEK kernel  with Redhat kernel

How to Define the Default Entries

To list all the menu entries that will be displayed at system boot, issue the following command:

[root@ole7 ~]# sudo cat /boot/grub2/grubenv |grep saved
saved_entry=Oracle Linux Server 7.5, with Unbreakable Enterprise Kernel 4.1.12-124.20.7.el7uek.x86_64
[root@ole7 ~]# awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg
0 : Oracle Linux Server (4.1.12-124.20.7.el7uek.x86_64 with Unbreakable Enterprise Kernel) 7.5
1 : Oracle Linux Server (4.1.12-94.3.9.el7uek.x86_64 with Unbreakable Enterprise Kernel) 7.5
2 : Oracle Linux Server (3.10.0-862.14.4.el7.x86_64 with Linux) 7.5
3 : Oracle Linux Server (3.10.0-693.el7.x86_64 with Linux) 7.5
4 : Oracle Linux Server (0-rescue-54be3937206f48e3ae28a1826c9f8ab1 with Linux) 7.5
[root@ole7 ~]# sudo grub2-set-default 2
[root@ole7 ~]# sudo grub2-editenv list
saved_entry=2
On UEFI-based systems, the command will be
[root@ole7 ~]# sudo grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.1.12-124.20.7.el7uek.x86_64
Found initrd image: /boot/initramfs-4.1.12-124.20.7.el7uek.x86_64.img
Found linux image: /boot/vmlinuz-4.1.12-94.3.9.el7uek.x86_64
Found initrd image: /boot/initramfs-4.1.12-94.3.9.el7uek.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-862.14.4.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-862.14.4.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-693.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-693.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-54be3937206f48e3ae28a1826c9f8ab1
Found initrd image: /boot/initramfs-0-rescue-54be3937206f48e3ae28a1826c9f8ab1.img
done
[root@ole7 ~]# sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.1.12-124.20.7.el7uek.x86_64
Found initrd image: /boot/initramfs-4.1.12-124.20.7.el7uek.x86_64.img
Found linux image: /boot/vmlinuz-4.1.12-94.3.9.el7uek.x86_64
Found initrd image: /boot/initramfs-4.1.12-94.3.9.el7uek.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-862.14.4.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-862.14.4.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-693.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-693.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-54be3937206f48e3ae28a1826c9f8ab1
Found initrd image: /boot/initramfs-0-rescue-54be3937206f48e3ae28a1826c9f8ab1.img
done
[root@ole7 ~]# sudo reboot
مطالب و دوره های آموزشی مرتبط
مطالب و دوره های آموزشی مرتبط

برچسب ها: Redhat kernel, UEK, grub2-editenv, grub2-set-default, grub2-mkconfig, UEFI-based

نوشتن دیدگاه


تصویر امنیتی
تصویر امنیتی جدید

  • همه
  • FreeBSD
  • GUI
  • Linux
  • LPIC1
  • LVM
  • RHEL
  • Sysadmin
موارد دیگر کلید SHIFT را برای نمایش همه نگه دارید نمایش همه