fix mdadm reset call

This commit is contained in:
Tobias Powalowski 2023-01-15 21:34:39 +01:00
parent 390d0b2e26
commit 58e8c07a63

View file

@ -311,8 +311,8 @@ _umountall()
_stopmd() _stopmd()
{ {
_DISABLEMD=""
if grep -q ^md /proc/mdstat 2>/dev/null; then if grep -q ^md /proc/mdstat 2>/dev/null; then
_DISABLEMD=""
_dialog --defaultno --yesno "Setup detected already running software raid devices...\n\nDo you want to delete ALL of them completely?\nWARNING: ALL DATA WILL BE LOST!" 0 0 && _DISABLEMD=1 _dialog --defaultno --yesno "Setup detected already running software raid devices...\n\nDo you want to delete ALL of them completely?\nWARNING: ALL DATA WILL BE LOST!" 0 0 && _DISABLEMD=1
if [[ -n "${_DISABLEMD}" ]]; then if [[ -n "${_DISABLEMD}" ]]; then
_umountall _umountall