Comment 7 for bug 1997795

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Verification done on focal-proposed.
---

$ lxc launch --vm ubuntu:focal grub2-f
$ lxc shell grub2-f

Before: /dev/sda15 (esp) AND /dev/sda

 # dpkg -S /usr/lib/grub/grub-multi-install
 grub-common: /usr/lib/grub/grub-multi-install

 # apt-cache policy grub-common
 grub-common:
   Installed: 2.04-1ubuntu26.15
   Candidate: 2.04-1ubuntu26.15
   Version table:
  *** 2.04-1ubuntu26.15 500
  500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
  100 /var/lib/dpkg/status
      2.04-1ubuntu26.12 500
  500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
      2.04-1ubuntu26 500
  500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages

 # DEBIAN_FRONTEND=readline dpkg-reconfigure shim-signed
 Trying to migrate /boot/efi into esp config
 Configuring shim-signed
 -----------------------

 The grub-efi package is being upgraded. This menu allows you to select which EFI system partions you'd like grub-install to be automatically
 run for, if any.

 Running grub-install automatically is recommended in most situations, to prevent the installed GRUB core image from getting out of sync with
 GRUB modules or grub.cfg.

   1. /dev/sda (10737 MB; ) on 10737 MB QEMU_HARDDISK 2. /dev/sda15 (111 MB; /boot/efi) on 10737 MB QEMU_HARDDISK 3. none of the above

 (Enter the items you want to select, separated by spaces.)

 GRUB EFI system partitions: ^C

After: /dev/sda15 (esp) ONLY

 # add-apt-repository -y 'deb http://archive.ubuntu.com/ubuntu focal-proposed main'
 # apt install -y grub-common
 # apt-cache policy grub-common
 grub-common:
   Installed: 2.04-1ubuntu26.16
   Candidate: 2.04-1ubuntu26.16
   Version table:
  *** 2.04-1ubuntu26.16 500
  500 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 Packages
  100 /var/lib/dpkg/status
      2.04-1ubuntu26.15 500
  500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
      2.04-1ubuntu26.12 500
  500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
      2.04-1ubuntu26 500
  500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages

 # DEBIAN_FRONTEND=readline dpkg-reconfigure shim-signed
 Trying to migrate /boot/efi into esp config
 Configuring shim-signed
 -----------------------

 The grub-efi package is being upgraded. This menu allows you to select which EFI system partions you'd like grub-install to be automatically
 run for, if any.

 Running grub-install automatically is recommended in most situations, to prevent the installed GRUB core image from getting out of sync with
 GRUB modules or grub.cfg.

   1. /dev/sda15 (111 MB; /boot/efi) on 10737 MB QEMU_HARDDISK 2. none of the above

 (Enter the items you want to select, separated by spaces.)

 GRUB EFI system partitions: ^C