script(hosts/Infini-STICK): check /mnt for mountpoint
This commit is contained in:
parent
61fc46fed5
commit
33362f1c1f
3 changed files with 15 additions and 0 deletions
|
@ -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::partitioning][partitioning]]][partitioning]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue