package:ifupdown
version: 0.7.54

Hello,

The /etc/init.d/networking script read /proc/mounts to identify which
file system is mounted.

For curlftpfs such file have the next entry:

curlftpfs#ftp://x.y.z.a/ on /mnt/usb type fuse
(rw,relatime,user_id=0,group_id=0,allow_other)

I'm attaching a patch to identify such mount point by DEV and not by
FSTYPE (I suppose it changed sometime ago). Without this change, my
system hang on shutdown / restart (curlftpfs will not umount because
there is not networking)

Thank you very much
--- ifupdown-0.7.54/debian/networking.init	2015-06-02 09:32:27.000000000 +0200
+++ /etc/init.d/networking	2015-07-19 22:53:28.018883218 +0200
@@ -76,8 +76,13 @@
 	    exit 0
 	    ;;
 	esac
+	case $DEV in
+	curlftfps*)
+	    log_warning_msg "not deconfiguring network interfaces: network file systems still mounted."
+	    exit 0
+	esac	
 	case $FSTYPE in
-	nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda|ocfs2|gfs|pvfs|pvfs2|fuse.httpfs|fuse.curlftpfs)
+	nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda|ocfs2|gfs|pvfs|pvfs2|fuse.httpfs)
 	    log_warning_msg "not deconfiguring network interfaces: network file systems still mounted."
 	    exit 0
 	    ;;

Reply via email to