You are not logged in.

#1 2025-01-19 08:46:33

theo01
Member
Registered: 2025-01-17
Posts: 5

Generate systemd-boot entries

Hello,

Is there a way/tool to reliably generate systemd-boot entires ? Ideally something that would also have a pacman hook so entries would be regenerated whenever kernel or microcode are installed/updated ?

I tried:
- kernel-install which does not work out of the box and requires explicit arguments for kernel version, path, and microcode image to be set. It also does not have a pacman hook.
- https://gitlab.com/dalto.8/systemd-boot-manager which seems abandoned and does generate faulty entries with

rd.luks.name

kernel parameter which breaks my boot process.

Last edited by theo01 (2025-01-19 09:01:39)

Offline

#2 2025-01-19 09:29:29

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Generate systemd-boot entries

Chimera Linux have a script for this:

https://raw.githubusercontent.com/chime … md-boot.sh


Jin, Jîyan, Azadî

Offline

#3 2025-01-19 09:46:06

theo01
Member
Registered: 2025-01-17
Posts: 5

Re: Generate systemd-boot entries

Doesn't work here, there are a bunch of files and command missing on arch for this script to work.

I figured out I can :
1. build microcode within the initramfs by adding microcode to /etc/mkinitcpio.conf
2. use kernel-install add-all to build the initramfs and generate the systemd-boot entries
3. install pacman-hook-kernel-install to plug kernel-install into a pacman hook

I also had to create few symlinks to make things right:

- disable mkinitcpio pacman hook

ln -sv /dev/null /etc/pacman.d/hooks/60-mkinitcpio-remove.hook^C
ln -sv /dev/null /etc/pacman.d/hooks/90-mkinitcpio-install.hook

- disable some kernel-install scripts which broke my install

ln -sv /dev/null /etc/kernel/install.d/50-depmod.install
ln -sv /dev/null /etc/kernel/install.d/90-uki-copy.install

Offline

#4 2025-01-19 09:47:40

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Generate systemd-boot entries

Arch doesn't have versioned kernel images so there's no need to update the configuration after updates.


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB