diff options
Diffstat (limited to 'meta/recipes-core/initrdscripts/files/init-install.sh')
-rw-r--r-- | meta/recipes-core/initrdscripts/files/init-install.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh index 5f2599e724..0542e26fd2 100644 --- a/meta/recipes-core/initrdscripts/files/init-install.sh +++ b/meta/recipes-core/initrdscripts/files/init-install.sh | |||
@@ -28,7 +28,13 @@ esac | |||
28 | 28 | ||
29 | echo "Searching for hard drives ..." | 29 | echo "Searching for hard drives ..." |
30 | 30 | ||
31 | for device in `ls /sys/block/`; do | 31 | # Some eMMC devices have special sub devices such as mmcblk0boot0 etc |
32 | # we're currently only interested in the root device so pick them wisely | ||
33 | devices=`ls /sys/block/ | grep -v mmcblk` | ||
34 | mmc_devices=`ls /sys/block/ | grep "mmcblk[0-9]\{1,\}$"` | ||
35 | devices="$devices $mmc_devices" | ||
36 | |||
37 | for device in $devices; do | ||
32 | case $device in | 38 | case $device in |
33 | loop*) | 39 | loop*) |
34 | # skip loop device | 40 | # skip loop device |