]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - initramfs/hook
Disable pristine-tar option in gbp.conf, since there is no pristine-tar branch.
[bcachefs-tools-debian] / initramfs / hook
index ce328f3a6bc9695ffcf9b0084ce41e22194171a9..00ab52fa9d1b1e16aef4a84149213569ff4d2a2e 100755 (executable)
@@ -1,22 +1,28 @@
 #!/bin/sh
 
-PREREQ="udev"
+PREREQ=""
 
 prereqs()
 {
-       echo "$PREREQ"
+    echo "$PREREQ"
 }
 
 case $1 in
 prereqs)
-       prereqs
-       exit 0
-       ;;
+    prereqs
+    exit 0
+    ;;
 esac
 
 . /usr/share/initramfs-tools/hook-functions
 
-cp -pt "${DESTDIR}/lib/udev/rules.d" /lib/udev/rules.d/61-bcache.rules
-copy_exec /lib/udev/bcache-register
-copy_exec /sbin/probe-bcache
-manual_add_modules bcache
+manual_add_modules 'bcachefs'
+
+# chacha20 and poly1305 are used for encrypted bcachefs filesystems.
+add_loaded_modules 'chacha20[-_]*'
+add_loaded_modules 'poly1305[-_]*'
+
+# 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
+#copy_exec /usr/local/sbin/mount.bcachefs /sbin/mount.bcachefs