mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix crypt blacklist
This commit is contained in:
parent
806f02e579
commit
25dfd829e8
1 changed files with 2 additions and 2 deletions
|
@ -624,7 +624,7 @@ _stopluks()
|
|||
|
||||
# detect already running luks devices
|
||||
LUKSDEVICE="$(${_LSBLK} NAME,TYPE | grep " crypt$" | cut -d' ' -f1)"
|
||||
! [[ "${LUKSDEVICE}" = "" ]] && DETECTED_LUKS=1
|
||||
[[ "${LUKSDEVICE}" == "" ]] || DETECTED_LUKS=1
|
||||
if [[ "${DETECTED_LUKS}" = "1" ]]; then
|
||||
DIALOG --defaultno --yesno "Setup detected running luks encrypted devices, do you want to remove them completely?" 0 0 && DISABLELUKS="1"
|
||||
fi
|
||||
|
@ -634,7 +634,7 @@ _stopluks()
|
|||
LUKS_REAL_DEVICE="$(${_LSBLK} NAME,FSTYPE -s "${LUKSDEVICE}" | grep " crypto_LUKS$" | cut -d' ' -f1)"
|
||||
cryptsetup remove "${i}" > ${LOG}
|
||||
# delete header from device
|
||||
wipefs -a "${LUKS_REAL_DEVICE}" >/dev/null 2>&1
|
||||
wipefs -a "${LUKS_REAL_DEVICE}" > ${LOG} 2>&1
|
||||
done
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue