]> code.ossystems Code Review - openembedded-core.git/commit
initrdscripts: make boot drive detection more generic
authorAwais Belal <awais_belal@mentor.com>
Thu, 21 May 2015 14:28:34 +0000 (19:28 +0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 May 2015 06:55:50 +0000 (07:55 +0100)
commit1964b697ddadc59e27087f9f1f6b24236f4addcc
tree1c92aaabae6deef42750659ed1e1d2e806bf72a9
parent3b635d34d44ee65f8cf93bc180f1ccc1095f2174
initrdscripts: make boot drive detection more generic

The init script that invokes install and install-efi scripts
passes the first parameter that identifies the boot drive but
in cases when this disk is labeled and kernel configurations
allow disk labeling under /run/media/ this would pass the disk
label.
The earlier implementation considered that the drive name will
be passed and in case the label is passed it fails and provides
the boot drive as an option for installation driver.
We now use a more generic approach to identify the boot drive
which can handle both drive name as well as label if passed.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/initrdscripts/files/init-install-efi.sh
meta/recipes-core/initrdscripts/files/init-install.sh