fix(zfs): chmod 000 ZFS encryption keyfile per ZBM's docs (#1)

This commit is contained in:
hygienic-books 2023-03-04 18:09:34 +01:00
parent a5f32cfe76
commit 96ab417c72

View File

@ -147,7 +147,7 @@ function no_zpool_exists () {
function set_zpool_password () { function set_zpool_password () {
# May or may not have a newline at the end, ZFS doesn't care # May or may not have a newline at the end, ZFS doesn't care
printf -- '%s' 'password' > '/etc/zfs/'"${zpool_name}"'.key' printf -- '%s' 'password' > '/etc/zfs/'"${zpool_name}"'.key'
chmod '600' '/etc/zfs/'"${zpool_name}"'.key' chmod '000' '/etc/zfs/'"${zpool_name}"'.key'
} }
function import_pool () { function import_pool () {