diff --git a/include/tests_crypto b/include/tests_crypto index cf6e0e48..b5f3c7be 100644 --- a/include/tests_crypto +++ b/include/tests_crypto @@ -139,7 +139,7 @@ # cryptsetup only works as root if [ -n "${LSBLKBINARY}" -a -n "${CRYPTSETUPBINARY}" -a ${FORENSICS_MODE} -eq 0 ]; then - for BLOCK_DEV in $(${LSBLKBINARY} --noheadings -o PATH); do + for BLOCK_DEV in $(${LSBLKBINARY} --noheadings --list --paths -o NAME); do if ${CRYPTSETUPBINARY} isLuks ${BLOCK_DEV}; then LogText "Result: Found LUKS encrypted block device: ${BLOCK_DEV}" Report "encryption[]=luks,block_device,${BLOCK_DEV}"