diff options
| -rwxr-xr-x | bin/fde_tests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/fde_tests.py b/bin/fde_tests.py index 3008735..fd9ea14 100755 --- a/bin/fde_tests.py +++ b/bin/fde_tests.py @@ -28,7 +28,10 @@ def main(): base_mount = '/' if on_desktop else '/writable' # discover the underlying mount point for the encrypted part - cmd = 'findmnt {} -n -o SOURCE'.format(base_mount) + if on_desktop: + cmd = 'findmnt {} -n -o SOURCE'.format(base_mount) + else: + cmd = 'findfs LABEL=writable' print('+ {}'.format(cmd)) try: source = sp.check_output(cmd, shell=True).decode( |
