[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#234813: libc6 postinst overmounted my /tmp



At Wed, 25 Feb 2004 22:35:14 +0000,
Richard Kettlewell wrote:
> I upgraded libc6 and found that /etc/init.d/mountkernfs had remounted
> my /dev/shm, not noticing that it was already mounted.  The new mount
> hid the old filesystem.  /dev/shm is actually a link to /tmp on my
> system, which is why the detection didn't work.
>
> This broke all sorts of things, e.g. new X connections (as
> /tmp/.X11-unix was no longer visible.)  Fortunately umount did the
> right thing.
> 
> Perhaps mountkernfs could be changed to use some more robust way of
> detecting whether /dev/shm is already mounted - for instance, by
> looking at the first column of 'df /dev/shm'.

I will put the fix to check each directory to be mounted is actually
directory (not symlink).  We don't guarantee to work appropriately if
one directory to be mounted is not actual directory but symlink to a
directory.

Regards,
-- gotom





Reply to: