fix(zfs): keylocation file must not have newline (#1)

This commit is contained in:
hygienic-books 2023-02-20 21:26:59 +01:00
parent cddcce4ff3
commit fbb19eb710

View File

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