silence error

This commit is contained in:
Tobias Powalowski 2023-07-06 14:48:01 +02:00
parent ec1ce30c0c
commit 3440507251

View file

@ -237,7 +237,7 @@ _activate_luks()
if [[ -e /usr/bin/cryptsetup ]]; then
_dialog --infobox "Scanning for luks encrypted devices..." 0 0
if ${_LSBLK} FSTYPE | grep -q "crypto_LUKS"; then
for part in $(${_LSBLK} NAME,FSTYPE | grep " crypto_LUKS$" | cut -d' ' -f 1); do
for part in $(${_LSBLK} NAME,FSTYPE 2>"${_NO_LOG}" | grep " crypto_LUKS$" | cut -d' ' -f 1); do
# skip already encrypted devices, device mapper!
if ! ${_LSBLK} TYPE "${part}" | grep -q "crypt$"; then
_RUN_LUKS=""