Comment 0 for bug 683890

Revision history for this message
Scott Moser (smoser) wrote :

Binary package hint: cloud-init

In testing bug 671103, I realised that the 'config-grub' code that was added is not actually invoked on boot. As a result, the changes will not seed grub2 correctly.

What should happen on first boot is that 'h_config_grub' in 'CloudConfig.py' should run and 'grub-pc/install_devices' and 'grub-pc/install_devices_empty' should get seeded.

Unfortunately, the fix added doesn't get that code invoked, and as a result, these values are not seeded.

What we see is:
$ debconf-get-selections 2>/dev/null | grep grub-pc/install
grub-pc grub-pc/install_devices_failed boolean false
grub-pc grub-pc/install_devices multiselect
grub-pc grub-pc/install_devices_disks_changed multiselect
grub-pc grub-pc/install_devices_empty boolean false

What we *should* see on EC2 is:
$ debconf-get-selections 2>/dev/null | grep grub-pc/install
grub-pc grub-pc/install_devices_failed boolean false
grub-pc grub-pc/install_devices_disks_changed multiselect
grub-pc grub-pc/install_devices_empty boolean true
grub-pc grub-pc/install_devices string

Without those variables set, the user will be prompted on grub update.