From: Rick Farina Date: Fri, 3 Feb 2012 04:57:47 +0000 (-0500) Subject: Add sdcard device support X-Git-Tag: v3.4.25~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8c76eb9e512d90c1d9170bb7318a3c47a67497bd;p=genkernel.git Add sdcard device support built in sd card readers are called /dev/mmcblk* which was not supported. This patch fixes that issue. Signed-of-By: Rick Farina --- diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 89629e9..4f71a88 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -88,7 +88,7 @@ findmediamount() { # don't skip device mapper devices. Even the craziest scenario # deserves a fair chance. # - for part in `ls /sys/block/${bsn}/${bsn}[0-9]* 2>/dev/null` + for part in `ls /sys/block/${bsn}/${bsn}*[0-9]* 2>/dev/null` do skip=1 break; @@ -143,6 +143,8 @@ devicelist(){ DEVICES="$DEVICES /dev/ubd* /dev/ubd/*" # iSeries devices DEVICES="$DEVICES /dev/iseries/vcd*" + # builtin mmc/sd card reader devices + DEVICES="$DEVICES /dev/mmcblk* /dev/mmcblk*/*" echo ${DEVICES} }