Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685002 - sys-apps/systemd-242 fails boot with systemd in initramfs
Summary: sys-apps/systemd-242 fails boot with systemd in initramfs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-03 21:04 UTC by Johannes Hirte
Modified: 2019-05-09 13:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Hirte 2019-05-03 21:04:24 UTC
System boot fails with systemd-242 in initramfs. Last messages from systemd are:

Started Cleaning Up and Shutting Down Daemons.
Stopped udev Kernel Device Manager.

There is some more output from the kernel. Boot without initramfs works. Initramfs build with systemd-241 works too. The initramfs was build with dracut.
Comment 1 Mike Gilbert gentoo-dev 2019-05-03 21:10:41 UTC
What version of dracut are you using?
Comment 2 Johannes Hirte 2019-05-03 21:15:47 UTC
(In reply to Mike Gilbert from comment #1)
> What version of dracut are you using?

049-r1
Comment 3 Marien Zwart 2019-05-06 10:01:36 UTC
This may be this systemd bug: https://github.com/systemd/systemd/issues/12335

That's a systemd hang on shutdown, but I hit what I'm pretty sure is the same bug when dracut's initramfs systemd shuts down. I partially reverted the commit 4ff9bc2 mentioned on that bug and that worked around it.

I haven't tried the patch on that bug yet but I suspect it'll fix this problem.
Comment 4 Marien Zwart 2019-05-06 10:37:41 UTC
Dropping https://github.com/systemd/systemd/commit/f3d75364fbebf2ddb6393e54db5e10b6f6234e14.patch into /etc/portage/patches/sys-apps/systemd/ helped.
Comment 5 Peter Levine 2019-05-07 08:13:58 UTC
I've been dealing with this for the past few days on both my laptop and desktop. Both are using sys-apps/systemd-242 and sys-kernel/dracut-049-r1.  The issue would show up on my laptop when booted with both "quiet" and "splash" options were given in the kernel command line.  The problem showed up unconditionally with my desktop.

(In reply to Marien Zwart from comment #4)
> Dropping
> https://github.com/systemd/systemd/commit/
> f3d75364fbebf2ddb6393e54db5e10b6f6234e14.patch into
> /etc/portage/patches/sys-apps/systemd/ helped.

The patch fixed the issue for me on both systems
Comment 6 Luigi 'Comio' Mantellini 2019-05-09 12:21:03 UTC
(In reply to Peter Levine from comment #5)
> I've been dealing with this for the past few days on both my laptop and
> desktop. Both are using sys-apps/systemd-242 and sys-kernel/dracut-049-r1. 
> The issue would show up on my laptop when booted with both "quiet" and
> "splash" options were given in the kernel command line.  The problem showed
> up unconditionally with my desktop.
> 

I confirm the issue but it happens randomly. Enabling loggin hides the issue... like Heisen-bug effect.

Ciao

luigi
Comment 7 Larry the Git Cow gentoo-dev 2019-05-09 13:41:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb1d80e6a30d09f9f139877c5b754c8a8e918d7a

commit eb1d80e6a30d09f9f139877c5b754c8a8e918d7a
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2019-05-09 13:41:30 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2019-05-09 13:41:30 +0000

    sys-apps/systemd: backport patch to fix dracut boot
    
    Closes: https://bugs.gentoo.org/685002
    Package-Manager: Portage-2.3.66_p2, Repoman-2.3.12_p111
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 .../files/242-socket-util-flush-accept.patch       | 46 ++++++++++++++++++++++
 .../{systemd-242.ebuild => systemd-242-r1.ebuild}  |  1 +
 2 files changed, 47 insertions(+)