2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-30 22:05:27 +00:00

Fix swap regression test on btrfs

Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
(cherry picked from commit 90c7af69c5)
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
Ryan Lee
2024-12-13 12:08:35 -08:00
committed by John Johansen
parent 9bf91bbe40
commit 14933dc768

View File

@@ -31,7 +31,8 @@ swap_file=$tmpdir/swapfile
# check if we can run the test in tmpdir
fstype=$(stat -f --format '%T' "${tmpdir}")
if [ "${fstype}" = "tmpfs" ] || [ "${fstype}" = "zfs" ] ; then
if [ "${fstype}" = "tmpfs" ] || [ "${fstype}" = "zfs" ] \
|| [ "${fstype}" = "btrfs" ]; then
# create a mountpoint not tmpfs or zfs
mount_file=$tmpdir/mountfile
mount_point=$tmpdir/mountpoint