-
Notifications
You must be signed in to change notification settings - Fork 9
/
kernel-update
41 lines (31 loc) · 1.05 KB
/
kernel-update
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
작업 2: 커널 업데이트
1. Update and upgrade CentOS 7
# yum –y update
# yum -y install yum-plugin-fastestmirror
2. Checking kernel version
# cat /etc/redhat-release
# cat /etc/os-release
3. Add ELRepo Repository
Add ELRepo gpg key to the system.
# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
Now add new ELRepo repository with rpm command.
# rpm –Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
# yum repolist
4. Install new Kernel version
In this step, we will install latest kernel version (the Latest stable version on kernel.org) from the ELRepo repository.
Use the following yum command for this.
# yum --enablerepo=elrepo-kernel install kernel-ml
5. Configure Grub2 CentOS 7
# awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg
# grub2-set-default 0
# cat /boot/grub2/grubenv
# GRUB Environment Block
saved_entry=0
# cat << EOF > /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_forward = 1
EOF
# sysctl --system
# reboot
# uname -a