From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [Pull v3 1/4] avahi: use useradd to create avahi user for avahi-daemon
Date: Thu, 03 Nov 2011 12:39:51 +0000 [thread overview]
Message-ID: <1320323991.20107.49.camel@ted> (raw)
In-Reply-To: <22CC451F-6D62-44A0-8984-489D40859F17@dominion.thruhere.net>
On Thu, 2011-11-03 at 13:23 +0100, Koen Kooi wrote:
> Op 2 nov. 2011, om 01:21 heeft Saul Wold het volgende geschreven:
>
> > DBus was failing to start correct since the avahi user was
> > not setup.
> >
> > Keep the dbus reload since this could still be installed
> > as a package an would require a dbus restart.
>
> This doesn't seem to work for me, I keep getting "Unknown username
> 'avahi' in message bus configuration file"
From where? On target device upgrade? do_rootfs? populate_sysroot? More
info would be useful here.
> > Fixes: [YOCTO #1699]
> >
> > Signed-off-by: Saul Wold <sgw@linux.intel.com>
> > ---
> > meta/recipes-connectivity/avahi/avahi.inc | 16 +++++++++-------
> > 1 files changed, 9 insertions(+), 7 deletions(-)
> >
> > diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc
> > index 5ad9db0..79cfd73 100644
> > --- a/meta/recipes-connectivity/avahi/avahi.inc
> > +++ b/meta/recipes-connectivity/avahi/avahi.inc
> > @@ -14,7 +14,7 @@ SECTION = "network"
> > # python scripts are under GPLv2+
> > LICENSE = "GPLv2+ & LGPLv2.1+"
> >
> > -INC_PR = "r8"
> > +INC_PR = "r9"
> >
> > DEPENDS = "expat libcap libdaemon dbus glib-2.0"
> >
> > @@ -23,7 +23,12 @@ SRC_URI = "http://avahi.org/download/avahi-${PV}.tar.gz \
> > file://99avahi-autoipd \
> > file://initscript.patch"
> >
> > -inherit autotools pkgconfig update-rc.d gettext
> > +USERADD_PACKAGES = "${PN}-daemon"
> > +USERADD_PARAM_${PN}-daemon = "--system --home /var/run/avahi-daemon \
> > + --no-create-home --shell /bin/false \
> > + --user-group avahi"
> > +
> > +inherit autotools pkgconfig update-rc.d gettext useradd
> >
> > EXTRA_OECONF = "--with-distro=debian \
> > --disable-introspection \
> > @@ -116,15 +121,12 @@ do_install_avahi-autoipd() {
> > install ${WORKDIR}/99avahi-autoipd ${D}${sysconfdir}/udhcpc.d
> > }
> >
> > -# At the time the postinst runs, dbus might not be setup so only restart if running
> > +# At the time the postinst runs, dbus might not be setup so only restart if running
> >
> > pkg_postinst_avahi-daemon () {
> > - # can't do this offline
> > if [ "x$D" != "x" ]; then
> > - exit 1
> > + exit 0
> > fi
>
> Removing that check completely would be a better idea :)
No it wouldn't, if we're installing this at do_rootfs time, we can just
mark the postinstall as done.
Cheers,
Richard
next prev parent reply other threads:[~2011-11-03 12:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-02 0:21 [Pull v3 0/4] Add User Fixes Saul Wold
2011-11-02 0:21 ` [Pull v3 1/4] avahi: use useradd to create avahi user for avahi-daemon Saul Wold
2011-11-03 12:23 ` Koen Kooi
2011-11-03 12:38 ` Koen Kooi
2011-11-03 12:40 ` Koen Kooi
2011-11-03 12:39 ` Richard Purdie [this message]
2011-11-03 12:49 ` Koen Kooi
2011-11-02 0:21 ` [Pull v3 2/4] xserver-nodm-init: Use useradd to add the xuser for rootless X Saul Wold
2011-11-02 0:21 ` [Pull v3 3/4] connman: Use useradd to add the xuser for DBus Saul Wold
2011-11-02 0:21 ` [Pull v3 4/4] dbus: ensure that the useradd shell is set to /bin/false Saul Wold
2011-11-02 8:21 ` [Pull v3 0/4] Add User Fixes Richard Purdie
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=1320323991.20107.49.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@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