Comment 2 for bug 1862846

Revision history for this message
Ryan Harper (raharper) wrote :

Hrm, this is a strange install.

The storage config has some strange settings..., first nothing is modified at all, all disks and partitions are marked preserve = true, as well as all filesystems. There is this strange mount:

   {
    "device": "format-0",
    "id": "mount-0",
    "path": "",
    "type": "mount"
   },

Heres the rootfs

   {
    "device": "format-partition-sda3",
    "id": "mount-2",
    "path": "/",
    "type": "mount"
   },

And EFI

   {
    "device": "format-partition-sda1",
    "id": "mount-1",
    "path": "/boot/efi",
    "type": "mount"
   }

The failure appears here:

        + [ -f /boot/efi/EFI/ubuntu/grubx64.efi ]
        + [ -z ]
        + [ -f /boot/efi/EFI/ubuntu/shimx64.efi ]
        + break
        + echo /EFI/ubuntu/shimx64.efi
        + sed s|/|\\|g
        + loader=\EFI\ubuntu\shimx64.efi
        + efibootmgr --create --write-signature --label ubuntu --disk /dev/ --part 1 --loader \EFI\ubuntu\shimx64.efi
        efibootmgr: ** Warning ** : Boot0000 has same label ubuntu
        Could not prepare Boot variable: Success
        failed to install grub!

There's a but in the install-grub helper in how it determines the disk device;