generic: handle fs.verity.require_signatures being enabled
[xfstests-dev.git] / tests / generic / 576
index 58525295991611d3fbb6a134b4405f1991c6e9ac..8fa73489e1f36f5ca85f777afa26a04c2c968bf1 100755 (executable)
@@ -19,6 +19,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 _cleanup()
 {
        cd /
+       _restore_fsverity_signatures
        rm -f $tmp.*
 }
 
@@ -37,6 +38,7 @@ _supported_os Linux
 _require_scratch_verity
 _require_scratch_encryption
 _require_command "$KEYCTL_PROG" keyctl
+_disable_fsverity_signatures
 
 _scratch_mkfs_encrypted_verity &>> $seqres.full
 _scratch_mount