Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] systemd-compat-units: do not mask real service files
@ 2014-01-10  7:15 Anders Darander
  2014-01-10  7:15 ` [PATCH 1/1] systemd-compat-units: do not mask available services Anders Darander
  0 siblings, 1 reply; 3+ messages in thread
From: Anders Darander @ 2014-01-10  7:15 UTC (permalink / raw)
  To: openembedded-core; +Cc: Anders Darander

systemd-compat-units might mask existing service files.
This occuress if real service files mentioned in SYSTEMD_DISABLED_SYSV_SERVICES
exists in systemd_unitdir/system instead of /etc/systemd/system.

This was discovered when adding dnsmasq to our dora-based builds. The fix itself
is ported to master.
The following changes since commit 1028ac813fa9803ebfff6bcfa7f8b67012609b27:

  sstate: add do_package to the noexec list in setscene_depvalid (2014-01-07 13:58:28 +0000)

are available in the git repository at:

  git://github.com/darander/oe-core systemd-compat-units
  https://github.com/darander/oe-core/tree/systemd-compat-units

Anders Darander (1):
  systemd-compat-units: do not mask available services

 meta/recipes-core/systemd/systemd-compat-units.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.8.5.2



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

* [PATCH 1/1] systemd-compat-units: do not mask available services
  2014-01-10  7:15 [PATCH 0/1] systemd-compat-units: do not mask real service files Anders Darander
@ 2014-01-10  7:15 ` Anders Darander
  2014-01-13 17:02   ` Burton, Ross
  0 siblings, 1 reply; 3+ messages in thread
From: Anders Darander @ 2014-01-10  7:15 UTC (permalink / raw)
  To: openembedded-core; +Cc: Anders Darander

Do also check systemd_unitdir/system/ for available unit files.

This was hiding dnsmasq.service for us, as /etc/systemd/system has
priority over systemd_unitdir/system...

Signed-off-by: Anders Darander <anders@chargestorm.se>
---
 meta/recipes-core/systemd/systemd-compat-units.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/systemd/systemd-compat-units.bb b/meta/recipes-core/systemd/systemd-compat-units.bb
index 9f28283..e32ad79 100644
--- a/meta/recipes-core/systemd/systemd-compat-units.bb
+++ b/meta/recipes-core/systemd/systemd-compat-units.bb
@@ -42,7 +42,7 @@ pkg_postinst_${PN} () {
 	fi
 
 	for i in ${SYSTEMD_DISABLED_SYSV_SERVICES} ; do
-		if [ \( -e $i -o $i.sh \) -a ! -e $D${sysconfdir}/systemd/system/$i.service ] ; then
+		if [ \( -e $i -o $i.sh \) -a ! \( -e $D${sysconfdir}/systemd/system/$i.service -o  -e $D${systemd_unitdir}/system/$i.service \) ] ; then
 			echo -n "$i: " ; systemctl ${OPTS} mask $i.service
 		fi
 	done ; echo
-- 
1.8.5.2



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

* Re: [PATCH 1/1] systemd-compat-units: do not mask available services
  2014-01-10  7:15 ` [PATCH 1/1] systemd-compat-units: do not mask available services Anders Darander
@ 2014-01-13 17:02   ` Burton, Ross
  0 siblings, 0 replies; 3+ messages in thread
From: Burton, Ross @ 2014-01-13 17:02 UTC (permalink / raw)
  To: Anders Darander; +Cc: OE-core

If dnsmasq doesn't need to be manually masked, then why not just
remove it from the list?

Ross

On 10 January 2014 07:15, Anders Darander <anders@chargestorm.se> wrote:
> Do also check systemd_unitdir/system/ for available unit files.
>
> This was hiding dnsmasq.service for us, as /etc/systemd/system has
> priority over systemd_unitdir/system...
>
> Signed-off-by: Anders Darander <anders@chargestorm.se>
> ---
>  meta/recipes-core/systemd/systemd-compat-units.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/systemd/systemd-compat-units.bb b/meta/recipes-core/systemd/systemd-compat-units.bb
> index 9f28283..e32ad79 100644
> --- a/meta/recipes-core/systemd/systemd-compat-units.bb
> +++ b/meta/recipes-core/systemd/systemd-compat-units.bb
> @@ -42,7 +42,7 @@ pkg_postinst_${PN} () {
>         fi
>
>         for i in ${SYSTEMD_DISABLED_SYSV_SERVICES} ; do
> -               if [ \( -e $i -o $i.sh \) -a ! -e $D${sysconfdir}/systemd/system/$i.service ] ; then
> +               if [ \( -e $i -o $i.sh \) -a ! \( -e $D${sysconfdir}/systemd/system/$i.service -o  -e $D${systemd_unitdir}/system/$i.service \) ] ; then
>                         echo -n "$i: " ; systemctl ${OPTS} mask $i.service
>                 fi
>         done ; echo
> --
> 1.8.5.2
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

end of thread, other threads:[~2014-01-13 17:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-10  7:15 [PATCH 0/1] systemd-compat-units: do not mask real service files Anders Darander
2014-01-10  7:15 ` [PATCH 1/1] systemd-compat-units: do not mask available services Anders Darander
2014-01-13 17:02   ` Burton, Ross

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