银河麒麟内核升级
wget https://mirrors.aliyun.com/elrepo/kernel/el7/x86_64/RPMS/kernel-lt-5.4.273-1.el7.elrepo.x86_64.rpm
yum localinstall -y kernel-lt-5.4.273-1.el7.elrepo.x86_64.rpm
[root@kylin ~]# grep ^menuentry /boot/grub2/grub.cfg | cut -d "'" -f2
Kylin Linux Advanced Server (5.4.273-1.el7.elrepo.x86_64) V10 (Lance)
Kylin Linux Advanced Server (4.19.90-52.22.v2207.ky10.x86_64) V10 (Lance)
Kylin Linux Advanced Server (0-rescue-c0f35066f97247249d9548da78596016) V10 (Lance)
cp /etc/grub2.cfg{,.bak-$(date +%F)}
grub2-set-default 5.4.273-1.el7.elrepo.x86_64
[root@kylin ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.273-1.el7.elrepo.x86_64
Found initrd image: /boot/initramfs-5.4.273-1.el7.elrepo.x86_64.img
Found linux image: /boot/vmlinuz-4.19.90-52.22.v2207.ky10.x86_64
Found initrd image: /boot/initramfs-4.19.90-52.22.v2207.ky10.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-c0f35066f97247249d9548da78596016
Found initrd image: /boot/initramfs-0-rescue-c0f35066f97247249d9548da78596016.img
done
[root@kylin ~]#
[root@kylin ~]# grub2-editenv list
saved_entry=5.4.273-1.el7.elrepo.x86_64
boot_success=0
reboot
[root@kylin ~]# uname -r
5.4.273-1.el7.elrepo.x86_64
[root@kylin ~]#