Last active
September 21, 2021 00:07
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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