Package: fuse
Version: 2.7.4-1.1
Severity wishlist
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu ubuntu-patch jaunty

Hello,

this is a patch for adding initramfs support for fuse. With having
fuse available in initramfs, one can mount the entire root partition
from e. g. an image, over the network, or other cool things. Of course
this requires additional things like ntfs-3g, or sshfs, or whatever
you want to do to be in the initramfs, too, but this lays the
foundation work.

Thanks for considering,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
--- fuse-2.7.4/debian/fuse-utils.postinst
+++ fuse-2.7.4/debian/fuse-utils.postinst
@@ -38,5 +38,9 @@
   chown root:fuse /etc/fuse.conf
   chmod 0640 /etc/fuse.conf
+
+  if type update-initramfs >/dev/null 2>&1; then
+    update-initramfs -u
+  fi
   ;;
 
   abort-upgrade|abort-remove|abort-deconfigure)
diff -u fuse-2.7.4/debian/rules fuse-2.7.4/debian/rules
--- fuse-2.7.4/debian/rules
+++ fuse-2.7.4/debian/rules
@@ -59,6 +60,8 @@
 	dh_installdirs -pfuse-utils usr/share/lintian/overrides
 	cp $(CURDIR)/debian/fuse-utils.lintian \
 	   $(CURDIR)/debian/fuse-utils/usr/share/lintian/overrides/fuse-utils
+	install -D -m0755 debian/fuse-utils.initramfs-hook \
+	$(CURDIR)/debian/fuse-utils/usr/share/initramfs-tools/hooks/fuse_utils
 	dh_install -s --source=debian/tmp
 	install -D -m0640 $(CURDIR)/debian/fuse.conf \
 			  $(CURDIR)/debian/fuse-utils/etc/fuse.conf
--- fuse-2.7.4.orig/debian/fuse-utils.initramfs-hook
+++ fuse-2.7.4/debian/fuse-utils.initramfs-hook
@@ -0,0 +1,15 @@
+#! /bin/sh -e
+
+case $1 in
+prereqs)
+	exit 0
+	;;
+esac
+
+. /usr/share/initramfs-tools/hook-functions
+
+copy_exec /sbin/mount.fuse /sbin
+
+force_load fuse
+
+exit 0

Attachment: signature.asc
Description: Digital signature

Reply via email to