diff options
author | Kristian Schuster <kristian.s@outlook.de> | 2019-09-29 18:44:15 +0300 |
---|---|---|
committer | Kristian Schuster <kristian.s@outlook.de> | 2019-09-29 18:44:15 +0300 |
commit | 51d3c568423e82d59ee5a3da755cb8ccdda2a095 (patch) | |
tree | 2d451bfed5c68955d2bde695c61155a56eb80a8e /include/tests_crypto | |
parent | 001cd85183d19e20ce012cd5c527d8d7d296b6be (diff) |
crypto-test: suppress errors when devs are not accessible for cryptsetup
Diffstat (limited to 'include/tests_crypto')
-rw-r--r-- | include/tests_crypto | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_crypto b/include/tests_crypto index b5f3c7be..77be22f2 100644 --- a/include/tests_crypto +++ b/include/tests_crypto @@ -140,7 +140,7 @@ # cryptsetup only works as root if [ -n "${LSBLKBINARY}" -a -n "${CRYPTSETUPBINARY}" -a ${FORENSICS_MODE} -eq 0 ]; then for BLOCK_DEV in $(${LSBLKBINARY} --noheadings --list --paths -o NAME); do - if ${CRYPTSETUPBINARY} isLuks ${BLOCK_DEV}; then + if ${CRYPTSETUPBINARY} isLuks ${BLOCK_DEV} 2> /dev/null; then LogText "Result: Found LUKS encrypted block device: ${BLOCK_DEV}" Report "encryption[]=luks,block_device,${BLOCK_DEV}" FOUND=$((FOUND +1)) |