grub2 element broken for Ubuntu Xenial

Bug #1659578 reported by Lucas Alvares Gomes
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
diskimage-builder
New
Undecided
Lucas Alvares Gomes

Bug Description

Running:

$ disk-image-create -o ubuntu2.qcow2 ubuntu grub2 baremetal

Gives me the following error:

Creating config file /etc/default/grub with new version
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-59-generic
Found initrd image: /boot/initrd.img-4.4.0-59-generic
done
Setting up grub-efi-amd64-signed (1.66.7+2.02~beta2-36ubuntu3.7) ...
Processing triggers for shim-signed (1.19~16.04.1+0.8-0ubuntu2) ...
No DKMS packages installed: not changing Secure Boot validation state.
+ dpkg --configure grub-efi-amd64
dpkg: error processing package grub-efi-amd64 (--configure):
 package grub-efi-amd64 is already installed and configured
Errors were encountered while processing:
 grub-efi-amd64

Changed in diskimage-builder:
assignee: nobody → Lucas Alvares Gomes (lucasagomes)
Revision history for this message
Sukhdev Kapur (sukhdev-8) wrote :

I am stuck because of this bug as well. Can not build image -

disk-image-create -o ubuntu2.qcow2 ubuntu grub2 baremetal devuser

I see the following error and then everything is downhill from there -

Creating config file /etc/default/grub with new version
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
dpkg: error processing package grub-efi-amd64 (--configure):
 subprocess installed post-installation script returned error exit status 1

Revision history for this message
liusongpeng (liusongpeng) wrote :

Yes , I also meet such problem when use the grub2 options.

Revision history for this message
Gaëtan Trellu (goldyfruit) wrote :
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.