1-get-initial-setup-working
main
@ -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'
The note is not visible to the blocked user.