Merge pull request #258 from jgsqware/1.1-check-mountpoint

use mountpoint to check if /var/lib/docker is on separate partition
This commit is contained in:
Thomas Sjögren 2017-09-21 09:24:15 +02:00 committed by GitHub
commit eeeb010a43

View file

@ -8,6 +8,8 @@ auditrules="/etc/audit/audit.rules"
check_1_1="1.1 - Ensure a separate partition for containers has been created"
if grep /var/lib/docker /etc/fstab >/dev/null 2>&1; then
pass "$check_1_1"
elif mountpoint -q -- /var/lib/docker >/dev/null 2>&1; then
pass "$check_1_1"
else
warn "$check_1_1"
fi