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

Bug #1724417 reported by Mathieu Trudel-Lapierre on 2017-10-18
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Release Notes for Ubuntu
Undecided
Unassigned
ubiquity (Ubuntu)
High
Unassigned

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)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)

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:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1724417

tags: added: iso-testing
Łukasz Zemczak (sil2100) wrote :

jibel pointed me out to this bug from a few days ago that seems similar:
https://bugs.launchpad.net/ubuntu/+source/grub-installer/+bug/1722594

description: updated
Changed in ubiquity (Ubuntu):
importance: Undecided → High
status: New → Confirmed
tags: added: id-59e7bcfce82483e3f1f4632b
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

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

Changed in ubuntu-release-notes:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers