Skip to content

Updating the kernel removes all boot entries (systemd)

Hi! I get really strange behavior of pacman: updating kernel removes all entries:

> ls /boot/loader/entries

arch.conf

> cat /boot/loader/entries/arch.conf 

title Arch Linux linux /vmlinuz-linux initrd /intel-ucode.img initrd /initramfs-linux.img options root=/dev/nvme0n1p5 rootflags=subvol=@ rw

> cat /boot/loader/loader.conf 

default arch.conf timeout 3 #console-mode keep

> sudo pacman -Sy linux
....
....
(4/4) Updating systemd-boot entries

Error: There are no boot loader entries after entry generation error: command failed to execute correctly

> ls /boot/loader/entries 
<empty>

​

Edited 14 Oct 2023. We only hold this version.

0 points11 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
0 · 38% up
Kind
Text
ID
177mbcv

Author

6
posts
12
comments
3
media
View profile

12 comments

Was /boot/ mounted before you ran pacman -Sy, and is it mounted afterwards?

5 points

Yes, I tried to mount boot and run pacman -Sy after that, but result is the same

0 points

Hm, another thing... i don't think my install ever did Updating systemd-boot entries for me. Are you sure you're not running some sort of pacman hook that does this? Whats the line before (1/4) in that output section?

And maybe this hook assumes some config files somewhere else, that get copied into /boot/loader/entries. And it's those config files that are missing.

4 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.