[Bug 683890] [NEW] config-grub does not run

Scott Moser smoser at canonical.com
Wed Dec 1 21:47:06 GMT 2010


Public bug reported:

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.

** Affects: cloud-init (Ubuntu)
     Importance: Low
         Status: Fix Released

** Affects: cloud-init (Ubuntu Lucid)
     Importance: High
         Status: Triaged


** Tags: ec2-images regression-proposed uec-images

** Tags added: ec2-images regression-proposed uec-images

-- 
config-grub does not run
https://bugs.launchpad.net/bugs/683890
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in ubuntu.



More information about the Ubuntu-server-bugs mailing list