This file contains 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
#!/bin/bash | |
############################################################################ | |
# This script simply formats a block device and mounts it to the data | |
# directory in a very safe manner by checking that the block device is | |
# completely empty | |
# | |
############################################################################ | |
set -eu | |
if [ $# -ne 2 ] |