When zeroing debconf value, I was able to see that grub-installer
populates it again (grub-installer/bootdev with the wrong value
"/dev/mapper"). The code that db_sets it again is:

    elif [ "$(device_to_disk "$cdsrc")" = "$default_bootdev" ] || \
       ([ -n "$hdsrc" ] && [ "$(device_to_disk "$hdsrc")" = "$default_bootdev" 
]) || \
       ([ "$default_bootdev" = '(hd0)' ] && \
        (([ -n "$cdfs" ] && [ "$cdfs" != "iso9660" ]) || \
         [ "$hybrid" = true ])) || \
       ([ "$default_bootdev" != '(hd0)' ] && \
        ! partmap "$default_bootdev" >/dev/null && \
        ! grub_probe -t fs -d "$default_bootdev" >/dev/null); then
        db_fget grub-installer/bootdev seen
        if [ "$RET" != true ]; then
            bootfs=$(findfs /boot)
            [ "$bootfs" ] || bootfs="$(findfs /)"
            disk=$(device_to_disk "$bootfs")
            db_set grub-installer/bootdev "$disk" ---------- HERE
            state=2
        fi
    fi
    ;;

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1838525

Title:
  LVM setup fails to install grub on virtio storage

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1838525/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to