qubes-installer-qubes-os/anaconda/dracut/anaconda-modprobe.sh
Marek Marczykowski-Górecki f73b3741f0 Update anaconda to 20.25.16
Apply result of "git diff anaconda-18.37.11-1..anaconda-20.25.16-1" and
resolve conflicts.
2014-04-08 05:50:31 +02:00

36 lines
880 B
Bash
Executable File

#!/bin/bash
# load modules needed by anaconda
# load anaconda-lib for the subsequent scripts in this hook
. /lib/anaconda-lib.sh
ARCH=$(uname -m)
KERNEL=$(uname -r)
MODULE_LIST="cramfs squashfs iscsi_tcp "
SCSI_MODULES=/lib/modules/$KERNEL/kernel/drivers/scsi/device_handler/
for m in $SCSI_MODULES/*.ko; do
# Shell spew to work around not having basename
# Trim the paths off the prefix, then the . suffix
a="${m##*/}"
MODULE_LIST+=" ${a%.*}"
done
if [ "$ARCH" != "s390" -a "$ARCH" != "s390x" ]; then
MODULE_LIST+=" floppy edd iscsi_ibft "
fi
if [ "$ARCH" = "ppc" ]; then
MODULE_LIST+=" spufs "
fi
MODULE_LIST+=" raid0 raid1 raid5 raid6 raid456 raid10 linear dm-mod dm-zero \
dm-mirror dm-snapshot dm-multipath dm-round-robin dm-crypt cbc \
sha256 lrw xts "
for m in $MODULE_LIST; do
modprobe $m &>/dev/null
done