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.
About this post
- Posted
- Archived
- Edited
- Score
- 0 · 38% up
- Kind
- Text
- ID
- 177mbcv
12 comments
Was
/boot/mounted before you ranpacman -Sy, and is it mounted afterwards?Yes, I tried to mount boot and run pacman -Sy after that, but result is the same
Hm, another thing... i don't think my install ever did
Updating systemd-boot entriesfor 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.