Skip to content

Instantly share code, notes, and snippets.

@viglesiasce
Created February 4, 2014 01:36
Show Gist options
  • Select an option

  • Save viglesiasce/8795939 to your computer and use it in GitHub Desktop.

Select an option

Save viglesiasce/8795939 to your computer and use it in GitHub Desktop.
#!/bin/bash
euca_home=/var/lib/eucalyptus
ephemeral=`curl http://169.254.169.254/latest/meta-data/block-device-mapping/ephemeral0`
mkdir -p $euca_home
mkfs.ext4 -F $ephemeral
mount $ephemeral $euca_home
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment