AWS Marketplace AMI Ubuntu prompts with grub-pc message when upgrading packages: How to fix it

Are you running xDM on the AWS Marketplace AMI that Semarchy maintains? (The AWS download option on this Download page.)

This AWS Marketplace AMI is running on Ubuntu. If you update the packages in Ubuntu by running sudo apt upgrade, you may encounter the grub-pc messages asking you to configure the GRUB boot loader. It later asks whether you want to update grub or continue using the version previously installed on the machine.

Configuring grub-pc ├────────────────────────────────────────────────────────────────────────────────┐ │ │ │ The GRUB boot loader was previously installed to a disk that is no longer present, or whose unique identifier has changed for some reason. It is important to make sure that the │ │ installed GRUB core image stays in sync with GRUB modules and grub.cfg. Please check again to make sure that GRUB is written to the appropriate boot devices. │ │ │ │ If you're unsure which drive is designated as boot drive by your BIOS, it is often a good idea to install GRUB to all of them. │ │ │ │ Note: it is possible to install GRUB to partition boot records as well, and some appropriate partitions are offered here. However, this forces GRUB to use the blocklist mechanism, │ │ which makes it less reliable, and therefore is not recommended.

If you don't know what to do to proceed, follow the instructions in this link to move forward.

For internal Semarchy reference, see https://semarchy.atlassian.net/browse/MDM-10361.