我正在运行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现在,我已经在grub.cfg中找到指向非lts内核的条目,但是标题告诉我不要编辑这个文件。它将指向实用程序grub-mkconfig,但是我不知道如何使用这个工具来告诉grub要使用哪个内核和ramdisk。
如何使用grub将archlinux切换到lts内核?在切换内核时,我还需要小心什么呢?
发布于 2016-05-21 13:29:11
好吧,乔在评论中给我指明了正确的方向之后,我就是这样做的:
pacman -S linux-ltsls -lsha /boot中内核、ramdisk和fallback是否可用pacman -R linuxgrub-mkconfig -o /boot/grub/grub.cfg注意,对于syslinux,您需要相应地编辑/boot/syslinux/syslinux.cfg中的syslinux配置文件,只需将所有内容指向-lts内核即可。
发布于 2018-06-02 20:50:12
阿夫里的回答适用于GRUB,但我是直接使用UEFI,它更轻量级,充分利用了UEFI主板。
linux-lts/boot文件夹中是否有LTS版本的内核、ramdisk和回退。--loader值和initrd值。这些文件应该在/boot文件夹中。uname -r验证它)之后,用pacman -R linux删除标准内核。发布于 2020-01-28 02:27:02
linux-lts (或任何其他内核):pacman -S linux-ltsuname -r重新启动并确认https://unix.stackexchange.com/questions/284617
复制相似问题