[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#848181: initramfs-tools-core: support mounting of more complex setups



On Sat, 2016-12-17 at 02:06 +0100, Tobias Schlemmer wrote:
> Am 15.12.2016 um 21:03 schrieb Ben Hutchings:
> > On Thu, 2016-12-15 at 20:15 +0100, Tobias Schlemmer wrote:
> > > Hi Ben,
> > > 
> > > Am 14.12.2016 um 23:51 schrieb Ben Hutchings:
> > > > Control: tag -1 wontfix
> > > > 
> > > > This code is broken in several ways,
> > > 
> > > For me it would be interesting to know about them. So I could improve my
> > > skills.
> > 
> > For one, it has dependencies on scripts in /root on the root
> > filesystem.
> 
> Actually, it does not. functions.ts and local.ts are patched copies
> /scripts/functions and /scripts/local, which I keep in /root for
> development purposes, only.

That's what I thought.

> Both patches have been provided.

But not in a state which would ever be suitable for applying to a
package.

> > [...]
> > > Otherwise I expect that there will be many more bug reports and
> > > complaints about initramfs in particular, Debian at medium level and the
> > > unpredictability of Linux configuration in the future.
> > 
> > There has been one other bug report so far (#781656).
> 
> You probably have not noticed #847119. It is not obvious, that the
> problem is caused by initramfs ignoring the mount order of fstab. So you
> are probably not informed about all bug reports regarding this problem.

I think I can rely on the systemd maintainers to reassign such bugs.

> >  The lack of
> > support for bind-mounting /usr (which I hadn't previously considered)
> > was then documented in initramfs-tools NEWS and the release notes for
> > jessie.
> 
> Sorry that does not help when I have to decide whether to install an
> package or not, especially when there are more than 1000 packages to
> upgrade. This information is available only after installing the
> upgrade. This means, when the system is already unbootable.

The release notes are available before a system upgrade.  If you have
apt-listchanges installed (it's installed by default) then NEWS will
be presented at a point when you can still abort the upgrade.

> >> I think the 2nd approach will be the easiest to implement: replace
> >> “mountfs /usr“ by “for fs in $EARLYMOUNTFS ; do mountfs "$fs"; done“ but
> >> it may still lead to confusion while upgrading Debian. I'm using Debian
> >> for more than 15 years, now, and, until recently, I had never a major
> >> Debian release that rendered my system unbootable. People don't expect that.
> > 
> > I'm sorry, but you can't claim you weren't warned about this.
>
> I can't remember of beeing warned when I installed the upgrade. In fact
> I was surprised that the init systems depend on having /usr being
> available before mounting the file systems.

I suspect that you missed this during the upgrade to jessie, but things
just happened to work (with systemd mounting /usr later) until now.

Ben.

-- 
Ben Hutchings
Quantity is no substitute for quality, but it's the only one we've got.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: