crypto-test: suppress errors when devs are not accessible for cryptsetup

This commit is contained in:
Kristian Schuster 2019-09-29 17:44:15 +02:00
parent 001cd85183
commit 51d3c56842
No known key found for this signature in database
GPG Key ID: 41D9CF63A7E6A4EB
1 changed files with 1 additions and 1 deletions

View File

@ -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))