Package: initscripts Version: 2.86.ds1-1 Severity: normal Tags: patch I am using --bind parameter to relocate some paths. When i want that bind operation permenantly, i put thet to fstab. Unfortunately /etc/init.d/mountall.sh does not mound binds. So attached diff is needed.
FYI, this is a sample line i put in fstab /local/mirror/ /local/mirror/pub/mirror/ bind defaults,rw 0 2 ---8<--- --- /tmp/mountall.sh 2005-04-23 20:39:11.545027952 +0300 +++ /etc/init.d/mountall.sh 2005-04-23 20:41:21.171321760 +0300 @@ -13,7 +13,7 @@ # Mount local file systems in /etc/fstab. # [ "$VERBOSE" != no ] && echo "Mounting local filesystems..." -mount -av -t nonfs,nonfs4,nosmbfs,nocifs,noncp,noncpfs,nocoda 2>&1 | +mount --bind -av -t nonfs,nonfs4,nosmbfs,nocifs,noncp,noncpfs,nocoda 2>&1 | egrep -v '(already|nothing was) mounted' case `uname -s` in ---8<--- -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.8-1-386 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages initscripts depends on: ii coreutils 5.2.1-2 The GNU core utilities ii dpkg 1.10.27 Package maintenance system for Deb ii e2fsprogs 1.35-6 The EXT2 file system utilities and ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii mount 2.12-10 Tools for mounting and manipulatin ii util-linux 2.12-10 Miscellaneous system utilities -- no debconf information
--- /tmp/mountall.sh 2005-04-23 20:39:11.545027952 +0300 +++ /etc/init.d/mountall.sh 2005-04-23 20:41:21.171321760 +0300 @@ -13,7 +13,7 @@ # Mount local file systems in /etc/fstab. # [ "$VERBOSE" != no ] && echo "Mounting local filesystems..." -mount -av -t nonfs,nonfs4,nosmbfs,nocifs,noncp,noncpfs,nocoda 2>&1 | +mount --bind -av -t nonfs,nonfs4,nosmbfs,nocifs,noncp,noncpfs,nocoda 2>&1 | egrep -v '(already|nothing was) mounted' case `uname -s` in