mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
test: skip testsuite-50.mountnfsd if kernel/polkit are too old
Need full support of pidfd to work, so skip the test if it's not available
This commit is contained in:
@@ -36,6 +36,7 @@ test_append_files() {
|
||||
fi
|
||||
inst_binary mksquashfs
|
||||
inst_binary unsquashfs
|
||||
inst_binary pkcheck
|
||||
install_verity_minimal
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,9 @@ if [[ ! -f /usr/lib/systemd/system/systemd-mountfsd.socket ]] || \
|
||||
[[ ! -f /usr/lib/systemd/system/systemd-nsresourced.socket ]] || \
|
||||
! command -v mksquashfs || \
|
||||
! grep -q bpf /sys/kernel/security/lsm ||
|
||||
! find /usr/lib* -name libbpf.so.1 2>/dev/null | grep .; then
|
||||
! find /usr/lib* -name libbpf.so.1 2>/dev/null | grep . || \
|
||||
systemd-analyze compare-versions "$(uname -r)" lt 6.5 || \
|
||||
systemd-analyze compare-versions "$(pkcheck --version | awk '{print $3}')" lt 124; then
|
||||
echo "Skipping mountnfsd/nsresourced tests"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user