grub-install /dev/dm-0 fails for "Erase entire disk" install type

Bug #1724417 reported by Mathieu Trudel-Lapierre
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Release Notes for Ubuntu
Fix Released
ubiquity (Ubuntu)

Bug Description

This should not be happening at all. Install fails with a grub-install error; failing to find /dev/dm-0. Interestingly, I picked "Erase entire disk", for a system (Dell Vostro V130) that was previously installed with Xubuntu. Given that "Erase entire disk" should just wipe all partitions and create new ones, none of which using LVM (because that was not picked at all, neither LVM not LVM with crypto); it should not be trying to use dm-0 at all.

There are other errors earlier on with ubiquity failing to properly recognize the type of filesystem.

Test Case
1. Install a system using LVM (not encryted) and proceed with the installation
2. Install a second time on the same system but this time select "Erase entire disk"

Expected result
Second installation is successful

Actual result
grub-installer fails because it tries to install grub on /dev/dm-0

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: ubiquity 17.10.10
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.7-0ubuntu3
Architecture: amd64
CasperVersion: 1.387
CurrentDesktop: ubuntu:GNOME
Date: Tue Oct 17 21:14:21 2017
LiveMediaBuild: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171017.1)
 PATH=(custom, no user)
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:

tags: added: iso-testing
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

jibel pointed me out to this bug from a few days ago that seems similar:

description: updated
Changed in ubiquity (Ubuntu):
importance: Undecided → High
status: New → Confirmed
tags: added: id-59e7bcfce82483e3f1f4632b
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

The order of the devices in the output of grub-mkdevicemap changed between xenial and artful
In Xenial hd0 was the first hard drive then the logical volumes
In Artful hd0 is the first logical volume the the hard drives

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Output from xenial
(hd0) /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
(hd1) /dev/disk/by-id/lvm-pv-uuid-Z1IRUC-cEkY-8SOd-rIvV-4PUR-pSn4-04NHcf

Output from artful
(hd0) /dev/disk/by-id/raid-ubuntu--vg-root
(hd1) /dev/disk/by-id/raid-ubuntu--vg-swap_1
(hd2) /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
(hd3) /dev/disk/by-id/lvm-pv-uuid-h8qkmQ-EVs2-bwUK-VAny-dlV5-eRCW-zeOTBD

Mathew Hodson (mhodson)
Changed in ubuntu-release-notes:
status: New → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 17.10 (artful) reached end-of-life on July 19, 2018.

See this document for currently supported Ubuntu releases:

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in and change the bug status to Confirmed.

Changed in ubiquity (Ubuntu):
status: Confirmed → Won't Fix
Changed in ubiquity (Ubuntu):
status: Won't Fix → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.