fix(zfs): Having keylocation readble for owner is fine (#1)

This commit is contained in:
hygienic-books 2023-02-20 21:27:27 +01:00
parent fbb19eb710
commit f4c4504e1d

View File

@ -109,7 +109,7 @@ function zpool_drive_id () {
function set_zpool_password () { function set_zpool_password () {
# No newline at the end # No newline at the end
printf -- '%s' 'password' > '/etc/zfs/'"${zpool_name}"'.key' printf -- '%s' 'password' > '/etc/zfs/'"${zpool_name}"'.key'
chmod '000' '/etc/zfs/'"${zpool_name}"'.key' chmod '600' '/etc/zfs/'"${zpool_name}"'.key'
} }
function import_pool () { function import_pool () {