diff options
| -rw-r--r-- | meta/recipes-core/initrdscripts/files/init-install-efi.sh | 3 | ||||
| -rw-r--r-- | meta/recipes-core/initrdscripts/files/init-install.sh | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh index 329586d74d..8dd2749b5e 100644 --- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh +++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh | |||
| @@ -16,7 +16,8 @@ swap_ratio=5 | |||
| 16 | 16 | ||
| 17 | # Get a list of hard drives | 17 | # Get a list of hard drives |
| 18 | hdnamelist="" | 18 | hdnamelist="" |
| 19 | live_dev_name=${1%%/*} | 19 | live_dev_name=`cat /proc/mounts | grep ${1%/} | awk '{print $1}'` |
| 20 | live_dev_name=${live_dev_name#\/dev/} | ||
| 20 | live_dev_name=${live_dev_name%%[0-9]*} | 21 | live_dev_name=${live_dev_name%%[0-9]*} |
| 21 | 22 | ||
| 22 | echo "Searching for hard drives ..." | 23 | echo "Searching for hard drives ..." |
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 ..." |
