systemd loops trying to start systemd-ask-password-plymouth
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Short story:
- after boot
- when a systemd service wants a password
- systemd-
- systemd-
- systemd-
Except:
- the conditions for the latter are (apparently) not met
End result:
- 40.000x "Condition check resulted in Forward Password Requests to Plymouth being skipped."
- 1.5 minutes of 100% cpu usage
----------------
AFFECTED VERSION
----------------
systemd 249.11-0ubuntu3.1 on Ubuntu/Jammy 22.04
----------------
HOW TO REPRODUCE
----------------
If I leave the `systemd-
This causes high CPU usage for 1.5 minutes.
It looks like /run/plymouth/pid exists (for the .path file) at first, when that is invoked, but then the resultant target (the .service file) checks again, and finds that it is gone.
Manually reproducing:
# ls /run/systemd/
ask.5hW6rb sck.79cfe1203518610
# mkdir /run/plymouth/pid
# systemctl start systemd-
# systemctl show --value --property=MainPID systemd-
24777
# rmdir /run/plymouth/pid ; kill 24777
Result: systemd going into a loop.
Stop the loop with:
# systemctl stop systemd-
--------
ANALYSIS
--------
It looks like this:
https:/
which is fixed by:
https:/
Alternative bug reports:
https:/
Systemd's own analysis of the situation:
# systemd-analyze critical-chain systemd-
...
systemd-
└─systemd-
└─plymouth-
└─systemd-
└
-----------
WORKAROUNDS
-----------
This works as long as you don't need the plymouth-
# systemctl disable systemd-
# systemctl mask systemd-
Could you get the relevant patches from upstream sorted in Jammy?
Thanks!
Walter Doekes
OSSO B.V.
Changed in systemd (Ubuntu): | |
status: | Incomplete → New |
Status changed to 'Confirmed' because the bug affects multiple users.