andsens / build-debian-cloud

This project has been superseeded by andsens/bootstrap-vz and is no longer maintained - Script to create Debian Squeeze & Wheezy Amazon Machine Images (AMIs) and Google Compute Engine images
Other
117 stars 43 forks source link

Change UUID of root volume on first boot #40

Closed andsens closed 11 years ago

andsens commented 11 years ago

When debugging an instance, mounting the volume on another instance is the best way to go. This is a problem when the instance used for debugging and the instance to debug use the same AMI. The system will complain that the UUID of the root volume and the one of the buggy instance is the same. This is an unnecessary problem people have to fix by googling how to override that check.

By changing the UUID on first boot, this problem can be avoided.

andsens commented 11 years ago

This can not be done on XFS since xfs_admin requires the volume to be unmounted. We can do it on ext* though.