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
On Nov 08, Sean Finney <email address hidden> wrote:
> Populating the new /dev filesystem temporarily mounted on LoQwmw/ ...
> /tmp/udev.
> 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