Skip to content

Instantly share code, notes, and snippets.

@aussielunix
Last active September 21, 2021 00:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aussielunix/a29b6c071a3a6225ef717b665171ce60 to your computer and use it in GitHub Desktop.
Save aussielunix/a29b6c071a3a6225ef717b665171ce60 to your computer and use it in GitHub Desktop.
simple cloud-init for mounting an ephemeral nvme store in AWS. This is to be used as user-data.
#cloud-config
repo_update: true
repo_upgrade: all
package_upgrade: true
bootcmd:
- test -z "$(blkid /dev/nvme0n1)" && mkfs -t ext4 -L scratch /dev/nvme0n1
mounts:
- [ "/dev/nvme0n1", "/mnt", "ext4", "defaults,nofail", "0", "2" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment