# snap-pac-uki Need help? Talk to me at [#snap-pac-uki:tfld.dev][matrix-room]. ## What is this? This is a collection of scripts, pacman hooks and and systemd units for creating and managing unified kernel images (UKIs) based on snapper. It originally expected to be executed as a pacman hook after `snap-pac`, but this is no longer required (though the name remains). ## Installation ### Prerequisites While not depending on it directly, this tool expects that you already set up snapper. It expects, that each snapshot contains its kernel (`/boot/vmlinuz-linux`) and initramfs (`/boot/intitramfs-linux.img`), as well as a kernel command line file (`/etc/snap-pac-uki/kernel-cmd`). For generating the current and fallback UKIs, the kernel and initramfs files of the currently running system are used. For a kernel cmd, it uses `/etc/snap-pac-uki/kernel-cmd-current` and `/etc/snap-pac-uki/kernel-cmd-fallback`. If you want to boot a UKI directly, use the `efibootmgr` command to create an entry. ```bash # template efibootmgr -c \ -d \ -p \ -l \ -L