[Pkg-sysvinit-devel] initscripts with fuse filesystems

Pascal de Bruijn pascal at unilogicnetworks.net
Tue Jan 8 13:32:52 UTC 2008


Hi,

We are using Debian Etch on an initrd, on the initrd we are mounting a
curlftpfs at boot (our fstab):

"curlftpfs#username:password at hostname /mountpoint fuse
rw,connect_timeout=10 0 0"

fuse will be mounted by S35mountall.sh, however networking is not yet
available, thus it fails:

  S35mountall.sh
  S36mountall-bootclean.sh
  S39ifupdown
  S40networking
  S45mountnfs.sh
  S46mountnfs-bootclean.sh
 
The following modifications, classify fuse as a network filesystem, and
move it's mounting to mountnfs:


cp $BASE/etc/init.d/mountall.sh $BASE/etc/init.d/mountall.sh.orig
cat $BASE/etc/init.d/mountall.sh.orig | sed
's/nonfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs/nonfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs,fuse/' $

cp $BASE/etc/init.d/mountnfs.sh $BASE/etc/init.d/mountnfs.sh.orig
cat $BASE/etc/init.d/mountnfs.sh.orig | sed 's/nfs|nfs4|smbfs|cifs|coda|
ncp|ncpfs|ocfs2|gfs/nfs|nfs4|smbfs|cifs|coda|ncp|ncpfs|ocfs2|gfs|fuse/'
> $B$

cp $BASE/etc/network/if-up.d/mountnfs
$BASE/etc/network/if-up.d/mountnfs.orig
cat $BASE/etc/network/if-up.d/mountnfs.orig | sed 's/smbfs|cifs|coda|
ncp|ncpfs|ocfs2|gfs/smbfs|cifs|coda|ncp|ncpfs|ocfs2|gfs|fuse/' >
$BASE/etc/netw$

It seems be wise to move the netfs definition to a conffile
like /etc/default/netfs or something similar, which the above scripts
can source.

As mountnfs mounts not just nfs but also cifs, and with my modifications
also fuse, the script should probably be called mountnet or mountnetfs.

I hope you will consider this modification to be included in future
versions of Debian. 

I would appreciate some feedback, if time permits.

-- 
Regards,

Pascal de Bruijn <pascal at unilogicnetworks.net>
Junior Network Engineer - Unilogic Networks B.V.

Unilogic Networks B.V.
Bergerweg 120
6135 KD Sittard
T: 046-4571640 
F: 046-4571641
E: info at unilogicnetworks.net




More information about the Pkg-sysvinit-devel mailing list