Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Do not throw a warning if plymouth is not installed #5528
Conversation
|
I agree it'd be nice to avoid the warning. This is ugly as hell ;), but since we already use |
|
One nitpick: on Debian/Ubuntu plymouth is installed as |
keszybz
added
the
reviewed/needs-rework
label
Mar 16, 2017
|
Changes implemented & force pushed for clean history. |
|
Could someone have a look again and approve this patch? |
martinpitt
removed
the
reviewed/needs-rework
label
Mar 17, 2017
martinpitt
approved these changes
Mar 17, 2017
Agreed about the ugliness, but shrug. Thanks for updating!
martinpitt
merged commit 7e3ba38
into
systemd:master
Mar 17, 2017
danimo
deleted the
danimo:no_mandatory_plymouth
branch
Mar 17, 2017
|
For consistencies sake, can we please apply the same to rescue.service which has the same |
added a commit
to danimo/systemd
that referenced
this pull request
Mar 20, 2017
|
@mbiebl Good point, see above commit. While grep'ing for more instances, I came across mentions of "plymouth-quit-wait.service". Isn't that what we are looking for in the first place? |
|
/cc @fbuihuu |
|
Wouldn't it be better if it was the other way around: instead of making systemd referring to plymouth, we could make plymouth referring the emergency service. For example plymouth could install a drop-in in |
Yeah, that sounds much nicer. But the downside is that coordination between the two projects would be required. |
|
@keszybz don't we have that requirement already? What if plymouth one day changes its command line arguments? That said, plymouth is not only referenced in the unit files but also in the systemd sources itself. The plymouth calls in the unit files were just the most visible ones which confused a lot of users. |
|
Hm, after thinking about this some more, I think that we should keep the ugly shell work-around. Doing the same through dropins carried by plymouth would require a plymouth update each time we add or remove or rename units that interact with plymouth. This happens much more often than plymouth changing its option syntax. |
added a commit
that referenced
this pull request
Mar 21, 2017
mbiebl
referenced this pull request
Mar 21, 2017
Closed
downgrade priority of failures if =- is used #5621
|
Somehow I missed this: If plymouth is not installed
As a result, you get
Notice the status=1/FAILURE If we properly want to avoid an error, we should use
|
|
I thought about this a bit more. Since we were already spawning two shells, and one echo, why not just use a shell script proper like /lib/systemd/systemd-rescue-shell
This not only has the benefit that we only need to spawn a single shell, we can also use this for both rescue.service and emergency.service, which now simply have a
or
Much cleaner if you ask me. Should I prep a PR for that? |
|
Indeed @mbiebl, that sounds much better! |
|
@martinpitt I posted a PR at #5623 . Thoughts/review welcome |
danimo commentedMar 3, 2017
Ideally, plymouth should only be referenced via dependencies,
not ExecStartPre's. This at least avoids the confusing error message
on minimal installations that do not carry plymouth.