# Functions
AppendToFstab appends a line to fstab with the given parameters.
CheckFilesystem checks for a filesystem on a given drive using blkid.
Command executes a given command + args and returns a CommandOut struct with an error if the command fails.
CreateFilesystem executes mkfs.<desired_filesystem> on the requested drive.
CreateRaidArray runs the appropriate mdadm command for the given list of EbsVol that should be raided together.
DoesDriveExist does a single stat call to check if a drive exists.
DoesDriveExistWithTimeout makes 10 attempts, 2 second sleep between each, to stat a drive to check for its existence.
GetActualBlockDeviceName returns the actual name of the block device seen within the instance (useful for nitros).
No description provided by the author
PersistMdadm dumps the current mdadm config to /etc/mdadm.conf.
# Structs
CommandOut is a struct containing the return code, stdout, and stderr of an executed command.