Skip to content

Commit f3e9c79

Browse files
authored
Merge pull request #444 from markdumay/partition
Support user namespaces in partition check (1.2.1)
2 parents b6478e9 + d85c733 commit f3e9c79

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/1_host_configuration.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,12 @@ check_1_2_1() {
7373
starttestjson "$id_1_2_1" "$desc_1_2_1"
7474

7575
totalChecks=$((totalChecks + 1))
76+
docker_root_dir=$(docker info -f '{{ .DockerRootDir }}')
77+
if docker info | grep -q userns ; then
78+
docker_root_dir=$(readlink -f "$docker_root_dir/..")
79+
fi
7680

77-
if mountpoint -q -- "$(docker info -f '{{ .DockerRootDir }}')" >/dev/null 2>&1; then
81+
if mountpoint -q -- "$docker_root_dir" >/dev/null 2>&1; then
7882
pass "$check_1_2_1"
7983
resulttestjson "PASS"
8084
currentScore=$((currentScore + 1))

0 commit comments

Comments
 (0)