[Pkg-sysvinit-devel] Bug#735930: initscripts: if-up.d/mountnfs fails to mount anything if /etc/fstab.d contains one or more .fstab files

Rolf W. Rasmussen rolfwr at gmail.com
Sat Jan 18 19:40:46 UTC 2014


Package: initscripts
Version: 2.88dsf-41+deb7u1
Severity: normal
Tags: patch

Dear Maintainer,

After creating a fstab file /etc/fstab.d/nell.fstab I see that
/etc/network/if-up.d/mountnfs no longer mounts NFS file systems entries from
neither the original /etc/fstab file, nor from the new /etc/fstab.d/nell.fstab.

Running the script with "sh -x" reveals that the following conditional fails:

    + [ -f /etc/fstab
    /etc/fstab.d/nell.fstab ]

The script is checking for the existance of a single file named
"/etc/fstab\n/etc/fstab.d/nell.fstab" instead of checking for the two
individual files "/etc/fstab" and "/etc/fstab.d/nell.fstab".

Removing the quotes in the

    for file in "$(eval ls $(fstab_files))"; do

line above appears to solve the problem. After removing the quotes and
taking down the network and bringing it up again, the NFS entry in
/etc/fstab is mounted as expected.



-- System Information:
Debian Release: 7.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.6-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initscripts depends on:
ii  coreutils       8.13-3.5
ii  debianutils     4.3.2
ii  libc6           2.13-38
ii  lsb-base        4.1+Debian8+deb7u1
ii  mount           2.20.1-5.3
ii  sysv-rc         2.88dsf-41+deb7u1
ii  sysvinit-utils  2.88dsf-41+deb7u1

Versions of packages initscripts recommends:
ii  e2fsprogs  1.42.5-1.1
ii  psmisc     22.19-1+deb7u1

initscripts suggests no packages.

-- Configuration Files:
/etc/default/rcS changed [not included]
/etc/network/if-up.d/mountnfs changed [not included]

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no-quoting-fstab-files-to-loop-over.patch
Type: text/x-diff
Size: 489 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20140118/c32377a2/attachment.patch>


More information about the Pkg-sysvinit-devel mailing list