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.
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: get-selections 2>/dev/null | grep grub-pc/install install_ devices_ failed boolean false install_ devices multiselect install_ devices_ disks_changed multiselect install_ devices_ empty boolean false
$ debconf-
grub-pc grub-pc/
grub-pc grub-pc/
grub-pc grub-pc/
grub-pc grub-pc/
What we *should* see on EC2 is: get-selections 2>/dev/null | grep grub-pc/install install_ devices_ failed boolean false install_ devices_ disks_changed multiselect install_ devices_ empty boolean true install_ devices string
$ debconf-
grub-pc grub-pc/
grub-pc grub-pc/
grub-pc grub-pc/
grub-pc grub-pc/
Without those variables set, the user will be prompted on grub update.