[oe] [PATCH][meta-oe] systemd: add postrm u-a calls

Martin Jansa martin.jansa at gmail.com
Thu Nov 10 07:56:07 UTC 2011


On Thu, Nov 10, 2011 at 08:44:49AM +0100, Anders Darander wrote:
> * Martin Jansa <martin.jansa at gmail.com> [111109 20:25]:
> > Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
> > ---
> >  meta-oe/recipes-core/systemd/systemd_git.bb |   11 +++++++++--
> >  1 files changed, 9 insertions(+), 2 deletions(-)
> 
> > diff --git a/meta-oe/recipes-core/systemd/systemd_git.bb b/meta-oe/recipes-core/systemd/systemd_git.bb
> > index 90862a3..d1d4306 100644
> > --- a/meta-oe/recipes-core/systemd/systemd_git.bb
> > +++ b/meta-oe/recipes-core/systemd/systemd_git.bb
> > @@ -14,7 +14,7 @@ inherit gitpkgv
> >  # TODO:
> >  # u-a for runlevel and telinit
> > -# u-a prerm
> 
> Here on your todo list, it stated u-a for prerm, but you applied it to
> the postrm. In this case, it probably doesn't really matter, but I'd
> still guess that it would make more sense to remove the u-a before
> removing the binaries. Although, I don't think it'll actually cause any
> problems in this case.

I did what u-a.bbclass usually do.. if you think it should be in prerm
then it would be best to first fix in u-a.bbclass and then we can update
the rest of metadata.

Cheers,

> 
> Cheers,
> Anders
> 
> >  pkg_postinst_systemd () {
> >  update-alternatives --install ${base_sbindir}/init init ${base_bindir}/systemd 300
> > @@ -117,3 +116,11 @@ update-alternatives --install ${base_sbindir}/reboot reboot ${base_bindir}/syste
> >  update-alternatives --install ${base_sbindir}/shutdown shutdown ${base_bindir}/systemctl 300
> >  update-alternatives --install ${base_sbindir}/poweroff poweroff ${base_bindir}/systemctl 300
> >  }
> > +
> > +pkg_postrm_systemd () {
> > +update-alternatives --remove init ${base_bindir}/systemd
> > +update-alternatives --remove halt ${base_bindir}/systemctl
> > +update-alternatives --remove reboot ${base_bindir}/systemctl
> > +update-alternatives --remove shutdown ${base_bindir}/systemctl
> > +update-alternatives --remove poweroff ${base_bindir}/systemctl
> > +}
> -- 
> Anders Darander
> ChargeStorm AB / eStorm AB
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20111110/0e036132/attachment-0002.sig>


More information about the Openembedded-devel mailing list