我正在运行Arch Linux的无头服务器安装。较高的内核升级率使我有些维护上的麻烦,因此我希望切换到lts内核。
我已经安装了linux-lts
和linux-lts-headers
软件包。现在,我已经安装了两个内核,但是我不知道如何从这里继续。该文档解释:
[...]您将需要更新引导程序的配置文件以使用LTS内核和ram磁盘:
vmlinuz-linux-lts
和initramfs-linux-lts.img
。
我已经在引导部分找到了它们:
0 ✓ root@host ~ $ ll /boot/
total 85M
4,0K drwxr-xr-x 4 root root 4,0K 21. Mai 13:46 ./
4,0K drwxr-xr-x 17 root root 4,0K 4. Apr 15:08 ../
4,0K drwxr-xr-x 6 root root 4,0K 4. Apr 14:50 grub/
27M -rw-r--r-- 1 root root 27M 20. Mai 17:01 initramfs-linux-fallback.img
12M -rw-r--r-- 1 root root 12M 20. Mai 17:01 initramfs-linux.img
27M -rw-r--r-- 1 root root 27M 21. Mai 13:46 initramfs-linux-lts-fallback.img
12M -rw-r--r-- 1 root root 12M 21. Mai 13:46 initramfs-linux-lts.img
16K drwx------ 2 root root 16K 4. Apr 14:47 lost+found/
4,3M -rw-r--r-- 1 root root 4,3M 11. Mai 22:23 vmlinuz-linux
4,2M -rw-r--r-- 1 root root 4,2M 19. Mai 21:05 vmlinuz-linux-lts
现在,我已经在中找到了指向非-lts内核的条目,grub.cfg
但是标题告诉我不要编辑该文件。它使我指向该实用程序,grub-mkconfig
但是我无法弄清楚如何使用此工具告诉grub使用哪个内核和ramdisk。
如何将带有grub的archlinux切换到lts内核?切换内核时,我还需要注意什么?
好的,在joe指示我正确的评论方向后,这就是我的做法:
基本上只是安装 pacman -S linux-lts
(可选)检查内核,ramdisk和回退是否可用于 ls -lsha /boot
删除标准内核 pacman -R linux
更新grub配置 grub-mkconfig -o /boot/grub/grub.cfg
重启
注意,因为syslinux
您需要相应地编辑syslinux配置文件/boot/syslinux/syslinux.cfg
,所以只需将所有内容指向-lts
内核即可。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句