1 |
commit: 8c76eb9e512d90c1d9170bb7318a3c47a67497bd |
2 |
Author: Rick Farina <sidhayn <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Feb 3 04:57:47 2012 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 3 14:13:37 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=8c76eb9e |
7 |
|
8 |
Add sdcard device support |
9 |
|
10 |
built in sd card readers are called /dev/mmcblk* which was not |
11 |
supported. This patch fixes that issue. |
12 |
|
13 |
Signed-of-By: Rick Farina <sidhayn <AT> gmail.com> |
14 |
|
15 |
--- |
16 |
defaults/initrd.scripts | 4 +++- |
17 |
1 files changed, 3 insertions(+), 1 deletions(-) |
18 |
|
19 |
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts |
20 |
index 89629e9..4f71a88 100755 |
21 |
--- a/defaults/initrd.scripts |
22 |
+++ b/defaults/initrd.scripts |
23 |
@@ -88,7 +88,7 @@ findmediamount() { |
24 |
# don't skip device mapper devices. Even the craziest scenario |
25 |
# deserves a fair chance. |
26 |
# |
27 |
- for part in `ls /sys/block/${bsn}/${bsn}[0-9]* 2>/dev/null` |
28 |
+ for part in `ls /sys/block/${bsn}/${bsn}*[0-9]* 2>/dev/null` |
29 |
do |
30 |
skip=1 |
31 |
break; |
32 |
@@ -143,6 +143,8 @@ devicelist(){ |
33 |
DEVICES="$DEVICES /dev/ubd* /dev/ubd/*" |
34 |
# iSeries devices |
35 |
DEVICES="$DEVICES /dev/iseries/vcd*" |
36 |
+ # builtin mmc/sd card reader devices |
37 |
+ DEVICES="$DEVICES /dev/mmcblk* /dev/mmcblk*/*" |
38 |
echo ${DEVICES} |
39 |
} |