mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
'add correct hwdetect check for dmraid'
This commit is contained in:
parent
90792a19b1
commit
17e5709e72
1 changed files with 3 additions and 3 deletions
|
@ -2822,9 +2822,9 @@ auto_hwdetect()
|
|||
DIALOG --defaultno --yesno "Setup detected nfs driver...\nDo you need support for booting from nfs shares?" 0 0 && HWPARAMETER="$HWPARAMETER --nfs"
|
||||
fi
|
||||
if [ -e $DESTDIR/lib/initcpio/hooks/dmraid ]; then
|
||||
for i in $(dmraid -l | sed -e 's/ .*//g'); do
|
||||
ls /dev/mapper/$i > /dev/null 2>&1 && HWPARAMETER="$HWPARAMETER --dmraid"
|
||||
done
|
||||
if ! [ $(dmraid -r | grep ^no ) ]; then
|
||||
HWPARAMETER="$HWPARAMETER --dmraid"
|
||||
fi
|
||||
fi
|
||||
if [ -e $DESTDIR/lib/initcpio/hooks/mdadm ]; then
|
||||
[ "$(cat /proc/mdstat 2>/dev/null | grep ^md[0-9])" -o "$(cat /proc/mdstat 2>/dev/null | grep ^md_d[0-9])" ] && HWPARAMETER="$HWPARAMETER --mdadm"
|
||||
|
|
Loading…
Reference in a new issue