ubiquity targets invalid device name with nvme disks, fails to install grub
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubiquity (Ubuntu) |
Fix Released
|
Medium
|
Mathieu Trudel-Lapierre | ||
Trusty |
Fix Released
|
Medium
|
Mathieu Trudel-Lapierre | ||
Xenial |
Triaged
|
Medium
|
Unassigned |
Bug Description
[Impact]
Users with NVMe disks.
[Test case]
- Install system with NVMe disks; expect to pick the boot device.
Install should complete succesfully.
[Regression Potential]
This only adds matching for NVMe devices; any such devices will now be matched based on the partition numbers rather than risking to match a character device for NVMe formatting. This does not match regular block devices and partitions.
---
On Ubuntu 16.04, when installing Ubuntu to an nvme drive, Ubiquity fails to install grub. In ubiquity/misc.py the function default_grub targets /dev/nvme0 instead of /dev/nvme0n1, which is the real name of the device.
For single drive scenarios, this can be fixed by filtering out nvme devices from the regex line:
old:
target = re.sub(
fixed:
target = re.sub(
summary: |
- ubiquity targets wrong drive, fails to install grub with nvme disks + ubiquity targets invalid device name with nvme disks, fails to install + grub |
description: | updated |
Changed in ubiquity (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Mathieu Trudel-Lapierre (cyphermox) |
Changed in ubiquity (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in ubiquity (Ubuntu Trusty): | |
importance: | Undecided → Medium |
Changed in ubiquity (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in ubiquity (Ubuntu Trusty): | |
assignee: | nobody → Mathieu Trudel-Lapierre (cyphermox) |
Changed in ubiquity (Ubuntu Xenial): | |
assignee: | nobody → Mathieu Trudel-Lapierre (cyphermox) |
Changed in ubiquity (Ubuntu Trusty): | |
status: | New → In Progress |
Changed in ubiquity (Ubuntu Xenial): | |
status: | New → In Progress |
description: | updated |
description: | updated |
Changed in ubiquity (Ubuntu Xenial): | |
assignee: | Mathieu Trudel-Lapierre (cyphermox) → nobody |
status: | In Progress → Triaged |
This bug was fixed in the package ubiquity - 16.10.5
---------------
ubiquity (16.10.5) yakkety; urgency=medium
[ Kai-Heng Feng ]
* ubiquity-dm: Wait until u-s-d xsettings plugin is activated. (LP: #1560162)
[ David Jordan ]
* ubiquity/misc.py: set correct target device name for nvme drives.
(LP: #1600308)
[ Mathieu Trudel-Lapierre ]
* ubi-prepare.py: default to Secure Boot disabled if we install third-party
drivers.
-- Mathieu Trudel-Lapierre <email address hidden> Mon, 25 Jul 2016 15:37:04 -0400