Skip to content

Instantly share code, notes, and snippets.

@driedtoast
Created April 8, 2010 21:12
Show Gist options
  • Save driedtoast/360545 to your computer and use it in GitHub Desktop.
Save driedtoast/360545 to your computer and use it in GitHub Desktop.
## kernel-xen
if [ ! -f "ec2-modules-$EC2_MODULE.tgz" ]; then
wget "http://ec2-downloads.s3.amazonaws.com/ec2-modules-$EC2_MODULE.tgz"
fi
tar zxvf "ec2-modules-$EC2_MODULE.tgz" -C "/mnt/$BASE_NAME"
/usr/sbin/chroot "/mnt/$BASE_NAME" cp -R /lib/modules/$EC2_MODULE /lib/modules/2.6.21.7-2.fc8xen
/usr/sbin/chroot "/mnt/$BASE_NAME" /sbin/depmod -a
wget "http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.noarch.rpm"
cp ec2-ami-tools.noarch.rpm "/mnt/$BASE_NAME/var/awsscripts/"
/usr/sbin/chroot "/mnt/$BASE_NAME" rpm -ivh --nosignature /var/awsscripts/ec2-ami-tools.noarch.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment