[Pkg-sysvinit-devel] Bug#613807: /lib/init/bootclean.sh must remove /var/run/network/mountnfs

Roger Leigh rleigh at codelibre.net
Mon Jan 2 15:16:37 UTC 2012


On Mon, Jan 02, 2012 at 11:54:33AM -0200, Ivan Baldo wrote:
> El 31/12/11 07:03, Petter Reinholdtsen escribió:
> >[Roger Leigh]
> >>I'm somewhat unsure what the reason for the problem is?  What causes
> >>failure when the directory is present?
> >I suspect NFS mounting fail.  but the bug reporter need to provide more
> >information.  But perhaps this bug is related to the inverted logic in
> >the NFS mounting code that was fixed in recent uploads?
> >
>     Sorry for my bad report! I thought you would look at what the
> original reporter said, which is that if that directory exists at
> boot, then NFS refuses to mount anything, leading to an unusable
> system in some cases, and also a reboot doesn't fix it, so, someone
> must go and remove that directory for NFS mounts to work again.

The report as it stands contains no useful information about
/what/ is failing, or an example of the failure.  Programs creating
directories under /var/run should be idempotent in that they need
the directory to be present, and will create it if not already
present, but should not fail if already present.

Do NFS mounts in general work, or just NFS mounts driven from
/etc/network/if-up.d/mountnfs?  It's not particularly clear to
me what the purpose of this directory is--the error message
indicates that it's a "lock" of some sort, but quite what for
is not apparent.  A quick look made me think that we should just
remove the "else" block for the mkdir failure case.  But without
knowing what the actual purpose of catching the failure was, I'm
not sure that's necessarily the correct solution.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.





More information about the Pkg-sysvinit-devel mailing list