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
|
@ -60,6 +60,11 @@ Setup with a wide array of hardware compatibility, specifically using the =porta
|
||||||
DISK=$1
|
DISK=$1
|
||||||
|
|
||||||
sudo mkdir -p /mnt
|
sudo mkdir -p /mnt
|
||||||
|
|
||||||
|
if mountpoint -q -- "/mnt"; then
|
||||||
|
echo "ERROR: /mnt is a mounted filesystem, aborting"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Partitioning
|
** Partitioning
|
||||||
|
|
|
@ -4,6 +4,11 @@
|
||||||
DISK=$1
|
DISK=$1
|
||||||
|
|
||||||
sudo mkdir -p /mnt
|
sudo mkdir -p /mnt
|
||||||
|
|
||||||
|
if mountpoint -q -- "/mnt"; then
|
||||||
|
echo "ERROR: /mnt is a mounted filesystem, aborting"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
# boilerplate ends here
|
# boilerplate ends here
|
||||||
|
|
||||||
# [[[[file:/etc/nixos/hosts/Infini-STICK/readme.org::mounting][mounting]]][mounting]]
|
# [[[[file:/etc/nixos/hosts/Infini-STICK/readme.org::mounting][mounting]]][mounting]]
|
||||||
|
|
|
@ -4,6 +4,11 @@
|
||||||
DISK=$1
|
DISK=$1
|
||||||
|
|
||||||
sudo mkdir -p /mnt
|
sudo mkdir -p /mnt
|
||||||
|
|
||||||
|
if mountpoint -q -- "/mnt"; then
|
||||||
|
echo "ERROR: /mnt is a mounted filesystem, aborting"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
# boilerplate ends here
|
# boilerplate ends here
|
||||||
|
|
||||||
# [[[[file:/etc/nixos/hosts/Infini-STICK/readme.org::partitioning][partitioning]]][partitioning]]
|
# [[[[file:/etc/nixos/hosts/Infini-STICK/readme.org::partitioning][partitioning]]][partitioning]]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue