diff mbox

[meta-virtualization] fix inittab install when Xen not in DISTRO_FEATURES

Message ID 1384178493-15854-1-git-send-email-riku.voipio@linaro.org
State Accepted
Headers show

Commit Message

Riku Voipio Nov. 11, 2013, 2:01 p.m. UTC
With the latest patch, OE builds may file like:

https://ci.linaro.org/jenkins/job/openembedded-armv7ab-rootfs/gcc_version=4.8,label=oe_persistent_cloud,rootfs=minimal/127/consoleText

By having the "failing" grep within the if block, set -e
in shell code will not bite configurations where meta-virtualization
is included but xen is not in DISTRO_FEATURES.

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
---
 recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox

Patch

diff --git a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
index 2edbedf..1b89aec 100644
--- a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
+++ b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
@@ -1,6 +1,5 @@ 
 do_install_append() {
-	echo "${DISTRO_FEATURES}" | grep -q 'xen'
-	if [ $? -eq 0 ]; then
+	if echo "${DISTRO_FEATURES}" | grep -q 'xen'; then
 		echo "" >> ${D}${sysconfdir}/inittab
 		echo "X0:12345:respawn:/sbin/getty 115200 hvc0" >> ${D}${sysconfdir}/inittab
 	fi