init-install: Strip partition number from live_dev_name
authorDrew Moseley <drew_moseley@mentor.com>
Thu, 31 Jul 2014 00:49:31 +0000 (20:49 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 2 Aug 2014 08:26:16 +0000 (09:26 +0100)
commit5611b2287998c2422f1560297b543f3046d8b2a5
tree9526ebd7d315322dcba15d9395f36b09988be35f
parentd0e07a4bab60b5348740c0b5de127bf0e3f08ea2
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>
meta/recipes-core/initrdscripts/files/init-install-efi.sh
meta/recipes-core/initrdscripts/files/init-install.sh