]> git.sesse.net Git - bcachefs-tools-debian/blob - initramfs/hook
Depend on python3:any due to bcachefsck_all being a Python script (Lintian warning).
[bcachefs-tools-debian] / initramfs / hook
1 #!/bin/sh
2
3 PREREQ=""
4
5 prereqs()
6 {
7     echo "$PREREQ"
8 }
9
10 case $1 in
11 prereqs)
12     prereqs
13     exit 0
14     ;;
15 esac
16
17 . /usr/share/initramfs-tools/hook-functions
18
19 manual_add_modules 'bcachefs'
20
21 # chacha20 and poly1305 are used for encrypted bcachefs filesystems.
22 add_loaded_modules 'chacha20[-_]*'
23 add_loaded_modules 'poly1305[-_]*'
24
25 # Add the bcachefs utility to the initramfs
26 # Note: make install replaces this with the install path, so it must be last
27 #copy_exec /usr/local/sbin/bcachefs /sbin/bcachefs
28 #copy_exec /usr/local/sbin/mount.bcachefs /sbin/mount.bcachefs