Your message dated Thu, 17 Jan 2008 22:17:13 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#460463: fixed in sysvinit 2.86.ds1-50
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: initscripts
Version: 2.86.ds1-47
Severity: important
Tags: patch

*** Please type your report below this line ***
Additional white space or tab characters on an "auto lo" or "auto eth0" (etc.)
line in /etc/network/interfaces break ifup completly.

| acertux:~# ifup eth0
| if-up.d/mountnfs[eth0]: waiting for interface  before doing NFS mounts

The reason is a bug in mountnfs. This line tries to delete white space and tab
characters but fails with trailing since a newline is added.
   sed -e 's/[ \t]*auto[ \t]*//;s/[ \t]/\n/g' | while read i; do

To reproduce make sure that /etc/network/interfaces has one line "auto lo " (the
trailing white space is very important) and "auto eth0". "auto eth0" must be
below the "auto lo " line.

This is again from mountnfs
     grep "^[:space:]*auto" /etc/network/interfaces  | \
     -  sed -e 's/[ \t]*auto[ \t]*//;s/[ \t]/\n/g' | while read i; do

After the call to grep the output looks like (note again the white space
following lo )
| auto lo
| auto eth0
The sed call substitutes this to
| lo
|
| eth0
The additional newline doesent pass the grep test in the next line
    if [ `grep -c $i /etc/network/run/ifstate` -eq "0" ]; then

This patch fixes the problem:
--- /etc/network/if-up.d/mountnfs       2007-12-27 10:56:44.000000000 +0100
+++ mountnfs.new        2008-01-12 22:34:14.000000000 +0100
@@ -115,7 +115,7 @@

 exit_unless_last_interface() {
     grep "^[:space:]*auto" /etc/network/interfaces  | \
-       sed -e 's/[ \t]*auto[ \t]*//;s/[ \t]/\n/g' | while read i; do
+       sed -e 's/[ \t]*auto[ \t]*//;s/[ \t]//g' | while read i; do
        if [ `grep -c $i /etc/network/run/ifstate` -eq "0" ]; then
msg="if-up.d/mountnfs[$IFACE]: waiting for interface $i before doing NFS mounts"
            log_warning_msg "$msg"

Hope that helps,
Markus

As a side note: instead of the mkdir .../mountnfs_earlyexit (on the following
lines) one could use and exit 0 statement right away.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages initscripts depends on:
ii debianutils 2.28.2 Miscellaneous utilities specific t ii e2fsprogs 1.40.3-1 ext2 file system utilities and lib
ii  libc6                        2.7-5       GNU C Library: Shared libraries
ii lsb-base 3.1-24 Linux Standard Base 3.1 init scrip ii mount 2.13-8 Tools for mounting and manipulatin
ii  sysvinit-utils               2.86.ds1-47 System-V-like utilities

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

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: sysvinit
Source-Version: 2.86.ds1-50

We believe that the bug you reported is fixed in the latest version of
sysvinit, which is due to be installed in the Debian FTP archive:

initscripts_2.86.ds1-50_i386.deb
  to pool/main/s/sysvinit/initscripts_2.86.ds1-50_i386.deb
sysv-rc_2.86.ds1-50_all.deb
  to pool/main/s/sysvinit/sysv-rc_2.86.ds1-50_all.deb
sysvinit-utils_2.86.ds1-50_i386.deb
  to pool/main/s/sysvinit/sysvinit-utils_2.86.ds1-50_i386.deb
sysvinit_2.86.ds1-50.diff.gz
  to pool/main/s/sysvinit/sysvinit_2.86.ds1-50.diff.gz
sysvinit_2.86.ds1-50.dsc
  to pool/main/s/sysvinit/sysvinit_2.86.ds1-50.dsc
sysvinit_2.86.ds1-50_i386.deb
  to pool/main/s/sysvinit/sysvinit_2.86.ds1-50_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Petter Reinholdtsen <[EMAIL PROTECTED]> (supplier of updated sysvinit package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 17 Jan 2008 22:36:41 +0100
Source: sysvinit
Binary: sysv-rc sysvinit-utils sysvinit initscripts
Architecture: source i386 all
Version: 2.86.ds1-50
Distribution: unstable
Urgency: low
Maintainer: Debian sysvinit maintainers <[EMAIL PROTECTED]>
Changed-By: Petter Reinholdtsen <[EMAIL PROTECTED]>
Description: 
 initscripts - Scripts for initializing and shutting down the system
 sysv-rc    - System-V-like runlevel change mechanism
 sysvinit   - System-V-like init utilities
 sysvinit-utils - System-V-like utilities
Closes: 460463 461011
Changes: 
 sysvinit (2.86.ds1-50) unstable; urgency=low
 .
   * Rewrite conffile removal code in initscripts.preinst to use dpkg-
     query instead of reading /var/lib/dpkg/status directly.
   * Do not allow "make -C debian/startpar clean" to fail, it should
     work every time.
   * Handle both trailing space after interface names and multiple
     interfaces on one auto line in /etc/network/interfaces when
     checking if the last interface has been enabled for NFS mounting
     (Closes: #460463, 461011).
Files: 
 2089d68ab434a33075110a646cefb89b 1037 admin required sysvinit_2.86.ds1-50.dsc
 5f318571e4ce9b6400915ec74e796539 147836 admin required 
sysvinit_2.86.ds1-50.diff.gz
 6ee43574023c573c0825168e757a2f71 110020 admin required 
sysvinit_2.86.ds1-50_i386.deb
 eabbb1962b57d5835923f7cd53b175b1 68694 admin required 
sysvinit-utils_2.86.ds1-50_i386.deb
 bcf1aa70e9cd4d799ad019665eb174c0 65920 admin required 
initscripts_2.86.ds1-50_i386.deb
 3da64c186eea432fdfaa00abab9a122b 60572 admin required 
sysv-rc_2.86.ds1-50_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHj8sq20zMSyow1ykRAuqpAJ9HSbOQVirS3uVBCNUtCkFm700S8gCfe2Wc
7TGZ2VRvbv2XztwDG/TpBA0=
=gM9L
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to