Long time booting : Failed to connect to lvmetad. Falling back to device scanning.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Fix Released
|
High
|
Steve Langasek | ||
Bionic |
Fix Released
|
Undecided
|
Brian Murray | ||
ubiquity (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[SRU Justification]
A regression in initramfs-tools causes it to autogenerate config in the initramfs saying to resume from any available swap devices, but references the swap device by UUID, which is not a canonical form for referring to LVM volumes (because of snapshotting, they are not unique). Ubiquity also generates a file in /etc at install time which references the swap partition in the same way. Since the lvm2 initramfs hooks also only activate precisely those LVs that are detected as needed at boot, this adds an inappropriate 30-second boot delay to any system with swap on LVM, which includes any desktop system that was configured with LVM (but not full-disk encryption) at install time.
[Test case]
1. Install using the "Use LVM" option in the desktop installer.
4. Reboot.
5. Verify that dmesg shows a 30-second delay before mounting the root filesystem.
6. Install initramfs-tools from bionic-proposed.
7. Reboot.
8. Verify that dmesg no longer shows a 30-second delay before mounting the root filesystem.
9. Install using the bionic daily image that contains the ubiquity from bionic-proposed.
10. Reboot.
11. Verify that /etc/initramfs-
[Regression potential]
This makes changes to shell scripts, and shell is a perilous language. An unnoticed bug could cause all initramfs generation, and thus all kernel installation, to fail for some users. A regression could also cause a user to lose hiberation support that they currently have.
[Original description]
After choosing "Erase disk and install ubuntu" + "Use LVM with the new Ubuntu installation", the
system is very slow to reboot.
It shows the message : "WARNING:Failed to connect to lvmetad. Falling back to device scanning.",
then waits 32 seconds, then continues as it should.
I think this is a ubiquity bug, since the d-i based installer is not affected.
- ubuntu-
- xubuntu-
- ubuntu-
Related branches
- Mathieu Trudel-Lapierre: Approve
-
Diff: 80 lines (+10/-44)2 files modifieddebian/changelog (+10/-0)
scripts/plugininstall.py (+0/-44)
- Ubuntu Installer Team: Pending requested
-
Diff: 89 lines (+12/-44) (has conflicts)2 files modifieddebian/changelog (+12/-0)
scripts/plugininstall.py (+0/-44)
tags: | added: rls-bb-incoming rls-cc-incoming |
affects: | ubiquity (Ubuntu) → initramfs-tools (Ubuntu) |
Changed in initramfs-tools (Ubuntu): | |
assignee: | nobody → Steve Langasek (vorlon) |
Changed in initramfs-tools (Ubuntu): | |
status: | Confirmed → In Progress |
importance: | Undecided → High |
description: | updated |
Changed in ubiquity (Ubuntu): | |
status: | Triaged → In Progress |
Changed in ubiquity (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in initramfs-tools (Ubuntu Bionic): | |
status: | Fix Committed → Confirmed |
Changed in initramfs-tools (Ubuntu Bionic): | |
milestone: | none → ubuntu-18.04.2 |
Changed in initramfs-tools (Ubuntu Bionic): | |
assignee: | nobody → Brian Murray (brian-murray) |
status: | Confirmed → In Progress |
tags: | removed: rls-bb-incoming rls-cc-incoming |
Status changed to 'Confirmed' because the bug affects multiple users.