diff options
Diffstat (limited to 'meta/recipes-core/initrdscripts/files/init-install.sh')
-rw-r--r-- | meta/recipes-core/initrdscripts/files/init-install.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh index fb537ee310..cb261630d0 100644 --- a/meta/recipes-core/initrdscripts/files/init-install.sh +++ b/meta/recipes-core/initrdscripts/files/init-install.sh | |||
@@ -15,7 +15,8 @@ swap_ratio=5 | |||
15 | 15 | ||
16 | # Get a list of hard drives | 16 | # Get a list of hard drives |
17 | hdnamelist="" | 17 | hdnamelist="" |
18 | live_dev_name=${1%%/*} | 18 | live_dev_name=`cat /proc/mounts | grep ${1%/} | awk '{print $1}'` |
19 | live_dev_name=${live_dev_name#\/dev/} | ||
19 | live_dev_name=${live_dev_name%%[0-9]*} | 20 | live_dev_name=${live_dev_name%%[0-9]*} |
20 | 21 | ||
21 | echo "Searching for hard drives ..." | 22 | echo "Searching for hard drives ..." |