mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix md stopping
This commit is contained in:
parent
5a267097c5
commit
c86adb31c9
1 changed files with 1 additions and 1 deletions
|
@ -565,7 +565,7 @@ _stopmd()
|
|||
if [[ "${DISABLEMD}" = "1" ]]; then
|
||||
DIALOG --infobox "Disabling all software raid devices..." 0 0
|
||||
while read -r i; do
|
||||
mdadm --manage --stop "/dev/$(grep -q ^md "${i}" | sed -e 's# :.*##g')" > ${LOG}
|
||||
mdadm --manage --stop "/dev/$(grep ^md "${i}" | sed -e 's# :.*##g')" > ${LOG}
|
||||
done < /proc/mdstat
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue