Kent Overstreet 993396bb57 Fix initramfs hook installation
We have to create the final hook before installation for debian package
builds.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-09-17 00:37:46 -04:00

27 lines
438 B
Bash
Executable File

#!/bin/sh
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
manual_add_modules 'bcachefs'
# chacha20 and poly1305 are used for encrypted bcachefs filesystems.
add_loaded_modules 'chacha20[-_]*'
add_loaded_modules 'poly1305[-_]*'
copy_exec @ROOT_SBINDIR@/bcachefs /sbin/bcachefs
copy_exec @ROOT_SBINDIR@/mount.bcachefs /sbin/mount.bcachefs