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
|
@ -21,6 +21,8 @@ Setup with a wide array of hardware compatibility, specifically using the =porta
|
|||
#+BEGIN_SRC bash :tangle setup.bash :shebang "#!/usr/bin/env bash" :noweb yes :comments noweb
|
||||
<<boilerplate>>
|
||||
|
||||
<<mmount_check>>
|
||||
|
||||
<<partitioning>>
|
||||
|
||||
<<filesystems>>
|
||||
|
@ -55,13 +57,13 @@ Setup with a wide array of hardware compatibility, specifically using the =porta
|
|||
#+BEGIN_SRC bash :tangle mount.bash :shebang "#!/usr/bin/env bash" :noweb yes :comments noweb
|
||||
<<boilerplate>>
|
||||
|
||||
<<mount_check>>
|
||||
|
||||
<<mounting>>
|
||||
#+END_SRC
|
||||
|
||||
#+NAME: install
|
||||
#+BEGIN_SRC bash :tangle install.bash :shebang "#!/usr/bin/env bash" :noweb yes :comments noweb
|
||||
<<mount>>
|
||||
|
||||
<<installing>>
|
||||
#+END_SRC
|
||||
|
||||
|
@ -72,7 +74,10 @@ Setup with a wide array of hardware compatibility, specifically using the =porta
|
|||
DISK=$1
|
||||
|
||||
sudo mkdir -p /mnt
|
||||
#+END_SRC
|
||||
|
||||
#+NAME: mount_check
|
||||
#+BEGIN_SRC bash
|
||||
if mountpoint -q -- "/mnt"; then
|
||||
echo "ERROR: /mnt is a mounted filesystem, aborting"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue