Arch-Linux
Arch linux:帶有arch核心和lts核心的systemd啟動菜單
我希望能夠在啟動時選擇核心。我已經安裝了 arch default 和 lts 核心。我使用systemdboot作為引導載入程序。
但是當我啟動我的筆記本時,它直接開始啟動而不顯示任何菜單。當我跑步時,
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 中實現可以在啟動時選擇核心的狀態?如何讓啟動菜單顯示在第一位?
如果您需要更多資訊,請在此文章下發表評論,我會盡快添加。
謝謝你的幫助
解決方案是設置超時參數
/boot/loader/loader.conf
:default arch.conf timeout 5 console-mode max editor no