Comment 1 for bug 25512

Revision history for this message
In , Marco d'Itri (md) wrote : Re: Bug#338202: installation error: rmdir: `/tmp/udev.LoQwmw': Directory not empty

On Nov 08, Sean Finney <email address hidden> wrote:

> Populating the new /dev filesystem temporarily mounted on
> /tmp/udev.LoQwmw/...
> rmdir: `/tmp/udev.LoQwmw': Directory not empty
It's not obvious what is happening since you did not report the content
of the directory.
I think it was a race between udevd and the init script due to a too
short timeout, if so it was fixed in a later release.
The code involved is simple, but the side effects are tricky:

  TEMPDEV=$(tempdir)
  mount -n -o size=10M,mode=0755 -t tmpfs tmpfs $TEMPDEV
  # lots of stuff happens here...
  mount -n --move $TEMPDEV /dev
  rmdir $TEMPDEV

(Let me know if you have a better theory...)

--
ciao,
Marco