mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
restore md cleaning
This commit is contained in:
parent
2416d79c81
commit
686621970b
1 changed files with 3 additions and 3 deletions
|
@ -555,9 +555,9 @@ _stopmd()
|
|||
DIALOG --defaultno --yesno "Setup detected already running raid devices, do you want to disable them completely?" 0 0 && DISABLEMD="1"
|
||||
if [[ "${DISABLEMD}" = "1" ]]; then
|
||||
DIALOG --infobox "Disabling all software raid devices..." 0 0
|
||||
while read -r i; do
|
||||
mdadm --manage --stop "/dev/$(echo "${i}" | sed -e 's# :.*##g')" > ${LOG}
|
||||
done < /proc/mdstat
|
||||
for i in $(grep ^md /proc/mdstat | sed -e 's# :.*##g'); do
|
||||
mdadm --manage --stop "/dev/${i}" > ${LOG}
|
||||
done
|
||||
DIALOG --infobox "Cleaning superblocks of all software raid devices..." 0 0
|
||||
for i in $(${_LSBLK} NAME,FSTYPE | grep "linux_raid_member$" | cut -d' ' -f 1); do
|
||||
mdadm --zero-superblock "${i}" > ${LOG}
|
||||
|
|
Loading…
Reference in a new issue