8 Ocak 2019 Salı

RedHat 7.x, Oracle Enterprise Linux 7.x, CentOS 7.x de varsayılan kerneli değiştirmek

Öncelikle sisteme yüklenmiş mevcut kernelleri listeleriz;


[root@oradb01 ~]# awk -F\' '/menuentry / {print $2}' /etc/grub2.cfg
Oracle Linux Server
Oracle Linux Server (4.1.12-124.22.2.el7uek.x86_64 with Unbreakable Enterprise Kernel) 7.6
Oracle Linux Server (4.1.12-124.22.2.el7uek.x86_64 with Unbreakable Enterprise Kernel) 7.6 (recovery mode)
Oracle Linux Server (4.1.12-61.1.18.el7uek.x86_64 with Unbreakable Enterprise Kernel) 7.6
Oracle Linux Server (4.1.12-61.1.18.el7uek.x86_64 with Unbreakable Enterprise Kernel) 7.6 (recovery mode)
Oracle Linux Server (3.10.0-957.0.el7.x86_64 with Linux) 7.6
Oracle Linux Server (3.10.0-957.0.el7.x86_64 with Linux) 7.6 (recovery mode)
Oracle Linux Server (3.10.0-957.el7.x86_64 with Linux) 7.6
Oracle Linux Server (3.10.0-957.el7.x86_64 with Linux) 7.6 (recovery mode)
Oracle Linux Server (3.10.0-514.el7.x86_64 with Linux) 7.6
Oracle Linux Server (3.10.0-514.el7.x86_64 with Linux) 7.6 (recovery mode)
Oracle Linux Server (0-rescue-e541e1b9900e4202ae5091ee11df9604 with Linux) 7.6
Oracle Linux Server (0-rescue-e541e1b9900e4202ae5091ee11df9604 with Linux) 7.6 (recovery mode)
[root@oradb01 ~]#













Sonrasında istediğimiz kerneli ayarlarız;

 grub2-set-default "Oracle Linux Server (3.10.0-514.el7.x86_64 with Linux) 7.6"


ve grub2 conf dosyasını tekrardan oluştururuz.


# grub2-mkconfig -o /etc/grub2.cfg

Hiç yorum yok:

Yorum Gönder