docs(zfs): Key file may have newline at the end, ZFS doesn't care (#1)

This commit is contained in:
hygienic-books 2023-02-21 00:10:03 +01:00
parent 6820fdfbb0
commit 0f099b1d45

View File

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