You are not logged in.
Pages: 1
Hi there,
it is my first time using systemd-boot and so far everything works fine except one issue:
systemd-boot seems to ignore my loader.conf
I changed the default in the loader.conf from "arch" to "arch hardened" (=using linux-hardened kernel) but it still boots arch by default.
Also when booting, it doesn't show me the loader where I could select the entries to e.g. boot windows. Event though a timeout is set.
bootctl status:
System:
Firmware: UEFI 2.70 (Lenovo 0.4576)
Firmware Arch: x64
Secure Boot: disabled (disabled)
TPM2 Support: yes
Boot into FW: supported
Current Boot Loader:
Product: systemd-boot 253.1-3-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
✓ Load drop-in drivers
✓ Support Type #1 sort-key field
✓ Support @saved pseudo-entry
✓ Support Type #1 devicetree field
✓ Boot loader sets ESP information
ESP: /dev/disk/by-partuuid/065b9803-4740-4866-b054-a2e9efef1772
File: └─/EFI/systemd/systemd-bootx64.efi
Random Seed:
System Token: set
Exists: yes
Available Boot Loaders on ESP:
ESP: /efi (/dev/disk/by-partuuid/065b9803-4740-4866-b054-a2e9efef1772)
File: ├─/EFI/systemd/systemd-bootx64.efi (systemd-boot 253.1-3-arch)
└─/EFI/BOOT/bootx64.efi (systemd-boot 253.1-3-arch)
Boot Loaders Listed in EFI Variables:
Title: Linux Boot Manager
ID: 0x0001
Status: active, boot-order
Partition: /dev/disk/by-partuuid/065b9803-4740-4866-b054-a2e9efef1772
File: └─/EFI/systemd/systemd-bootx64.efi
Title: Windows Boot Manager
ID: 0x0000
Status: active, boot-order
Partition: /dev/disk/by-partuuid/065b9803-4740-4866-b054-a2e9efef1772
File: └─/EFI/Microsoft/Boot/bootmgfw.efi
Boot Loader Entries:
$BOOT: /boot (/dev/disk/by-partuuid/b6bbd3d9-a127-1c4b-baf5-5a9078c714ed)
token: arch
Default Boot Loader Entry:
type: Boot Loader Specification Type #1 (.conf)
title: Arch Linux
id: arch.conf
source: /boot//loader/entries/arch.conf
linux: /boot//vmlinuz-linux
initrd: /boot//amd-ucode.img
/boot//initramfs-linux.img
options: cryptdevice=UUID=x:lvm:allow-discards root=/xx zswap.enabled=0 amd_pstate=passive rd.luks.options=discard no_read_work>
bootctl list:
type: Boot Loader Specification Type #1 (.conf)
title: Arch Linux (default) (selected)
id: arch.conf
source: /boot//loader/entries/arch.conf
linux: /boot//vmlinuz-linux
initrd: /boot//amd-ucode.img
/boot//initramfs-linux.img
options: cryptdevice=UUID=x:lvm:allow-discards root=/xzswap.enabled=0 amd_pstate=passive rd.luks.options=discard no_read_work>
type: Boot Loader Specification Type #1 (.conf)
title: Arch Linux Hardened
id: arch-hardened.conf
source: /boot//loader/entries/arch-hardened.conf
linux: /boot//vmlinuz-linux-hardened
initrd: /boot//amd-ucode.img
/boot//initramfs-linux-hardened.img
options: cryptdevice=UUID=x:lvm:allow-discards root=/x zswap.enabled=0 amd_pstate=passive rd.luks.options=discard no_read_work>
type: Automatic
title: Windows Boot Manager
id: auto-windows
source: /sys/firmware/efi/efivars/LoaderEntries-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
type: Automatic
title: Reboot Into Firmware Interface
id: auto-reboot-to-firmware-setup
source: /sys/firmware/efi/efivars/LoaderEntries-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
/boot/loader/loader.conf:
default arch-hardened.conf
timeout 3
console-mode max
ls -al /boot/loader/entries
total 16
drwxr-xr-x 2 root root 4096 18. Mär 21:58 .
drwxr-xr-x 3 root root 4096 18. Mär 00:23 ..
-rwxr-xr-x 1 root root 294 18. Mär 15:53 arch.conf
-rwxr-xr-x 1 root root 321 18. Mär 21:58 arch-hardened.conf
arch-hardened.conf
title Arch Linux Hardened
linux /vmlinuz-linux-hardened
initrd /amd-ucode.img
initrd /initramfs-linux-hardened.img
options cryptdevice=UUID=x:lvm:allow-discards root=/x zswap.enabled=0 amd_pstate=passive rd.luks.options=discard no_read_workqueue no_write_workqueue
arch.conf:
title Arch Linux
linux /vmlinuz-linux
initrd /amd-ucode.img
initrd /initramfs-linux.img
options cryptdevice=UUID=x:lvm:allow-discards root=/x zswap.enabled=0 amd_pstate=passive rd.luks.options=discard no_read_workqueue no_write_workqueue
Last edited by Utini (2023-03-20 13:14:49)
Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF
Offline
Maybe you override it in the bootloader (pressing 'd' on entry), so it not selecting default from the conf file?
Offline
You mean I am pressing the key "d" during boot? No I am not.
I can force the boot entry selection to be viewable by pressing space though.
Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF
Offline
ls -la /boot /efi
?
ls -la /boot /efi:
/boot:
total 245004
drwxr-xr-x 4 root root 4096 1. Jan 1970 .
drwxr-xr-x 18 root root 4096 17. Mär 23:36 ..
-rwxr-xr-x 1 root root 51200 16. Feb 16:55 amd-ucode.img
drwxr-xr-x 3 root root 4096 17. Mär 23:47 EFI
-rwxr-xr-x 1 root root 78046841 19. Mär 18:52 initramfs-linux-fallback.img
-rwxr-xr-x 1 root root 69487418 18. Mär 19:58 initramfs-linux-hardened-fallback.img
-rwxr-xr-x 1 root root 39598985 18. Mär 19:58 initramfs-linux-hardened.img
-rwxr-xr-x 1 root root 41130247 19. Mär 18:52 initramfs-linux.img
drwxr-xr-x 3 root root 4096 18. Mär 00:23 loader
-rwxr-xr-x 1 root root 12501472 19. Mär 18:52 vmlinuz-linux
-rwxr-xr-x 1 root root 10038080 18. Mär 19:58 vmlinuz-linux-hardened
/efi:
total 8
drwxr-xr-x 5 root root 1024 1. Jan 1970 .
drwxr-xr-x 18 root root 4096 17. Mär 23:36 ..
drwxr-xr-x 5 root root 1024 17. Mär 23:47 EFI
drwxr-xr-x 2 root root 1024 20. Mär 09:02 loader
drwxr-xr-x 2 root root 1024 18. Mär 06:04 'System Volume Information'
Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF
Offline
See the first note:
https://wiki.archlinux.org/title/Systemd-boot
You mean?
When running bootctl install, systemd-boot will try to locate the ESP at /efi, /boot, and /boot/efi. Setting esp to a different location requires passing the --esp-path=esp option. (See bootctl(1) §OPTIONS for details.)
Installing systemd-boot will overwrite any existing esp/EFI/BOOT/BOOTX64.EFI, e.g. Microsoft's version of the file.
Because I am using XBOOTLDR and installed it with:
bootctl --esp-path=/efi --boot-path=/boot install
That should be all correct?
Last edited by Utini (2023-03-20 11:41:50)
Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF
Offline
Then why are you trying to configure systemd-boot from '/boot/loader' and not '/efi/loader'?
\A/ Utini!
Last edited by dogknowsnx (2023-03-20 13:27:52)
... oh now I get it.
The loader.conf always needs to be in ESP (=/efi/loader/) but the entries can be also in /boot/loader/.
Thanks!
Setup 1: Thinkpad T14s G3, 14" FHD - R7 6850U - 32GB RAM - 2TB Solidigm P44 Pro NVME
Setup 2: Thinkpad X1E G1, 15.6" FHD - i7-8850H - 32GB RAM - NVIDIA GTX 1050Ti - 2x 1TB Samsung 970 Pro NVME
Accessories: Filco Majestouch TKL MX-Brown Mini Otaku, Benq XL2420T (144Hz), Lo(w)gitech G400, Puretrak Talent, Sennheiser HD800S + Meier Daccord FF + Meier Classic FF
Offline
Pages: 1