Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Koen Kooi <koen@dominion.thruhere.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH 09/12] systemd-compat-units: move list of disabled services to variable, fix hwclock.sh and output
Date: Mon, 06 Aug 2012 16:25:58 +0200	[thread overview]
Message-ID: <jvok48$5ct$1@dough.gmane.org> (raw)
In-Reply-To: <5dd20f461ce240ffcaf43bd048e9b5e6ffd06bd0.1344259248.git.Martin.Jansa@gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 06-08-12 15:37, Martin Jansa schreef:
> * variable allows to add items in .bbappend without overwritting whole 
> postinst * hwclock.service should be used to blacklist SYSV hwclock.sh
> (not hwclock.sh.service) * show only newly disabled SYSV scripts
> 
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> --- 
> .../recipes-core/systemd/systemd-compat-units.bb   |   19
> ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-)
> 
> diff --git a/meta-systemd/recipes-core/systemd/systemd-compat-units.bb
> b/meta-systemd/recipes-core/systemd/systemd-compat-units.bb index
> c9a6b67..2973208 100644 ---
> a/meta-systemd/recipes-core/systemd/systemd-compat-units.bb +++
> b/meta-systemd/recipes-core/systemd/systemd-compat-units.bb @@ -3,7 +3,7
> @@ DESCRIPTION = "Units to make systemd work better with existing
> sysvinit scripts" LICENSE = "MIT" LIC_FILES_CHKSUM =
> "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
> 
> -PR = "r15" +PR = "r16"
> 
> inherit allarch
> 
> @@ -26,15 +26,24 @@ do_install() { chmod 0755 ${D}${bindir}/runlevel }
> 
> +SYSTEMD_DISABLED_SYSV_SERVICES = " \ +  busybox-udhcpc \ +  dnsmasq \ +
> hwclock \ +  networking \ +  syslog \ +  syslog.busybox \ +" + 
> pkg_postinst_${PN} () { cd $D${sysconfdir}/init.d
> 
> echo -n "Disabling the following sysv scripts: "
> 
> -for i in busybox-udhcpc dnsmasq hwclock.sh networking syslog
> syslog.busybox ; do -	if [ -e $i ] ; then -		echo -n "$i " ; ln -s
> /dev/null $D${systemd_unitdir}/system/$i.service -	fi +for i in
> ${SYSTEMD_DISABLED_SYSV_SERVICES} ; do +    if [ \( -e $i -o $i.sh \) -a
> ! -e $D${base_libdir}/systemd/system/$i.service ] ; then +        echo -n
> "$i " ; ln -s /dev/null $D${base_libdir}/systemd/system/$i.service +
> fi done ; echo }

Doing something like this should work a bit better:

for i in ${SYSTEMD_DISABLED_SYSV_SERVICES} ; do
	systemctl mask $i
done

regards,

Koen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFQH9P2MkyGM64RGpERAlt0AKC5RPAcFlS5DKhIBjnGptlWCuuN9gCfVZ/Y
jcUARKDAfbMatCrQx2ELcAw=
=qvM6
-----END PGP SIGNATURE-----




  reply	other threads:[~2012-08-06 14:37 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-01 22:20 [meta-oe][PATCH 0/8] Merge some recipes from oe-classic and smaller fixes Martin Jansa
2012-08-01 22:20 ` [meta-oe][PATCH 1/8] fbreader: drop machine overrides Martin Jansa
2012-08-01 22:20 ` [meta-oe][PATCH 2/8] emacs: rename TUTORIAL.ko to TUTORIAL.KO so it's not picked by package.bbclass for striping Martin Jansa
2012-08-01 22:21 ` [meta-oe][PATCH 3/8] emacs: copy only needed stuff to qemu-treedir, not whole sysroot Martin Jansa
2012-08-01 22:21 ` [meta-oe][PATCH 4/8] phonet-utils: simplify with inherit autotools Martin Jansa
2012-08-01 22:21 ` [meta-oe][PATCH 5/8] sip: import from oe-classic and upgrade to latest Martin Jansa
2012-08-01 22:21 ` [meta-oe][PATCH 6/8] python-sip: " Martin Jansa
2012-08-01 22:21 ` [meta-oe][PATCH 7/8] python-pyqt: import from oe-classic Martin Jansa
2012-08-01 22:21 ` [meta-oe][PATCH 8/8] anki: import from oe-classic and upgrade to latest Martin Jansa
2012-08-02  6:52   ` Martin Jansa
     [not found]   ` <cover.1343908599.git.Martin.Jansa@gmail.com>
2012-08-02 11:57     ` [meta-oe][PATCHv2 8/8] anki: import from oe-classic Martin Jansa
     [not found] ` <cover.1344259248.git.Martin.Jansa@gmail.com>
2012-08-06 13:37   ` [meta-oe][PATCH 09/12] systemd-compat-units: move list of disabled services to variable, fix hwclock.sh and output Martin Jansa
2012-08-06 14:25     ` Koen Kooi [this message]
2012-08-06 14:33       ` Martin Jansa
2012-08-06 16:13         ` Martin Jansa
2012-08-06 16:19           ` Martin Jansa
2012-08-06 22:12             ` [PATCH 1/2] systemd-systemctl-native: extend systemctl wrapper to support mask action Martin Jansa
2012-08-06 22:12               ` [PATCH 2/2] systemd-compat-units: use systemctl mask Martin Jansa
2012-08-06 22:26               ` [PATCHv2 1/2] systemd-systemctl-native: extend systemctl wrapper to support mask action Martin Jansa
2012-08-06 13:37   ` [meta-oe][PATCH 10/12] mplayer2: enable speex Martin Jansa
2012-08-06 13:37   ` [meta-oe][PATCH 11/12] php: inherit pythonnative Martin Jansa
2012-08-06 13:37   ` [meta-oe][PATCH 12/12] php: add build-defs.h to SSTATE_SCAN_FILES it defines path to sysroot where pear.conf is later created Martin Jansa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='jvok48$5ct$1@dough.gmane.org' \
    --to=koen@dominion.thruhere.net \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox