Cryptswap periodically fails to mount at boot due to missing a udev notification
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd |
New
|
Unknown
|
|||
systemd (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Bionic |
Confirmed
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
High
|
Dan Streetman | ||
Groovy |
Fix Released
|
High
|
Unassigned |
Bug Description
[impact]
systems using cryptsetup-based encrypted swap may hang during boot due to udevd missing the notification that swap has been setup on the newly created swap device.
[test case]
see original description, and reproduction is intermittent based on timing
[regression potential]
any regression would likely occur during, or after, boot when creating an encrypted swap device and/or while waiting to activate the new swap device. Regressions may cause failure to correctly enable swap and/or hung boot waiting for the swap device.
[scope]
this was (potentially) fixed upstream with PR 15836, which is not yet included in any upstream release, so this is needed in all releases, including groovy.
also note while the upstream bug is closed, and code review seems to indicate this *should* fix this specific issue, there are some comments in the upstream bug indicating it may not completely solve the problem, although there is no further debug of the new reports.
[original description]
On some systems, cryptsetup-based encrypted swap partitions cause systemd to get stuck at boot. This is a timing-sensitive Heisenbug, so the rate of occurrence varies from one system to another. Some hardware will not experience the issue at all, others will only occasionally experience the issue, and then there are the unlucky who are unable to boot at all, no matter how many times they restart.
The workaround is for the cryptsetup-
Changed in systemd: | |
status: | Unknown → New |
tags: | added: ddstreet |
tags: | added: rls-ff-incoming |
Changed in systemd (Ubuntu Focal): | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → ubuntu-20.04.1 |
tags: | removed: rls-ff-incoming |
tags: | added: id-5eb44cf735b12c4b9b721452 |
Changed in systemd (Ubuntu Focal): | |
assignee: | nobody → Dan Streetman (ddstreet) |
status: | Triaged → In Progress |
Changed in systemd (Ubuntu): | |
status: | Triaged → Fix Released |
description: | updated |
tags: | removed: bionic ddstreet disco eoan |
Changed in systemd (Ubuntu Groovy): | |
status: | Fix Released → In Progress |
status: | In Progress → New |
The attachment "The workaround for this issue" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]