You are not logged in.

#1 2020-07-31 21:19:10

darkjh
Member
Registered: 2011-10-21
Posts: 33

[Solved] No archlinux entry after systemd-boot setup

Hi,

Just installed arch on a new dell xps 9500, alongside the stock windows 10.
I have one dedicated partition for `/home` and it's encryted with luks.

I mount the existing efi partition to `/boot/efi` and install systemd-boot using `bootctl install`
I then add an `arch.conf` entry under `loader/entries`

I verified the boot setup with `bootctl list`, and arch is the default one and check is green.

Then I reboot, using the Linux Boot Manager, but in the list I don't have arch linux as option, only the windows boot manager.

Any information I can put here to help finding the problem?

Thanks!

Last edited by darkjh (2020-08-02 22:52:08)

Offline

#2 2020-07-31 21:25:38

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved] No archlinux entry after systemd-boot setup

Post the contents of your systemd-boot configuration files.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2020-07-31 21:58:30

darkjh
Member
Registered: 2011-10-21
Posts: 33

Re: [Solved] No archlinux entry after systemd-boot setup

/boot/efi/loader/loader.conf

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

/boot/efi/loader/entries/arch.conf

title Arch Linux
linux ../vmlinuz-linux
initrd ../intel-ucode.img
initrd ../initramfs-linux.img
options root=UUID=73331cc7-ef44-4250-bb91-1b1f2d0afc05 rw

I've double check the uuid (it's the / partition UUID)

Offline

#4 2020-07-31 22:35:10

darkjh
Member
Registered: 2011-10-21
Posts: 33

Re: [Solved] No archlinux entry after systemd-boot setup

Is it a problem of mounting the efi partition to `/boot/efi`?
Files like `vmlinuz-linux` are under `/boot`, so at boot time they are not in the efi partition? Is is a problem?

Offline

#5 2020-07-31 22:50:45

GeorgeJP
Member
From: Czech Republic
Registered: 2020-01-28
Posts: 185

Re: [Solved] No archlinux entry after systemd-boot setup

Kernel and initrd's should be on EFI partition.
I prefer mount EFI to /boot
also paths should be without dots (../)

Last edited by GeorgeJP (2020-07-31 22:52:31)

Offline

#6 2020-08-01 08:20:42

darkjh
Member
Registered: 2011-10-21
Posts: 33

Re: [Solved] No archlinux entry after systemd-boot setup

GeorgeJP wrote:

Kernel and initrd's should be on EFI partition.
I prefer mount EFI to /boot
also paths should be without dots (../)

Yes that's the problem. I copied the kernel and initrd files under `/boot/efi` that the problem is solved.
So is it safe to uninstall the systemd-boot and change the mount point to `/boot`? Otherwise I have to manual copy files each time kernel is updated.

Offline

#7 2020-08-01 08:28:57

GeorgeJP
Member
From: Czech Republic
Registered: 2020-01-28
Posts: 185

Re: [Solved] No archlinux entry after systemd-boot setup

Unmount EFI from /boot/efi
Mount EFI to /boot
Change entry in /etc/fstab
bootctl install
Verify contents of /boot folder
Should be OK

Offline

#8 2020-08-01 20:34:50

darkjh
Member
Registered: 2011-10-21
Posts: 33

Re: [Solved] No archlinux entry after systemd-boot setup

GeorgeJP wrote:

Unmount EFI from /boot/efi
Mount EFI to /boot
Change entry in /etc/fstab
bootctl install
Verify contents of /boot folder
Should be OK

No need to `bootctl remove` first?

Offline

#9 2020-08-01 21:06:27

GeorgeJP
Member
From: Czech Republic
Registered: 2020-01-28
Posts: 185

Re: [Solved] No archlinux entry after systemd-boot setup

Not necessarily.
After install you can remove all remaining files manually.

Final file structure should look like this

/boot
├── EFI
│   ├── BOOT
│   │   └── BOOTX64.EFI
│   ├── Linux
│   └── systemd
│       └── systemd-bootx64.efi
├── initramfs-linux-fallback.img
├── initramfs-linux.img
├── loader
│   ├── entries
│   │   ├── arch1.conf
│   │   └── arch2.conf
│   ├── loader.conf
│   └── random-seed
└── vmlinuz-linux

(I have two arch.conf files - for normal and fallback start)

Offline

Board footer

Powered by FluxBB