diff --git a/setup.sh b/setup.sh index ce8a107..cf195c4 100644 --- a/setup.sh +++ b/setup.sh @@ -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' }