Skip to content

alpm/pacman hook to automatically sign efi binary after package updates.

Notifications You must be signed in to change notification settings

brandsimon/dracut-alpm-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

dracut-alpm-hook

This provides hooks for alpm/pacman to build an initramfs with dracut on package update.

Dependencies

dash dracut systemd

Installation

To enable this hook, copy the files to the pacman directories.

cp etc/pacman.d/hooks/90-dracut.hook /etc/pacman.d/hooks/90-dracut.hook
cp etc/pacman.d/scripts/dracut.sh /etc/pacman.d/scripts/dracut.sh

Trigger build manually

To rebuild all kernels, run

echo | dash /path/to/dracut-script.sh

To rebuild a specific kernel, run

echo usr/lib/modules/5.3.13-arch1-1/pkgbase | dash /path/to/dracut-script.sh

Configuration

You can change options in the script file.

CMDLINE: cmdline to use
EFI_STUB: efi stub to use
FALLBACK: wether to create a fallback image (empty means no, everything else yes)
SECUREBOOTFILES: path to db.key and db.crt

About

alpm/pacman hook to automatically sign efi binary after package updates.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages