mount -a remounts tmpfs entries: bug or feature?

Denys Vlasenko vda.linux at googlemail.com
Tue Nov 25 02:04:17 UTC 2008


On Monday 24 November 2008 10:21, Ralf Friedl wrote:
> Vladimir Dronnikov wrote:
> >
> >     > run 'mount -a' over and over you get stacking mounts
> >
> > Personally, I'd like to be able to mount valid stuff the way I wish. 
> > So BB behaves right.
> For a manual mount, I agree.
> But I think 'mount -a' should mount everything from /etc/fstab, unless 
> it is already mounted.

Define "already mounted". It's not trivial.

> I would suggest the same when mount is called with only one of 
> filesystem and mountpoint and the other information is taken from 
> /etc/fstab.
> That way you can use something like 'mount /proc' as 'make sure /proc is 
> mounted'.

--
vda



More information about the busybox mailing list