You are not logged in.
Pages: 1
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.namekernel parameter which breaks my boot process.
Last edited by theo01 (2025-01-19 09:01:39)
Offline
Chimera Linux have a script for this:
Jin, Jîyan, Azadî
Offline
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.installOffline
Arch doesn't have versioned kernel images so there's no need to update the configuration after updates.
Jin, Jîyan, Azadî
Offline
Pages: 1