Checks that ensure the correct basic configuration of the host

This commit is contained in:
m8in
2025-11-27 20:58:47 +01:00
parent 0998b59fa7
commit 97e8a90b26
23 changed files with 284 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/bash
_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} 2> /dev/null)" == "12" ] \
&& exit 0
exit 1