]> code.ossystems Code Review - openembedded-core.git/commit
init-install: Fixes the install script failing when not finding any mmcblk devices
authorAlejandro Hernandez <alejandro.hernandez@linux.intel.com>
Tue, 30 Aug 2016 05:08:37 +0000 (05:08 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 30 Aug 2016 06:57:46 +0000 (07:57 +0100)
commit384cf92ca9c3e66763c2c1ff2776c53d47ae25d6
treebf05342365c6fe84763f767a4ffec910cef22385
parent00027aee12f4bbc9a4ba607c91fcc1e0e8257fa2
init-install: Fixes the install script failing when not finding any mmcblk devices

The init-install.sh and init-install-efi.sh scripts perform a check
to see which devices are available on a booted system for installation.

Recently, the way we check for these devices changed on 993bfb,
greping for devices found on /sys/block/, this change caused the installer
to fail (at least) when not finding any mmcblk devices, due to the fact
that we call sh -e to execute this script, so any command (grep)
or pipeline exiting with a non-zero status causes the whole script to exit

This patch throws in a harmless true exit status at the end of the pipeline(s)
of the grep commands to avoid the installer script from exiting, fixing the issue.

[YOCTO #10189]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@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