diff --git a/script/check/host/all/system_zfs_atime_of_rootfs_zpool1.check.sh b/script/check/host/all/system_zfs_atime_of_rootfs_zpool1.check.sh index f38ae98..54c4fd4 100755 --- a/script/check/host/all/system_zfs_atime_of_rootfs_zpool1.check.sh +++ b/script/check/host/all/system_zfs_atime_of_rootfs_zpool1.check.sh @@ -8,6 +8,6 @@ _CURRENT_POOL='zpool1' #Set with: 'zfs set atime=off zpool1' zfs version &> /dev/null \ - && [ "$(zfs get atime -Ho value ${_CURRENT_POOL})" == "off" ] \ + && [ "$(zfs get atime -Ho value ${_CURRENT_POOL} 2> /dev/null)" == "off" ] \ && exit 0 exit 1 diff --git a/script/check/host/all/system_zfs_compression_of_rootfs_zpool1.check.sh b/script/check/host/all/system_zfs_compression_of_rootfs_zpool1.check.sh index 09890b4..6a368e4 100755 --- a/script/check/host/all/system_zfs_compression_of_rootfs_zpool1.check.sh +++ b/script/check/host/all/system_zfs_compression_of_rootfs_zpool1.check.sh @@ -7,6 +7,6 @@ _CURRENT_POOL='zpool1' #Set with: 'zfs set compression=lz4 zpool1' zfs version &> /dev/null \ - && [ "$(zfs get compression -Ho value ${_CURRENT_POOL})" == "lz4" ] \ + && [ "$(zfs get compression -Ho value ${_CURRENT_POOL} 2> /dev/null)" == "lz4" ] \ && exit 0 exit 1 diff --git a/script/check/host/all/system_zfs_mountpoint_of_rootfs_zpool1.check.sh b/script/check/host/all/system_zfs_mountpoint_of_rootfs_zpool1.check.sh index 3373cac..666a949 100755 --- a/script/check/host/all/system_zfs_mountpoint_of_rootfs_zpool1.check.sh +++ b/script/check/host/all/system_zfs_mountpoint_of_rootfs_zpool1.check.sh @@ -6,7 +6,7 @@ _CURRENT_ZFS='zpool1' #retrieve the property 'mountpoint' from 'zpool1', without header and compare the result with '/zpool1' #Set with: 'zfs set mountpount=default' -zfs version &> /dev/null \ - && [ "$(zfs get mountpoint -Ho value ${_CURRENT_ZFS})" == "/${_CURRENT_ZFS}" ] \ +zfs version &> /dev/null \ + && [ "$(zfs get mountpoint -Ho value ${_CURRENT_ZFS} 2> /dev/null)" == "/${_CURRENT_ZFS}" ] \ && exit 0 exit 1 diff --git a/script/check/host/all/system_zpool_alignment_of_pool.check.sh b/script/check/host/all/system_zpool_alignment_of_pool.check.sh index e7fcc7f..2bc7e67 100755 --- a/script/check/host/all/system_zpool_alignment_of_pool.check.sh +++ b/script/check/host/all/system_zpool_alignment_of_pool.check.sh @@ -4,7 +4,7 @@ _CURRENT_POOL='zpool1' #Check if the tool 'zpool' is available, then #retrieve the property 'ashift' from 'zpool1', without header and compare the result with '12' -zpool version &> /dev/null \ - && [ "$(zpool get ashift -Ho value ${_CURRENT_POOL})" == "12" ] \ +zpool version &> /dev/null \ + && [ "$(zpool get ashift -Ho value ${_CURRENT_POOL} 2> /dev/null)" == "12" ] \ && exit 0 exit 1