Comment 8 for bug 1336855

Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote : Re: non-interactive grub updates for 12.04 break on AWS

Here is a simple work around for the time being:

    [ -b /dev/xvda ] && {
          echo "grub-pc grub-pc/install_devices string /dev/xvda" \
             debconf-set-selections
          echo "grub-pc grub-pc/install_devices_empty boolean false" \
             debconf-set-selections
    }

(This will check if /dev/xvda is a block device and then tell dpkg to use the right device for installing grub)