我希望能够在启动时选择内核。我已经安装了arch默认值和lts内核。我使用systemdboot作为引导加载程序。
但当我启动我的笔记本,它直接启动,没有显示任何菜单。当我运行uname -r时,我得到:
5.9.0-arch1-1在/boot/loader/entries/中,我有两个文件:
arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options root="LABEL=arch_os" rw和拱形
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如何实现在引导菜单中选择内核的状态?如何使启动菜单显示在第一位?
如果您需要更多的信息,评论在这篇文章,我会尽快添加。
谢谢你的帮助
发布于 2021-01-28 01:35:23
解决方案是在/boot/loader/loader.conf中设置超时参数:
default arch.conf
timeout 5
console-mode max
editor nohttps://unix.stackexchange.com/questions/631309
复制相似问题