Arch linux:带有 arch 内核和 lts 内核的 systemd 启动菜单

Arch linux:带有 arch 内核和 lts 内核的 systemd 启动菜单

我希望能够在启动时选择内核。我已经安装了 arch default 和 lts 内核。我在用系统引导作为引导加载程序。

但是当我启动笔记本时,它直接开始启动,而不显示任何菜单。当我跑步时uname -r我得到:

5.9.0-arch1-1

/boot/loader/entries/有两个文件:

架构文件

title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options root="LABEL=arch_os" rw

arch-lts.conf

title Arch Linux (LTS)
linux /vmlinuz-linux-lts
initrd /intel-ucode.img
initrd /initramfs-linux-lts.img
options root="LABEL=arch_os" rw

/boot我有:

drwxr-xr-x 7 root root 4.0K 11. pro 11.08  EFI/
-rwxr-xr-x 1 root root  28M 26. led 16.39  initramfs-linux-fallback.img*
-rwxr-xr-x 1 root root 7.6M 26. led 16.39  initramfs-linux.img*
-rwxr-xr-x 1 root root  28M 25. led 16.19  initramfs-linux-lts-fallback.img*
-rwxr-xr-x 1 root root 7.7M 25. led 16.19  initramfs-linux-lts.img*
-rwxr-xr-x 1 root root 3.5M 19. lis 08.58  intel-ucode.img*
drwxr-xr-x 3 root root 4.0K 27. led 19.34  loader/
drwxr-xr-x 2 root root 4.0K 29. čec  2020 'System Volume Information'/
-rwxr-xr-x 1 root root 8.6M 26. led 16.39  vmlinuz-linux*
-rwxr-xr-x 1 root root 6.2M 25. led 16.19  vmlinuz-linux-lts*

当我跑步时bootclt我得到:

System:
     Firmware: UEFI 2.60 (Lenovo 0.6032)
  Secure Boot: disabled
   Setup Mode: setup
 Boot into FW: supported

Current Boot Loader:
      Product: systemd-boot 245.7-1-arch
     Features: ✓ Boot counting
               ✓ Menu timeout control
               ✓ One-shot menu timeout control
               ✓ Default entry control
               ✓ One-shot entry control
               ✓ Support for XBOOTLDR partition
               ✓ Support for passing random seed to OS
               ✓ Boot loader sets ESP partition information
          ESP: /dev/disk/by-partuuid/734e58b8-003a-4faf-bb75-338274e3fe64
         File: └─/EFI/systemd/systemd-bootx64.efi

Random Seed:
 Passed to OS: yes
 System Token: set
       Exists: yes

Available Boot Loaders on ESP:
          ESP: /boot (/dev/disk/by-partuuid/734e58b8-003a-4faf-bb75-338274e3fe64)
         File: └─/EFI/systemd/systemd-bootx64.efi (systemd-boot 245.7-1-arch)
         File: └─/EFI/BOOT/bootx64.efi (systemd-boot 245.7-1-arch)

Boot Loaders Listed in EFI Variables:
        Title: Linux Boot Manager
           ID: 0x0002
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/734e58b8-003a-4faf-bb75-338274e3fe64
         File: └─/EFI/systemd/systemd-bootx64.efi

        Title: Windows Boot Manager
           ID: 0x0000
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/734e58b8-003a-4faf-bb75-338274e3fe64
         File: └─/EFI/Microsoft/Boot/bootmgfw.efi

        Title: Linux-Firmware-Updater
           ID: 0x0001
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/734e58b8-003a-4faf-bb75-338274e3fe64
         File: └─/EFI/arch/fwupdx64.efi

Boot Loader Entries:
        $BOOT: /boot (/dev/disk/by-partuuid/734e58b8-003a-4faf-bb75-338274e3fe64)

Default Boot Loader Entry:
        title: Arch Linux
           id: arch.conf
       source: /boot/loader/entries/arch.conf
        linux: /vmlinuz-linux
       initrd: /intel-ucode.img
               /initramfs-linux.img
      options: root="LABEL=arch_os" rw

如何实现可以在 bootmenu 中启动时选择内核的状态?如何使启动菜单显示在第一位?

如果您需要更多信息,请在本文下评论,我会尽快添加。
谢谢你的帮助

答案1

解决方案是设置暂停参数/boot/loader/loader.conf

default arch.conf
timeout 5
console-mode max
editor no

相关内容