Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 704562 - sys-boot/plymouth - add support for disabling udev
Summary: sys-boot/plymouth - add support for disabling udev
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-01-02 13:14 UTC by Robert David
Modified: 2020-01-03 19:55 UTC (History)
0 users

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 Robert David 2020-01-02 13:14:36 UTC
Plymouth has compiled in support for udev. 
But in self made initramfs using the /usr/libexec/plymouth/plymouth-populate-initrd it has problems with uninitialized displays (systemd need to be in initramfs). Compiling plymouth without udev solve this issue and allow plymouth to be enabled even for very simple initramfs.

Example init script that will work without udev enabled:
https://raw.githubusercontent.com/robertek/root-scripts/master/init.tpl

Reproducible: Always




It can be really easily implemented just adding udev USE flag to the ebuild. Leaving the udev enabled by default, which will retain the current behaviour and allow building without udev.

Patch:

--- a/plymouth-0.9.4-r1.ebuild  2019-05-28 04:39:53.000000000 +0200
+++ b/plymouth-0.9.4-r1.ebuild  2020-01-02 00:50:28.886148144 +0100
@@ -21,7 +21,7 @@
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="debug gdm +gtk +libkms +pango +split-usr static-libs"
+IUSE="debug gdm +gtk +libkms +pango +split-usr static-libs +udev"
 
 CDEPEND="
        >=media-libs/libpng-1.2.16:=
@@ -75,6 +75,7 @@
                $(use_enable libkms drm)
                $(use_enable pango)
                $(use_enable gdm gdm-transition)
+               $(use_with udev)
        )
        econf "${myconf[@]}"
 }
Comment 1 Larry the Git Cow gentoo-dev 2020-01-03 19:55:51 UTC
The bug has been closed via the following commit(s):

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

commit 6ff8cce4cf0added0c3919b2f08b24d48bdbb00a
Author:     Matthew Thode <prometheanfire@gentoo.org>
AuthorDate: 2020-01-03 19:55:39 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2020-01-03 19:55:45 +0000

    sys-boot/plymouth: made udev dependency optional
    
    Fixes: https://bugs.gentoo.org/704562
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>

 sys-boot/plymouth/plymouth-0.9.4-r1.ebuild | 7 ++++---
 sys-boot/plymouth/plymouth-9999.ebuild     | 7 ++++---
 2 files changed, 8 insertions(+), 6 deletions(-)