From: Steinar H. Gunderson Date: Sat, 3 Feb 2024 09:45:00 +0000 (+0100) Subject: Make initramfs hook install mount.bcachefs X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e9fec00f8624f4858bb269ca8f268652f9b04ddb;p=bcachefs-tools-debian Make initramfs hook install mount.bcachefs Now that the bcachefs tool unconditionally includes the mount parts (or more correctly, you cannot build it at all if you don't have Rust), we can call copy_exec on mount.bcachefs, to get the symlink installed. In particular, this helps with mounting UUID mounts as /. See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1060411 for the remaining parts needed in initramfs-tools itself. --- diff --git a/Makefile b/Makefile index 3923479..80d24ff 100644 --- a/Makefile +++ b/Makefile @@ -214,6 +214,7 @@ install: bcachefs $(optional_install) sed -i '/^# Note: make install replaces/,$$d' $(DESTDIR)$(INITRAMFS_HOOK) echo "copy_exec $(ROOT_SBINDIR)/bcachefs /sbin/bcachefs" >> $(DESTDIR)$(INITRAMFS_HOOK) + echo "copy_exec $(ROOT_SBINDIR)/mount.bcachefs /sbin/mount.bcachefs" >> $(DESTDIR)$(INITRAMFS_HOOK) .PHONY: install_systemd install_systemd: $(systemd_services) $(systemd_libexecfiles) diff --git a/initramfs/hook b/initramfs/hook index c172dbd..00ab52f 100755 --- a/initramfs/hook +++ b/initramfs/hook @@ -25,3 +25,4 @@ 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