Comment 7 for bug 582667

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

Pete, I've added a build to my ppa. [1], and am attaching the patch here.
The build should finish sometime in the next day or so. I'd appreciate it if you'd test it and report back.

I've tested this build with:
## launch a ec2 lucid instance of ubuntu-lucid-10.04-i386-server-20100427.1
## in the us-east-1 region with some specific user data to test this.
$ cat /tmp/my-ud.txt
#cloud-config
debconf_selections: |
  debconf debconf/priority select low
  debconf debconf/frontend select readline
$ ec2-run-instances --user-data-file=/tmp/my-ud.txt --key mykey ami-2d4aa444

## now, in the instance
##
% sudo apt-add-repository ppa:smoser/ppa
% sudo apt-get update
% sudo apt-get debconf-utils
% sudo apt-get install cloud-init
% dpkg-query --show cloud-init
cloud-init 0.5.10-0ubuntu1.2~ppa0

% sudo debconf-get-selections | grep debconf/
debconf debconf/frontend select Dialog
debconf debconf/priority select high

## Remove the apt-update-upgrade "already ran" file to make this run again
## with the new code, and then run it again.
% sudo rm /var/lib/cloud/sem/apt-update-upgrade.i-*
% sudo cloud-init-cfg apt-update-upgrade
% sudo debconf-get-selections | grep debconf/
debconf debconf/frontend select readline
debconf debconf/priority select low

The above shows that the new code is functioning with the ppa build. Note, that 'frontend' and 'priority' values where changed by the re-running of 'cloud-init-cfg apt-update-upgrade'.

Martin, you can take a look at the patch attached to see if you think its sufficient.
--
[1] https://launchpad.net/~smoser/+archive/ppa/+packages