mkefidisk: Always specify a root= kernel parameter
authorDarren Hart <dvhart@linux.intel.com>
Tue, 19 Mar 2013 22:15:02 +0000 (15:15 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Mar 2013 16:54:38 +0000 (16:54 +0000)
commit6d07b45d1b043c8ee697a533143c18e72030fd79
tree6c02fa17cd401417ff551ee779a8663e1b8fe6ed
parent41b54ef49ea5306fe672ac8b0b0e58989834c824
mkefidisk: Always specify a root= kernel parameter

The current script only replaces an existing root= kernel parameter
which can result images created without a root= paremeter, even though
the script expects a target rootfs parameter.

Rather than replacing the root= parameter, delete the root= parameter if
it exists, then append an appropriate root= parameter.

Fixes [YOCTO 4035] mkefidisk.sh forgets to add root= parameter

(From OE-Core rev: e5dbec7e7d3bb29676280823b0337ad429c75120)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/contrib/mkefidisk.sh