天天看點

centos7.2安裝實時更新檔

3.10的RT更新檔:https://www.kernel.org/pub/linux/kernel/projects/rt/3.10/

3.10的核心源碼:https://www.kernel.org/pub/linux/kernel/v3.x/

xz -d linux-3.10.108.xz

tar -xf linux-3.10.108.tar

gunzip patch-3.10.108-rt123.patch.gz

cd linux-3.10.108

patch  -p1 < ../patch-3.10.108-rt123.patch

cp /boot/config-3.10.0-327.el7.x86_64   linux-3.10.108/

cd linux-3.10.108

make menuconfig

make -j 40

make modules  -j 40

make modules_install  -j 40

make install

cat /boot/grub2/grub.cfg |grep menuentry

menuentry 'CentOS Linux (3.10.108-rt123) 7 (Core)'

menuentry 'CentOS Linux (3.10.0-327.el7.x86_64) 7 (Core)'

menuentry 'CentOS Linux (0-rescue-d23defbb651e4855b3f04319a4ce4080) 7 (Core)'

grub2-editenv list

grub2-set-default " CentOS Linux (3.10.108-rt123) 7 (Core)"

grub修改:

vi /etc/default/grub

grub2-mkconfig -o /boot/grub2/grub.cfg

繼續閱讀