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

 

 

사업자 정보 표시
(주)블루원 | 김홍태 | 서울특별시 용산구 원효로 4가 135 금홍 2빌딩 | 사업자 등록번호 : 106-86-76684 | TEL : 02-3272-7200 | Mail : support_ora@blueone.co.kr | 통신판매신고번호 : 호 | 사이버몰의 이용약관 바로가기

+ Recent posts