Re: [Angstrom-devel] Koen Kooi : update-rc.d 0.7: don't let update-rc. d start initscripts when systemd is present

2011-10-19 Thread Koen Kooi

Op 19 okt. 2011, om 09:54 heeft Steffen Sledz het volgende geschreven:

> On 18.10.2011 14:24, Angstrom Git Repos wrote:
>> Module: meta-angstrom
>> Branch: master
>> Commit: 36a550b314ebb0c30d1c0e565ded197a8682c025
>> 
>> Author: Koen Kooi 
>> Date:   Tue Oct 18 13:47:58 2011 +0200
>> 
>> update-rc.d 0.7: don't let update-rc.d start initscripts when systemd is 
>> present
>> 
>> This should cleanup the error messages shown at first boot a lot
> 
> It is possible to install systemd package into an existing installation. 
> Right?
> 
> If yes you need to disable starting of all relevant initscripts within the 
> systemd postinst too.

Systemd itself already takes care of that since it's /sbin/init after 
installation :)
___
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel


Re: [Angstrom-devel] Koen Kooi : update-rc.d 0.7: don't let update-rc. d start initscripts when systemd is present

2011-10-19 Thread Steffen Sledz
On 18.10.2011 14:24, Angstrom Git Repos wrote:
> Module: meta-angstrom
> Branch: master
> Commit: 36a550b314ebb0c30d1c0e565ded197a8682c025
> 
> Author: Koen Kooi 
> Date:   Tue Oct 18 13:47:58 2011 +0200
> 
> update-rc.d 0.7: don't let update-rc.d start initscripts when systemd is 
> present
> 
> This should cleanup the error messages shown at first boot a lot

It is possible to install systemd package into an existing installation. Right?

If yes you need to disable starting of all relevant initscripts within the 
systemd postinst too.

Steffen

-- 
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:sl...@dresearch-fe.de
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058

___
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel


[Angstrom-devel] Koen Kooi : update-rc.d 0.7: don't let update-rc. d start initscripts when systemd is present

2011-10-18 Thread Angstrom Git Repos
Module: meta-angstrom
Branch: master
Commit: 36a550b314ebb0c30d1c0e565ded197a8682c025

Author: Koen Kooi 
Date:   Tue Oct 18 13:47:58 2011 +0200

update-rc.d 0.7: don't let update-rc.d start initscripts when systemd is present

This should cleanup the error messages shown at first boot a lot

Signed-off-by: Koen Kooi 

---

 ...c.d-make-s-a-noop-when-systemd-is-present.patch |   28 
 recipes-core/update-rc.d/update-rc.d_0.7.bbappend  |6 
 2 files changed, 34 insertions(+), 0 deletions(-)

diff --git 
a/recipes-core/update-rc.d/update-rc.d/0001-update-rc.d-make-s-a-noop-when-systemd-is-present.patch
 
b/recipes-core/update-rc.d/update-rc.d/0001-update-rc.d-make-s-a-noop-when-systemd-is-present.patch
new file mode 100644
index 000..3e0a873
--- /dev/null
+++ 
b/recipes-core/update-rc.d/update-rc.d/0001-update-rc.d-make-s-a-noop-when-systemd-is-present.patch
@@ -0,0 +1,28 @@
+From e7aa29008b55962fbfcf374391fa8bb5f8737c11 Mon Sep 17 00:00:00 2001
+From: Koen Kooi 
+Date: Tue, 18 Oct 2011 13:44:56 +0200
+Subject: [PATCH] update-rc.d: make -s a noop when systemd is present
+
+Signed-off-by: Koen Kooi 
+---
+ update-rc.d |4 +++-
+ 1 files changed, 3 insertions(+), 1 deletions(-)
+
+diff --git a/update-rc.d b/update-rc.d
+index 5e32902..d646abc 100644
+--- a/update-rc.d
 b/update-rc.d
+@@ -115,7 +115,9 @@ while [ $# -gt 0 ]; do
+   shift
+   continue
+   ;;
+-  -s) dostart=1
++  -s) if [ ! -e /bin/systemd ] ; then
++  dostart=1
++  fi
+   shift
+   continue
+   ;;
+-- 
+1.6.6.1
+
diff --git a/recipes-core/update-rc.d/update-rc.d_0.7.bbappend 
b/recipes-core/update-rc.d/update-rc.d_0.7.bbappend
new file mode 100644
index 000..8e9b0c0
--- /dev/null
+++ b/recipes-core/update-rc.d/update-rc.d_0.7.bbappend
@@ -0,0 +1,6 @@
+FILESEXTRAPATHS := "${THISDIR}/${PN}"
+
+SRC_URI += 
"file://0001-update-rc.d-make-s-a-noop-when-systemd-is-present.patch"
+ 
+PRINC = "1"
+


___
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel