Infini-SERVER: regenerate bash scripts

This commit is contained in:
Infinidoge 2023-08-31 13:27:44 -04:00
parent 273c11cbf6
commit 503428c744
5 changed files with 21 additions and 21 deletions

View file

@ -1,20 +1,20 @@
#!/usr/bin/env bash
# [[file:readme.org::mount][mount]]
# [[[[file:/etc/nixos/hosts/Infini-SERVER/readme.org::boilerplate][boilerplate]]][boilerplate]]
# [[file:readme.org::mount][boilerplate]]
DISK=$1
PART=$DISK$2
sudo mkdir -p /mnt
# boilerplate ends here
# [[[[file:/etc/nixos/hosts/Infini-SERVER/readme.org::mount_check][mount_check]]][mount_check]]
# [[file:readme.org::mount][mount_check]]
if mountpoint -q -- "/mnt"; then
echo "ERROR: /mnt is a mounted filesystem, aborting"
exit 1
fi
# mount_check ends here
# [[[[file:/etc/nixos/hosts/Infini-SERVER/readme.org::mounting][mounting]]][mounting]]
# [[file:readme.org::mount][mounting]]
echo "LOG: Mounting tmpfs"
sudo mount -t tmpfs root /mnt