Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] lsbinitscripts: avoid exit 1 in functions
@ 2015-07-03  6:32 Chen Qi
  2015-07-03  6:32 ` [PATCH 1/1] lsbinitscripts: avoid exit 1 in functions script Chen Qi
  0 siblings, 1 reply; 2+ messages in thread
From: Chen Qi @ 2015-07-03  6:32 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit dd09fab685de2eaf04aa5ab60f8220b89c1deae9:

  tune-core2.inc: set X86ARCH32 to i686 (instead of i586) (2015-07-02 23:08:27 +0100)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib ChenQi/lsbinitscripts
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/lsbinitscripts

Chen Qi (1):
  lsbinitscripts: avoid exit 1 in functions script

 ...void-exit-1-which-causes-init-scripts-to-.patch | 23 ++++++++++++++++++++++
 meta/recipes-extended/lsb/lsbinitscripts_9.63.bb   |  1 +
 2 files changed, 24 insertions(+)
 create mode 100644 meta/recipes-extended/lsb/lsbinitscripts/0001-functions-avoid-exit-1-which-causes-init-scripts-to-.patch

-- 
1.9.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] lsbinitscripts: avoid exit 1 in functions script
  2015-07-03  6:32 [PATCH 0/1] lsbinitscripts: avoid exit 1 in functions Chen Qi
@ 2015-07-03  6:32 ` Chen Qi
  0 siblings, 0 replies; 2+ messages in thread
From: Chen Qi @ 2015-07-03  6:32 UTC (permalink / raw)
  To: openembedded-core

If 'rc.debug' is not in kernel parameters, the functions script would
exit 1 which causes other init scripts that source it exit 1. This is
not what we want.

[YOCTO #7948]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 ...void-exit-1-which-causes-init-scripts-to-.patch | 23 ++++++++++++++++++++++
 meta/recipes-extended/lsb/lsbinitscripts_9.63.bb   |  1 +
 2 files changed, 24 insertions(+)
 create mode 100644 meta/recipes-extended/lsb/lsbinitscripts/0001-functions-avoid-exit-1-which-causes-init-scripts-to-.patch

diff --git a/meta/recipes-extended/lsb/lsbinitscripts/0001-functions-avoid-exit-1-which-causes-init-scripts-to-.patch b/meta/recipes-extended/lsb/lsbinitscripts/0001-functions-avoid-exit-1-which-causes-init-scripts-to-.patch
new file mode 100644
index 0000000..0809c9b
--- /dev/null
+++ b/meta/recipes-extended/lsb/lsbinitscripts/0001-functions-avoid-exit-1-which-causes-init-scripts-to-.patch
@@ -0,0 +1,23 @@
+Upstream-Status: Pending
+
+Subject: functions: avoid exit 1 which causes init scripts to fail
+
+Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
+---
+ rc.d/init.d/functions | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
+index 6850046..11223f7 100644
+--- a/rc.d/init.d/functions
++++ b/rc.d/init.d/functions
+@@ -597,5 +597,5 @@ if [ "$_use_systemctl" = "1" ]; then
+ 	fi
+ fi
+ 
+-strstr "$(cat /proc/cmdline)" "rc.debug" && set -x
++strstr "$(cat /proc/cmdline)" "rc.debug" && set -x || true
+ 
+-- 
+2.1.0
+
diff --git a/meta/recipes-extended/lsb/lsbinitscripts_9.63.bb b/meta/recipes-extended/lsb/lsbinitscripts_9.63.bb
index b955464..b937c15 100644
--- a/meta/recipes-extended/lsb/lsbinitscripts_9.63.bb
+++ b/meta/recipes-extended/lsb/lsbinitscripts_9.63.bb
@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=ebf4e8b49780ab187d51bd26aaa022c6"
 S="${WORKDIR}/initscripts-${PV}"
 SRC_URI = "http://pkgs.fedoraproject.org/repo/pkgs/initscripts/initscripts-9.63.tar.bz2/1ae0f15e54a904ac30185548d43daa1c/initscripts-9.63.tar.bz2 \
            file://functions.patch \
+           file://0001-functions-avoid-exit-1-which-causes-init-scripts-to-.patch \
           " 
 
 SRC_URI[md5sum] = "1ae0f15e54a904ac30185548d43daa1c"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-03  6:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-03  6:32 [PATCH 0/1] lsbinitscripts: avoid exit 1 in functions Chen Qi
2015-07-03  6:32 ` [PATCH 1/1] lsbinitscripts: avoid exit 1 in functions script Chen Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox