Hello all,

> The behaviour of fuser is correct (it works on the filesystem level, 
> while bind mounts are pure namespace operations only). But the effect
> is that the 'fuser' call in umountnfs.sh line 98 just kills
> /etc/init.d/rc because it thinks it is using the bind-mounted
> location when in fact it does not. If I just comment out the whole
> 'if [ -x /bin/fuser ]' block and revert to using
> /etc/init.d/sendsigs, then everything works again.

I think it's probably worth adding in that this isn't just the case for
bind mounts - it also works if sysfs is mounted directly in more than
one place as well. For example, I have included the chroot section of my
fstab that produces very similar behaviour to that reported by Gabor in
<[EMAIL PROTECTED]>.

Rather that bind-mounting procfs and sysfs, the filesystems are simply
mounted again at the new location. I'm not sure if this is the correct
way to do it, but it has worked a treat in practise until just recently
when I too get problems with rc being killed off by fuser in
umountnfs.sh. The entry for /usr/local/share/chroot/etch-ia32/sys is the
one causing the problems.

I believe this to be the same problem as bug#391375, but thought it was
worth adding this message to point out that it can also be caused with a
similar but different configuration. If you believe this to be
unrelated, I'll be happy to split this off as a separate bug.

If I can give any further information, please do let me know and I'll
add it to this bug report as soon as possible.

All the best,
-Dave.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages initscripts depends on:
ii  debianutils                  2.17.3      Miscellaneous utilities
specific t
ii  e2fsprogs                    1.39-1.1    ext2 file system utilities
and lib
ii  libc6                        2.3.6.ds1-5 GNU C Library: Shared libraries
ii  lsb-base                     3.1-17      Linux Standard Base 3.1
init scrip
ii  mount                        2.12r-11    Tools for mounting and
manipulatin
ii  sysvinit-utils               2.86.ds1-33 System-V-like utilities

Versions of packages initscripts recommends:
ii  psmisc                        22.3-1     Utilities that use the proc
filesy

-- no debconf information

# Chroot stuff
/dev                    /usr/local/share/chroot/etch-ia32/dev   none    bind    
        0       0
proc                    /usr/local/share/chroot/etch-ia32/proc  proc    
defaults        0       0
sys                     /usr/local/share/chroot/etch-ia32/sys   sysfs   
defaults        0       0
/home                   /usr/local/share/chroot/etch-ia32/home  none    bind    
        0       0
/tmp                    /usr/local/share/chroot/etch-ia32/tmp   none    bind    
        0       0
-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages initscripts depends on:
ii  debianutils                  2.17.3      Miscellaneous utilities specific t
ii  e2fsprogs                    1.39-1.1    ext2 file system utilities and lib
ii  libc6                        2.3.6.ds1-5 GNU C Library: Shared libraries
ii  lsb-base                     3.1-17      Linux Standard Base 3.1 init scrip
ii  mount                        2.12r-11    Tools for mounting and manipulatin
ii  sysvinit-utils               2.86.ds1-33 System-V-like utilities

Versions of packages initscripts recommends:
ii  psmisc                        22.3-1     Utilities that use the proc filesy

-- no debconf information

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-sysvinit-devel

Reply via email to