Comment 7 for bug 514492

Revision history for this message
jon.marston@englishcentral.com (jon-marston) wrote :

my use case is to have a ebs backed lucid instance that is running torque I start and stop. It's critical that the /etc/hostname have the correct value when I start the instance again. I'm hitting the bug as described in Scott Moser's comment from 2010-04-08.

What I'm seeing is that when i restart the instance, attach an elastic ip address, and reboot, the old hostname value is still in /etc/hostname and is reported by /etc/hostname.

What is best way to automate getting the correct hostname? Manually copying and pasting values from elasticfox is errorprone and won't scale. I'm wary of using ec2-init because I only want the hostname value reset correctly.