1. 현재 기본 설정 확인
[root@localhost grub2]# grub2-editenv list
saved_entry=CentOS Linux 7 (Core), with Linux 3.10.0-229.el7.x86_64
2. 부팅 가능한 커널 리스트 확인
[root@localhost grub2]# grep ^menuentry /boot/grub2/grub.cfg | cut -d "'" -f2
CentOS Linux 7 (Core), with Linux 3.10.0-229.el7.x86_64
CentOS Linux 7 (Core), with Linux 3.10.0-229.4.2.el7.x86_64
CentOS Linux 7 (Core), with Linux 3.10.0-229.1.2.el7.x86_64
CentOS Linux 7 (Core), with Linux 0-rescue-2cc36f6122d84366abef8b9b8c41c0e1
3. 기본 부팅 커널 설정
[root@localhost grub2]# grub2-set-default "CentOS Linux 7 (Core), with Linux 3.10.0-229.4.2.el7.x86_64"
4. 기본 설정 확인(설정된 내용 확인)
[root@localhost grub2]# grub2-editenv list
saved_entry=CentOS Linux 7 (Core), with Linux 3.10.0-229.4.2.el7.x86_64
5. 재부팅
[root@localhost grub2]# reboot
1) check grub2 list
[root@localhost ~]# grub2-editenv list
saved_entry=Oracle Linux Server (4.1.12-61.1.18.el7uek.x86_64 with Unbreakable Enterprise Kernel) 7.3
2) boot kernel list
[root@localhost ~]# grep menuentry /boot/grub2/grub.cfg | cut -d "'" -f2
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
menuentry_id_option=""
export menuentry_id_option
Oracle Linux Server (4.1.12-61.1.18.el7uek.x86_64 with Unbreakable Enterprise Kernel) 7.3
Oracle Linux Server (3.10.0-514.el7.x86_64 with Linux) 7.3
Oracle Linux Server (0-rescue-86e134941dab44edbd170a93f7081907 with Linux) 7.3
3) change default boot kernel
[root@localhost ~]# grub2-set-default "Oracle Linux Server (3.10.0-514.el7.x86_64 with Linux) 7.3"
4) check grub2 list (boot list)
[root@localhost ~]# grub2-editenv list
saved_entry=Oracle Linux Server (3.10.0-514.el7.x86_64 with Linux) 7.3
5) reboot
[root@localhost ~]# reboot
6) check current kernel version (7.3 linux kernel version is 3.10.0-514.el7)
[root@localhost ~]# uname -a
Linux localhost.localdomain 3.10.0-514.el7.x86_64 #1 SMP Thu Nov 3 17:15:05 PDT 2016 x86_64 x86_64 x86_64 GNU/Linux
'OS - LINUX' 카테고리의 다른 글
[TD - LINUX] 리눅스 Multi default gateway 구성하기 (0) | 2019.08.08 |
---|---|
[TD - LINUX] ASH 로그 업로드 방법 (0) | 2019.08.05 |
[TD - LINUX] How to change max lun value (For Emulex) (1) | 2019.07.23 |
[TD - LINUX] How to update or patch rpm using YUM on Linux (0) | 2019.07.23 |
[TD-LINUX] How to collect vm core dump.docx (0) | 2018.07.17 |