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(r'(/dev/(cciss|ida)/c[0-9]d[0-9]|/dev/nvme[0-9]+n[0-9]+\
                            |/dev/[a-z]+).*', r'\1', target)


** Changed in: ubiquity (Ubuntu)
       Status: Fix Released => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1600308

Title:
  ubiquity targets invalid device name with nvme disks, fails to install
  grub

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1600308/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to