[oe-commits] Jason Wessel : initscripts: Fix regression for requiring /bin/bash

git at git.openembedded.org git at git.openembedded.org
Mon Aug 10 19:41:19 UTC 2015


Module: openembedded-core.git
Branch: master
Commit: 4917e36a77bd6821b45db52caa43939d344d92f6
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=4917e36a77bd6821b45db52caa43939d344d92f6

Author: Jason Wessel <jason.wessel at windriver.com>
Date:   Thu Aug  6 14:35:53 2015 -0500

initscripts: Fix regression for requiring /bin/bash

It is not possible to create a rootfs with only busybox + initscipts.
This is a result of a regression from commit
a4b53872a8a9a2743299acbff015f7f2750a69d6 (initscripts: add
/sbin/sushell for systemd service debug-shell).

The /sbin/sushell should just use /bin/sh else you end up with a
problem when creating the end image with a failed smart transaction
shown below:

ERROR: Unable to install packages. Command '/proj/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/smart --quiet --data-dir=/proj/bitbake_build/tmp/work/qemuarma9-wrs-linux-gnueabi/wrlinux-image-glibc-small/1.0-r1/rootfs/var/lib/smart install -y dropbear at armv7at2_vfp hac at armv7at2_vfp run-postinsts at all kernel-modules at qemuarma9 packagegroup-core-boot at qemuarma9' returned 1:
error: Can't install initscripts-1.0-r155.0 at armv7at2_vfp: no package provides /bin/bash

Signed-off-by: Jason Wessel <jason.wessel at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-core/initscripts/initscripts-1.0/sushell | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/initscripts/initscripts-1.0/sushell b/meta/recipes-core/initscripts/initscripts-1.0/sushell
index 7d96941..c319d95 100644
--- a/meta/recipes-core/initscripts/initscripts-1.0/sushell
+++ b/meta/recipes-core/initscripts/initscripts-1.0/sushell
@@ -1,5 +1,5 @@
-#!/bin/bash
+#!/bin/sh
 
-[ -z "$SUSHELL" ] && SUSHELL=/bin/bash
+[ -z "$SUSHELL" ] && SUSHELL=/bin/sh
 
 exec $SUSHELL



More information about the Openembedded-commits mailing list