diff --git a/install/autodetect b/install/autodetect index 6b8477f..61e2726 100644 --- a/install/autodetect +++ b/install/autodetect @@ -8,14 +8,14 @@ install () sed -e 's/ata_generic//g' -e 's/ide_generic//g')" - #Filesystem detection, only probe the device for / + # Filesystem detection, detect all mounted devices/partitions + # may add more modules than needed, but fewer than without autodetect. findfs () { - local rootdev - if [ -f /proc/self/mountinfo -a -x /bin/findmnt ]; then - rootdev=$(/bin/findmnt -n -u -o source /) - /sbin/blkid -u filesystem -o value -s TYPE -p "${rootdev}" 2>/dev/null + for dev in $(/bin/findmnt -n -u -o source); do + /sbin/blkid -u filesystem -o value -s TYPE -p "$dev" 2>/dev/null + done fi }