[OE-core] [PATCH v2] systemd: set default.target to multi-user.target

Martin Jansa martin.jansa at gmail.com
Fri Jan 25 18:06:34 UTC 2013


On Fri, Jan 25, 2013 at 06:53:54PM +0100, Andreas Müller wrote:
> On Fri, Jan 25, 2013 at 6:50 PM, Burton, Ross <ross.burton at intel.com> wrote:
> > Hi,
> >
> > Been chatting to Richard.  How about systemd ships a symlink to
> > multi-user, and the X11 init script packages change the symlink to
> > graphical in their postinst.
> >
> > (we must remember to put this in the release notes for anyone who has
> > a custom X init script)
> >
> > Ross
> >
> Have not yet tested but how about:
> 
> pkg_postinst_systemd () {
> if [ -n "$D" ]; then
> 	# no display-manager.service around?
> 	if [ ! -e ${D}${systemd_unitdir}/systemd/system/display-manager.service -a \

I think you wanted $D ^ here.

> 	     ! grep 'Alias=display-manager.service'
> ${D}${systemd_unitdir}/systemd/system ]; then
> 		ln -s ${systemd_unitdir}/system/multi-user.target
> ${D}${systemd_unitdir}/systemd/system/default.target
> 	fi
> fi

Cannot we just just u-a for default.target ? And each possible target
providing own u-a alternative (DMs with higher prio then systemd)?

Cheers,
-- 
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-core/attachments/20130125/13a464b9/attachment-0002.sig>


More information about the Openembedded-core mailing list