This commit is contained in:
Marc Beninca 2025-07-08 03:47:21 +02:00
parent 34881bb015
commit 6332717fa3
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -6,6 +6,7 @@
# │ crypt │ constants │ # │ crypt │ constants │
# ╰───────┴───────────╯ # ╰───────┴───────────╯
# TODO variablize
RWX_CRYPT_ROOT="/data/home/user/crypt" RWX_CRYPT_ROOT="/data/home/user/crypt"
RWX_CRYPT_VAR="/var/lib/crypt" RWX_CRYPT_VAR="/var/lib/crypt"
@ -13,6 +14,7 @@ RWX_CRYPT_VAR="/var/lib/crypt"
# │ crypt │ functions │ # │ crypt │ functions │
# ╰───────┴───────────╯ # ╰───────┴───────────╯
#| cat
rwx_crypt_device() { rwx_crypt_device() {
local device size local device size
local index=0 local index=0
@ -35,6 +37,15 @@ rwx_crypt_device() {
fi fi
} }
#| id
#| mkdir
#| qemu-nbd
#| cryptsetup
#| mount
#| umount
#| rmdir
#| cat
#| rm
#/ cs #/ cs
rwx_crypt_setup() { rwx_crypt_setup() {
local action="${1}" local action="${1}"