script(hosts/Infini-STICK): check /mnt for mountpoint

This commit is contained in:
Infinidoge 2021-12-09 13:50:59 -05:00
parent 61fc46fed5
commit 33362f1c1f
3 changed files with 15 additions and 0 deletions

View file

@ -4,6 +4,11 @@
DISK=$1
sudo mkdir -p /mnt
if mountpoint -q -- "/mnt"; then
echo "ERROR: /mnt is a mounted filesystem, aborting"
exit 1
fi
# boilerplate ends here
# [[[[file:/etc/nixos/hosts/Infini-STICK/readme.org::mounting][mounting]]][mounting]]