[Pkg-sysvinit-devel] Re: New initscript to do all bind and loop mounts?

Henrique de Moraes Holschuh hmh at debian.org
Wed Jan 25 13:02:16 UTC 2006


On Wed, 25 Jan 2006, Thomas Hood wrote:
> Well, there is no reason to break what already works.  What I am saying is that
> initscripts shouldn't try to support every imaginable arrangement of filesystems.

Agreed.  We can support arbritrary nesting, but only insofar as the ordering
of mounts in /etc/fstab allows that.

We can also support arbritary nesting (again, as long as /etc/fstab ordering
is the only thing needed) even when it involves network/remote filesystems:

  1. We do the usual /etc/fstab run first
  2. network gets activated
  3. We do the usual /etc/fstab netdev run, *but* we also process any
     umounted non-netdev filesystems.

Anything that the above wouldn't cover is best left unsupported IMHO.

> Miquel:
> > Because of people with /my/chroot mounted on NFS and a
> > local /my/chroot/proc and /my/chroot/var mounted on top of that.
> >
> > I agree that there should be a way to sort out the dependencies. In the
> > above situation I don't think automount would work (.. reliably.)
> > 
> > The network filesystems in /etc/fstab SHOULD all be marked as _netdev,
> > and mount/umount should be extended to understand that if /my/chroot
> > doesn't get mounted neither should it even try to mount /my/chroot/proc.

We can place that logic on our initscripts, as we don't use mount -a and
instead feed it what should be mounted mountpoint-per-mountpoint.

> > Ofcourse you could also mark /my/chroot/proc as _netdev but that's ugly.
> 
> Here we face the problem that the util-linux maintainers, both upstream and
> Debian, are not terribly keen to apply patches.  Perhaps we should propose
> a merger of the Debian sysvinit and util-linux teams.

I wouldn't be opposed to that, and LJ seems to be a bit short on time
lately, but someone has to ask him about it.

Miquel, Peter, Javier, what do you think about Thomas' "let's ask to
co-maintain util-linux" proposal?

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh



More information about the Pkg-sysvinit-devel mailing list