hosts/Infini-STICK: separate mount_check in scripts
This commit is contained in:
parent
8df4f8c2c7
commit
e188c373da
5 changed files with 15 additions and 37 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue