mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
'added more checks on modules during hwdetect'
This commit is contained in:
parent
234488c0cc
commit
e51fe8cccc
1 changed files with 12 additions and 4 deletions
|
@ -1552,10 +1552,18 @@ auto_hwdetect()
|
||||||
[ "$(grep -qw ide-legacy /proc/cmdline)" ] && HWPARAMETER="$HWPARAMETER --ide-legacy"
|
[ "$(grep -qw ide-legacy /proc/cmdline)" ] && HWPARAMETER="$HWPARAMETER --ide-legacy"
|
||||||
! [ "$(grep '^KEYMAP="us"' $DESTDIR/etc/rc.conf)" ] && HWPARAMETER="$HWPARAMETER --keymap"
|
! [ "$(grep '^KEYMAP="us"' $DESTDIR/etc/rc.conf)" ] && HWPARAMETER="$HWPARAMETER --keymap"
|
||||||
[ "$(cat /proc/modules | grep usbhid)" ] && HWPARAMETER="$HWPARAMETER --usbinput"
|
[ "$(cat /proc/modules | grep usbhid)" ] && HWPARAMETER="$HWPARAMETER --usbinput"
|
||||||
DIALOG --defaultno --yesno "Do you need support for booting from usb devices?" 0 0 && HWPARAMETER="$HWPARAMETER --usb"
|
if [ "$(cat /proc/modules | grep usb_storage)" ]; then
|
||||||
DIALOG --defaultno --yesno "Do you need support for booting from firewire devices?" 0 0 && HWPARAMETER="$HWPARAMETER --fw"
|
DIALOG --defaultno --yesno "Setup detected usb storage driver...\nDo you need support for booting from usb devices?" 0 0 && HWPARAMETER="$HWPARAMETER --usb"
|
||||||
DIALOG --defaultno --yesno "Do you need support for booting from pcmcia devices?" 0 0 && HWPARAMETER="$HWPARAMETER --pcmcia"
|
fi
|
||||||
DIALOG --defaultno --yesno "Do you need support for booting from nfs shares?" 0 0 && HWPARAMETER="$HWPARAMETER --nfs"
|
if [ "$(cat /proc/modules | grep sbp2)" ]; then
|
||||||
|
DIALOG --defaultno --yesno "Setup detected firewire storage driver...\nDo you need support for booting from firewire devices?" 0 0 && HWPARAMETER="$HWPARAMETER --fw"
|
||||||
|
fi
|
||||||
|
if [ "$(cat /proc/modules | grep pcmcia)" ]; then
|
||||||
|
DIALOG --defaultno --yesno "Setup detected pcmcia hardware...\nDo you need support for booting from pcmcia devices?" 0 0 && HWPARAMETER="$HWPARAMETER --pcmcia"
|
||||||
|
fi
|
||||||
|
if [ "$(cat /proc/modules | grep nfs)" ]; then
|
||||||
|
DIALOG --defaultno --yesno "Setup detected nfs driver...\nDo you need support for booting from nfs shares?" 0 0 && HWPARAMETER="$HWPARAMETER --nfs"
|
||||||
|
fi
|
||||||
if [ "$(blkid -c /dev/null | grep TYPE=\"mdraid\")" ]; then
|
if [ "$(blkid -c /dev/null | grep TYPE=\"mdraid\")" ]; then
|
||||||
DIALOG --defaultno --yesno "Do you need support for booting from software raid arrays?" 0 0 && HWPARAMETER="$HWPARAMETER --raid"
|
DIALOG --defaultno --yesno "Do you need support for booting from software raid arrays?" 0 0 && HWPARAMETER="$HWPARAMETER --raid"
|
||||||
if [ -e $DESTDIR/lib/initcpio/hooks/raid-partitions ]; then
|
if [ -e $DESTDIR/lib/initcpio/hooks/raid-partitions ]; then
|
||||||
|
|
Loading…
Reference in a new issue