Add a script to decrypt and mount disks on the home server.

This commit is contained in:
Tom Alexander
2023-11-18 14:55:19 -05:00
parent 0732a82171
commit 4b62c9b4de
9 changed files with 141 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
#
# Decrypt and mount the disks after a fresh reboot.
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
zfs load-key -r zmass/encrypted
zfs mount -a
service bemount start