Require newer version of cryptsetup for LUKS2 tests
We need at least cryptsetup 2.0.3 for LUKS2 support in the crypto
plugin so we should required the same version in the tests.
Vojtech Trefny
5 years ago
17 | 17 | |
18 | 18 | def have_luks2(): |
19 | 19 | try: |
20 | succ = BlockDev.utils_check_util_version("cryptsetup", "2.0.0", "--version", r"cryptsetup ([0-9+\.]+)") | |
20 | succ = BlockDev.utils_check_util_version("cryptsetup", "2.0.3", "--version", r"cryptsetup ([0-9+\.]+)") | |
21 | 21 | except GLib.GError: |
22 | 22 | return False |
23 | 23 | else: |