You are not logged in.

#1 2023-09-25 15:50:53

MAYBL8
Member
Registered: 2022-01-14
Posts: 212

Trying to use systemd-boot but getting errors

I followed the wiki and I believe I installed correctly.

I created the loader.conf file and a entry file see below but I get this error when I list the settings.

[root@arch-linux demo]# bootctl list
         type: Boot Loader Specification Type #1 (.conf)
        title: Arch Linux (default) (not reported/new)
           id: arch.conf
       source: /boot/efi//loader/entries/arch.conf
        linux: /boot/efi//vmlinuz-linux (No such file or directory)
       initrd: /boot/efi//initramfs-linux.img (No such file or directory)
      options: root=PARTUUID=4a4d386b-275f-4986-b11a-bdf54939071a rw

loader.conf

default arch
timeout 4
console-mode max
editor no

arch.conf   (in entries folder)

title Arch Linux
linux vmlinuz-linux
initrd initramfs-linux.img
options root=PARTUUID=4a4d386b-275f-4986-b11a-bdf54939071a rw

blkid

[root@arch-linux demo]# blkid
/dev/sdb2: UUID="929d244c-1252-4dda-bafa-44dd1c75d35f" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="c966b311-fa42-40b2-85ee-b93b9c3e4d3b"
/dev/sdb1: UUID="9e065756-ec6f-46e0-82dc-3043ff9021cf" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="143e44c1-0985-4af4-807e-42bd285cf324"
/dev/sda4: BLOCK_SIZE="512" UUID="92BABC09BABBE7BD" TYPE="ntfs" PARTUUID="c2fda351-c3e9-4621-893e-53841742b074"
/dev/sda2: PARTUUID="eef77c85-1413-47fe-820a-11480bbe1b56"
/dev/sda9: UUID="1d3a68b1-8394-4fa4-9bed-dd1eb4e80e60" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="archlinux" PARTUUID="4a4d386b-275f-4986-b11a-bdf54939071a"
/dev/sda7: UUID="1bca0324-0535-49b7-b687-23497faddc6d" TYPE="swap" PARTUUID="55f6bc5a-dc52-4ee4-a149-9846e5bc5488"
/dev/sda5: BLOCK_SIZE="512" UUID="EC9CB6C29CB6869C" TYPE="ntfs" PARTUUID="1e6ff5c6-d007-4a27-9d38-e4ce3298d6c6"
/dev/sda3: BLOCK_SIZE="512" UUID="4C9CF0B09CF09624" TYPE="ntfs" PARTUUID="fd0694e6-4f62-489a-b3ba-2d3fc52d9d28"
/dev/sda1: UUID="8BC3-B538" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="721244a3-4c8b-4be1-8799-1301c5b40321"
/dev/sda8: LABEL="homeMX" UUID="e1aa1797-859a-46b9-9d99-4523d14415f6" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="b7ab1beb-031c-4714-9aae-5f72e7fe06e3"
/dev/sda6: LABEL="rootMX21" UUID="f918f8b3-d249-48bf-8a58-bbe32bcc1429" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="64f08aeb-79f7-43d6-aa49-be55af5d8ad9"

Also I only see   Windows 11 and UEFI firmware setting in the boot list.

Last edited by MAYBL8 (2023-09-25 15:51:50)

Online

#2 2023-09-25 16:12:10

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,595

Re: Trying to use systemd-boot but getting errors

So it sounds like you're mounting the ESP to /boot/efi? How are you planning on getting the kernel and initramfs there?

Offline

#3 2023-09-25 16:15:16

MAYBL8
Member
Registered: 2022-01-14
Posts: 212

Re: Trying to use systemd-boot but getting errors

Ok trying to understand this.

Grub works fine with this setup.

Does all of that need to change when using systemd-boot?

Online

#4 2023-09-25 16:29:59

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,595

Re: Trying to use systemd-boot but getting errors

systemd-boot has to be able to access the kernel and initramfs. The config you posted says they're in the root of the ESP. You have to get them there somehow.

Offline

#5 2023-09-25 16:58:05

MAYBL8
Member
Registered: 2022-01-14
Posts: 212

Re: Trying to use systemd-boot but getting errors

Should I change the config path variable to point it to where the files are instead of moving the files?
If I move the files won't that screw up GRUB.
I know do I want to use GRUB or systemd-boot

Right now until I get systemd-boot working I need to leave GRUB working so I can use the system.

Thanks

Online

Board footer

Powered by FluxBB