[Pkg-sysvinit-devel] Bug#697002: [PATCH initramfs-tools 0/5] Only mount /usr if the real init is systemd

Ben Hutchings ben at decadent.org.uk
Thu Oct 2 22:04:18 UTC 2014


On Thu, 2014-10-02 at 22:26 +0100, Ben Hutchings wrote:
> On Thu, 2014-10-02 at 18:39 +0100, Ben Hutchings wrote:
> > On Mon, 2014-09-29 at 01:44 +0100, Ben Hutchings wrote:
> > > Currently initscripts will not work correctly if /usr is mounted by
> > > initramfs-tools.  Firstly, fsck will fail and the boot process will
> > > stop.  If you press Ctrl-D to continue, the boot process will succeed
> > > but /usr will not be remounted read-write if necessary.
> > [...]
> > 
> > Also, we must not run fsck in the initramfs because the system clock may
> > not be correct yet; see #763777.
> >
> > Unfortunately, systemd does not fsck /usr if it's already mounted.
> > Which means this is now broken for all init systems!
> 
> It looks like we can sort out the system time just by adding hwclock and
> some config files into the initramfs.  hwclock already hooks into udev,
> and the kernel ensures that the adjustment of system time to a local
> time zone is done only once.  So please assume that the initramfs will
> continue to fsck /usr.

Currently this works fine with systemd, but util-linux will need a small
patch to avoid double-adjusting the clock when booting with
sysvinit/initscripts.

Ben.

-- 
Ben Hutchings
Everything should be made as simple as possible, but not simpler.
                                                           - Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20141002/81a228c5/attachment.sig>


More information about the Pkg-sysvinit-devel mailing list