diff --git a/README.md b/README.md index 67376e5..b51f544 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,6 @@ your itch, you can of course [write your own plugin](https://github.com/andsens/ * `ec2-run-user-data`: If the userdata starts with `#!` it will be executed * `generate-ssh-hostkeys`: Generates hostkeys for sshd on first boot * `expand-volume`: Expands the root partition to the volume size - * `change-root-uuid`: Regenerates the UUID of the root volume on first boot *\*The bootup time was measured with [this script](https://gist.github.com/3813743)* diff --git a/init.d/change-root-uuid b/init.d/change-root-uuid deleted file mode 100644 index d3e4fd9..0000000 --- a/init.d/change-root-uuid +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -### BEGIN INIT INFO -# Provides: change-root-uuid -# Required-Start: -# Required-Stop: -# Should-Start: -# Should-Stop: -# Default-Start: 2 3 4 5 -# Default-Stop: -# Description: Changes the UUID of the root volume -### END INIT INFO - -prog=$(basename $0) -logger="logger -t $prog" - -device_path="/dev/xvda1" - -filesystem=`blkid | grep $device_path | sed 's#\(.*\):.*TYPE="\(.*\)".*#\2#'` - -case $filesystem in - ext2) tune2fs -U random $device_path ;; - ext3) tune2fs -U random $device_path ;; - ext4) tune2fs -U random $device_path ;; - *) $logger "The filesystem $filesystem was not recognized. Unable to change its UUID." ;; -esac - -# Disable this script, it may only run once -insserv -r $0 diff --git a/tasks/ec2/50-ec2-scripts b/tasks/ec2/50-ec2-scripts index 1e6fa06..881bc13 100644 --- a/tasks/ec2/50-ec2-scripts +++ b/tasks/ec2/50-ec2-scripts @@ -3,11 +3,3 @@ init_scripts+=("$scriptdir/init.d/ec2-get-credentials") init_scripts+=("$scriptdir/init.d/ec2-run-user-data") init_scripts+=("$scriptdir/init.d/expand-volume") - -case $filesystem in - # xfs cannot change the UUID on mounted volumes - xfs) ;; - ext2) init_scripts+=("$scriptdir/init.d/change-root-uuid") ;; - ext3) init_scripts+=("$scriptdir/init.d/change-root-uuid") ;; - ext4) init_scripts+=("$scriptdir/init.d/change-root-uuid") ;; -esac