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
diff -r 50e72c97ce1c debian/src/initscripts/etc/network/if-up.d/mountnfs
--- a/debian/src/initscripts/etc/network/if-up.d/mountnfs	Sat Jan 18 20:25:13 2014 +0100
+++ b/debian/src/initscripts/etc/network/if-up.d/mountnfs	Sat Jan 18 20:26:43 2014 +0100
@@ -26,7 +26,7 @@
 	start_nfs=no
 	NETFS=""
 	NETDEV=""
-	for file in "$(eval ls $(fstab_files))"; do
+	for file in $(eval ls $(fstab_files)); do
 		if [ -f "$file" ]; then
 			while read DEV MTPT FSTYPE OPTS REST; do
 				case "$DEV" in

Reply via email to