Skip to content

Commit

Permalink
Combine checks regarding idmapped_mount support
Browse files Browse the repository at this point in the history
Signed-off-by: Christos Roussidis <xristos.roussidis@gmail.com>
  • Loading branch information
roussidis authored and ctalledo committed Aug 9, 2022
1 parent eb7bbbc commit 5389057
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/scr/testSysbox
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ function idmapped_mount_supported() {
local kernel_rel=$(uname -r)
local rel_major=$(echo ${kernel_rel} | cut -d'.' -f1)
local rel_minor=$(echo ${kernel_rel} | cut -d'.' -f2)
[ ${rel_major} -gt 5 ] || ([ ${rel_major} -eq 5 ] && [ ${rel_minor} -ge 12 ])
[ $(docker info | grep "Backing Filesystem" | cut -d " " -f5) != "xfs" ] && return 0
[ $(docker info | grep "Backing Filesystem" | cut -d " " -f5) != "xfs" ] && \
([ ${rel_major} -gt 5 ] || ([ ${rel_major} -eq 5 ] && [ ${rel_minor} -ge 12 ]))
}

function shiftfs_supported() {
Expand Down
4 changes: 2 additions & 2 deletions tests/scr/testSysboxCI
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ function idmapped_mount_supported() {
local kernel_rel=$(uname -r)
local rel_major=$(echo ${kernel_rel} | cut -d'.' -f1)
local rel_minor=$(echo ${kernel_rel} | cut -d'.' -f2)
[ ${rel_major} -gt 5 ] || ( [ ${rel_major} -eq 5 ] && [ ${rel_minor} -ge 12 ] )
[ $(docker info | grep "Backing Filesystem" | cut -d " " -f5) != "xfs" ] && return 0
[ $(docker info | grep "Backing Filesystem" | cut -d " " -f5) != "xfs" ] && \
([ ${rel_major} -gt 5 ] || ( [ ${rel_major} -eq 5 ] && [ ${rel_minor} -ge 12 ] ))
}

function shiftfs_supported() {
Expand Down

0 comments on commit 5389057

Please sign in to comment.