hosts/Infini-STICK: separate mount_check in scripts

This commit is contained in:
Infinidoge 2021-12-10 09:57:53 -05:00
parent 8df4f8c2c7
commit e188c373da
5 changed files with 15 additions and 37 deletions

View file

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