mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 09:32:17 +02:00
init-install: Strip partition number from live_dev_name
This is needed in case the boot disk was created with mkdiskimage. In that case the parameter passed is a variant of /dev/sda4 which includes the partition number. Without this change this install script will offer to install onto the live media. (From OE-Core rev: 9f6d7d42eaad225698de730d5c76bfe9523f4a78) Signed-off-by: Drew Moseley <drew_moseley@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
7a81bd4c34
commit
112674d9fc
@@ -17,6 +17,7 @@ swap_ratio=5
|
||||
# Get a list of hard drives
|
||||
hdnamelist=""
|
||||
live_dev_name=${1%%/*}
|
||||
live_dev_name=${live_dev_name%%[0-9]*}
|
||||
|
||||
echo "Searching for hard drives ..."
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ swap_ratio=5
|
||||
# Get a list of hard drives
|
||||
hdnamelist=""
|
||||
live_dev_name=${1%%/*}
|
||||
live_dev_name=${live_dev_name%%[0-9]*}
|
||||
|
||||
echo "Searching for hard drives ..."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user