Jan Christoph Nordholz wrote:
Hi Michael,

(the following holds for both autofs v4 and v5)

usually the daemon creates these directories on startup and removes
them on exit. If you do not want that to happen, it suffices to
mark the directory as u-w:

] r...@apocatequil:/etc# grep ^/misc /etc/auto.master
] /misc   /etc/auto.misc
] r...@apocatequil:/etc# ls -ld /misc
] ls: cannot access /misc: No such file or directory
] r...@apocatequil:/etc# /etc/init.d/autofs start
] Starting automount: done.
] r...@apocatequil:/etc# ls -ld /misc
] drwxr-xr-x 2 root root 0 2009-07-25 16:08 /misc
] r...@apocatequil:/etc# /etc/init.d/autofs stop
] Stopping automount: done.
] r...@apocatequil:/etc# ls -ld /misc
] ls: cannot access /misc: No such file or directory
] r...@apocatequil:/etc# mkdir /misc; chmod 0555 /misc
] r...@apocatequil:/etc# ls -ld /misc
] dr-xr-xr-x 2 root root 4096 2009-07-25 16:08 /misc
] r...@apocatequil:/etc# /etc/init.d/autofs start
] Starting automount: done.
] r...@apocatequil:/etc# ls -ld /misc
] drwxr-xr-x 2 root root 0 2009-07-25 16:08 /misc
] r...@apocatequil:/etc# /etc/init.d/autofs stop
] Stopping automount: done.
] r...@apocatequil:/etc# ls -ld /misc
] dr-xr-xr-x 2 root root 4096 2009-07-25 16:08 /misc
] r...@apocatequil:/etc#

# ls -l /misc
/bin/ls: cannot access /misc: No such file or directory
# cat /etc/auto.master
/misc   /etc/auto.misc
# /etc/init.d/autofs start
Starting automounter: done.
# ls -l /misc
/bin/ls: cannot access /misc: No such file or directory
# tail -n2 /var/log/daemon.log
Jul 25 18:22:57 gandalf automount[4547]: failed to create iautofs directory 
/misc
Jul 25 18:22:57 gandalf automount[4547]: /misc: mount failed!
# mount | grep -w /
rootfs on / type rootfs (rw)
/dev/sda1 on / type ext3 (rw,noatime,commit=30,data=ordered)

# mkdir /misc
# /etc/init.d/autofs start
Starting automounter: done.
# ls -l /misc
total 0
# /etc/init.d/autofs stop
Stopping automounter: done.
# ls -l /misc
/bin/ls: cannot access /misc: No such file or directory
# mkdir -m 0755 /misc
# ls -ld /misc
drwxr-xr-x 2 root root 4096 Jul 25 18:24 /misc
# /etc/init.d/autofs start
Starting automounter: done.
# ls -l /misc
total 0
# /etc/init.d/autofs stop
Stopping automounter: done.
# ls -l /misc
/bin/ls: cannot access /misc: No such file or directory

So I presume the real problem here is that autofs cannot create
the /net mountpoint upon startup. This is not a very usual case,
because the only possibility I can think of is a NFS root with
root squashing enabled (but how can it remove that directory then
when it's going down?)... I'm not sure if this justifies "grave".
But I admit that it's not in the documentation (at least nowhere
I know of) and that the initscript startup exit code is not
helpful.

As I mentioned before, the ONLY way to stop it from
removing the top-level dir is to chattr+i it.

So it *is* grave bug, making the package unusable.

/mjt



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to