Merge lp:~dmj726/ubiquity/nvme-fix into lp:ubiquity
| Status: | Merged |
|---|---|
| Approved by: | Mathieu Trudel-Lapierre on 2016-07-25 |
| Approved revision: | 6454 |
| Merged at revision: | 6460 |
| Proposed branch: | lp:~dmj726/ubiquity/nvme-fix |
| Merge into: | lp:ubiquity |
| Diff against target: |
13 lines (+2/-2) 1 file modified
ubiquity/misc.py (+2/-2) |
| To merge this branch: | bzr merge lp:~dmj726/ubiquity/nvme-fix |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Mathieu Trudel-Lapierre | 2016-07-08 | Approve on 2016-07-25 | |
|
Review via email:
|
|||
Description of the Change
| Dimitri John Ledkov (xnox) wrote : | # |
| David Jordan (dmj726) wrote : | # |
On some models, we use legacy boot, yes. UEFI works fine with or without the patch in our testing.
It's necessary to use legacy boot on certain motherboards and on computers that may have RAID cards installed. We are able to image the systems fine with our internal tooling, but should our customers need to install Ubuntu themselves, it's important that the experience be as hassle-free and easy as possible.
| Mathieu Trudel-Lapierre (cyphermox) wrote : | # |
It's a good idea to properly handle NVMe devices anyway; I'm merging this and ajusting the regex along the way to *add* nvme rather than extend the [a-z]+ part.
NVMe devices may be formatted either as the character device (nvme0) in which case they probably ought not to be touched by ubiquity (and won't be caught by my proposed regex) since this is for the default device for grub;
Or they may be the namespaced device nodes (nvme*n*) which ought to be handled correctly as block devices, on top of which there would be a "p*" for the partitions.
Final regex would now be:
target = re.sub(
| David Jordan (dmj726) wrote : | # |
I just tested the new code, and your updated regex still breaks the installation in exactly the same way as before.
The portion of the regex that reads '/dev/[a-z]+' truncates the target to '/dev/nvme' before it gets to the bit you added. You should be able to use the following:
target = re.sub(


are you using legacy boot with nmve drive, instead of UEFI?