stop ignoring initramfs in df ?
Rob Landley
rob at landley.net
Thu Feb 15 21:46:23 UTC 2007
On Wednesday 14 February 2007 3:51 pm, Denis Vlasenko wrote:
> On Wednesday 14 February 2007 14:00, Mike Frysinger wrote:
> > so i started to add a df build option, "ignore initramfs mount", that
would
> > control the hardcoded filter in df.c for the "rootfs" mount ... idea being
> > that in embedded/bootable systems, it is common to run right out of the
> > initramfs rather than switching over to a "normal" root
> >
> > however, i cant decide whether this warrants an actual build option ...
the
> > trade offs are that in the desktop case, you'd never want to see the
rootfs
> > output ... but does controlling literally 2 lines of code offset this ?
>
> I don't know what is a rationale for hiding that. It _is_ mounted there,
right?
> So why we are lying to user that it isn't there?
Because 99% of the time something's mounted over it, so it's not an accessible
mount point. The knee jerk reaction was to hide initramfs specifically, but
the general problem is actually mount points that aren't accessible because
something else is mounted over them.
The logic to getting this to work right was nontrivial. I was working on it
while I was still doing busybox work, and I got a finished implementation of
the way I think it should work into toybox months ago.
Rob
--
"Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away." - Antoine de Saint-Exupery
More information about the busybox
mailing list