** Summary changed:

- ubiquity targets wrong drive, fails to install grub with nvme disks
+ ubiquity targets invalid device name with nvme disks, fails to install grub

** Description changed:

  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(r'(/dev/(cciss|ida)/c[0-9]d[0-9]|/dev/[a-z]+).*',
-                             r'\1', target)
+                             r'\1', target)
  fixed:
  target = re.sub(r'(/dev/(cciss|ida)/c[0-9]d[0-9]|/dev/(?!nvme)[a-z]+).*',
-                             r'\1', target)
- 
- For multi-drive scenarios, Ubiquity behaves inconsistently between bios
- and uefi modes.  In UEFI mode, default_grub behaves like the single
- drive scenario and only sees the usb media (which it ignores) and the
- nvme drive.
- 
- In BIOS mode, there is a device listed at /dev/sda before the nvme
- drive.  Ubiquity then tries to put grub on /dev/sda regardless that
- we're installing to the nvme drive.  Grub then fails to install on
- /dev/sda.
- 
- This makes Ubuntu a pain to reinstall for our customers if they have an
- nvme drive.
+                             r'\1', target)

-- 
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