2018-02-11 20:35:15 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PREREQ=""
|
|
|
|
|
|
|
|
prereqs()
|
|
|
|
{
|
|
|
|
echo "$PREREQ"
|
|
|
|
}
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
prereqs)
|
|
|
|
prereqs
|
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
. /usr/share/initramfs-tools/hook-functions
|
|
|
|
|
2018-08-24 07:42:44 +03:00
|
|
|
manual_add_modules 'bcachefs'
|
|
|
|
|
|
|
|
# chacha20 and poly1305 are used for encrypted bcachefs filesystems.
|
|
|
|
add_loaded_modules 'chacha20[-_]*'
|
|
|
|
add_loaded_modules 'poly1305[-_]*'
|
|
|
|
|
2019-01-14 05:47:41 +03:00
|
|
|
# Add the bcachefs utility to the initramfs
|
|
|
|
# Note: make install replaces this with the install path, so it must be last
|
|
|
|
#copy_exec /usr/local/sbin/bcachefs /sbin/bcachefs
|
2024-02-03 12:45:00 +03:00
|
|
|
#copy_exec /usr/local/sbin/mount.bcachefs /sbin/mount.bcachefs
|