[Bug 414997] Re: ec2-set-defaults should be 'run_once_per_ami'

Scott Moser smoser at ubuntu.com
Mon Sep 28 20:00:53 BST 2009


On Mon, 28 Sep 2009, Eric Hammond wrote:

> Scott: What do you mean by "not change anything else"?  If the user
> modifies sources.list would a rebundled AMI overwrite their changes or
> not?

I meant that we should leave ec2-init behavior as it is right now, with
'run-once-ever' for ec2-set-defaults.

> I'm also not clear which <ami_id> is referenced in the last step.  If it
> is the AMI being created, then the user does not know the id yet.

'<ami_id>' was referring to the current ami_id of the image being
rebundled.  I just wanted to acknowledge that if you remove the '.ever'
file, and then reboot the instance any local changes you've made are going
to be blown away in *this* instance.  Its probably not a big deal.  But,
to demonstrate, something like:

$ echo "LANG=en_CA.UTF-8" > /etc/default/locale
$ rm /var/lib/ec2/ec2-defaults.ever
$ do-the-rebundle
$ reboot
...
$ cat /etc/default/locale
LANG=en_US.UTF-8

After 'reboot' on *this* current instance, /etc/default/locale would get
rewritten because ec2-set-defaults would run, because there was no '.ever'
file stopping it from running.  I incorrectly thought that touching the
'.<ami_id>' file would prevent the run after reboot.

-- 
ec2-set-defaults should be 'run_once_per_ami'
https://bugs.launchpad.net/bugs/414997
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in ubuntu.



More information about the Ubuntu-server-bugs mailing list