101 Commits

Author SHA1 Message Date
Eric Bénard 97c6be71ee systemd_v189: add D_P=-1
now users have the choice :
* keep the old behaviour when not using systemd :
PREFERRED_PROVIDER_udev = "udev"
* switch to systemd (while keeping upgrade path) :
PREFERRED_PROVIDER_udev = "systemd"
PREFFERED_VERSION_systemd = "v189"

Signed-off-by: Eric Bénard <eric@eukrea.com>
Acked-by: Koen Kooi <koen@dominion.thruhere.net>
2013-01-07 11:53:11 +01:00
Eric Bénard 9ef11b2c06 systemd: recover previous _git recipe
Signed-off-by: Eric Bénard <eric@eukrea.com>
2013-01-07 11:53:09 +01:00
Eric Bénard 06ea40eb6d systemd: move _git to _v189
Signed-off-by: Eric Bénard <eric@eukrea.com>
Acked-by: Koen Kooi <koen@dominion.thruhere.net>
2013-01-07 11:52:56 +01:00
Koen Kooi 6e0ddd4526 systemd: update to v189
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Eric Bénard <eric@eukrea.com>
2012-12-16 10:50:28 +01:00
Denis 'GNUtoo' Carikli 0f17a3fb00 meta-systemd: systemd-systemctl-native: Also add support for WantedBy=*.service
Right now there was only WantedBy=*.target, which prevented some services from beeing installed,
  which prevent them from running at boot.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Eric Bénard <eric@eukrea.com>
2012-12-16 10:50:26 +01:00
Andreas Müller d6dd53c3b6 systemd-systemctl-native: handle ALIAS tag
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Eric Bénard <eric@eukrea.com>
2012-12-16 10:50:25 +01:00
Martin Jansa e5b3091351 systemd-systemctl-native: extend systemctl wrapper to support mask action
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Eric Bénard <eric@eukrea.com>
2012-12-16 10:50:25 +01:00
Andreas Müller f713db3852 systemd-systemctl-native: Add additional messages for better debugging
These messages helped me to fix the breakage of networkmanager/systemd

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Eric Bénard <eric@eukrea.com>
2012-12-16 10:50:24 +01:00
Martin Jansa a4c4a48148 systemd: cleanup /var/run on boot and create /var/run/utmp
* Angstrom uses /var/run cleanup because:
  Some apps (e.g. avahi-daemon) to clean up their old-style pid files and fail
  to start every other boot. Se we let systemd clean it on boot.
  Which seems general enough, so lets move var-run.conf from base-files.bbappend
  to systemd recipe.

* /var/run/utmp was created by volatiles before, but without sysvinit installed
  systemd-update-utmp-runlevel.service fails to start without this file

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Eric Bénard <eric@eukrea.com>
2012-08-13 10:39:20 +02:00
Martin Jansa 7f237b806e systemd-machine-units: add machine specific recipe for BSPs
* some machines like n900/gta02/palmpre are using extra units to
  initialize something (g_ether, cmt, ...), so make it easy to bbappend
  such units
* stuff like INHERIT_append_crespo = " systemd" from BSP doesn't play well with systemd.bbclass

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-26 13:49:14 +02:00
Koen Kooi 397dba1ab2 systemd: create empty machine-id to fix first boot failures
Acked-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-04-16 11:01:38 +02:00
Koen Kooi 204f537a18 systemd: fix emergency and rescue services
In OE we use /home/root, not /root.

Bug-reported-by: Graham Murphy <Graham.Murphy@jhuapl.edu>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-04-13 17:20:48 +02:00
Koen Kooi 5fced1d76e systemd: fix vconsole-setup dependencies
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-04-09 13:46:21 +02:00
Koen Kooi bd0a6a465f systemd: bump SRCREV
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-04-09 13:46:21 +02:00
Otavio Salvador 3f79074a70 systemd-systemctl-native: add support to disable services
This adds support to disable services making possible to it to be done
during rootfs generation.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-04-04 20:36:47 +02:00
Koen Kooi 6b22bd198a systemd-serialgetty: sync with upstream
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-03-23 07:57:19 +01:00
Andreas Müller c43b2b36bc systemd_git: replace ${base_libdir}/systemd by ${systemd_unitdir} set in oe-core
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-03-23 07:55:13 +01:00
Andreas Müller 0658069375 systemd-serialgetty: replace ${base_libdir}/systemd by ${systemd_unitdir} set in oe-core
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-03-23 07:55:12 +01:00
Andreas Müller 815124f28e systemd-compat-units: replace ${base_libdir}/systemd by ${systemd_unitdir} set in oe-core
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-03-23 07:55:12 +01:00
Koen Kooi b0a7f2e761 systemd: update to v44 + CVE fix
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-03-18 13:04:15 +01:00
Otavio Salvador c8680dada5 systemd-compat-units: rename service to run postinst scripts
OE-Core uses run-postinsts script to trigger package configuration on
first boot so the service ought to be named the same, for consistency.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-03-13 18:53:03 +01:00
Koen Kooi bddff3209c systemd: update and disable storing coredumps in the journal
Storing coredumps in the journal was mentioned as one of the reasons the journals grow so large

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-03-09 10:36:57 +01:00
Koen Kooi 112c1f86fc systemd: update to latest git
This is in preparation for the v44 release.

* drop 2 patches that aren't needed anymore
* fix more endianness problems
* fix journal crashes with large files

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-03-09 07:03:52 +01:00
Koen Kooi 81703d249d systemd: enable logging to disk instead of tmpfs
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-03-09 07:03:52 +01:00
Koen Kooi c2feb1ab2a systemd: enable xz compression for journald
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-03-09 07:03:52 +01:00
Andreas Müller 1aa96dc9df systemd-systemctl-native: multiple service files not looped properly
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-03-04 18:05:01 +01:00
Koen Kooi 3d15d096b6 systemd: address logind problem on BE machines
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-02-29 14:53:13 +01:00
Koen Kooi 9cca08ee27 systemd: split out libraries from ${PN}
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-02-24 10:55:49 +01:00
Andreas Müller 9d72ff10c5 systemd-systemctl-native: add multiple services support
Thanks to Otavio Salvador for helping hint [1]

[1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2012-February/037856.html

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-02-23 16:46:30 +01:00
Koen Kooi 724ec1ea4f systemd: move to v40 and don't kill user processes on exit
This fixes screen and tmux persistency issues.

Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-02-07 16:06:19 +01:00
Otavio Salvador 0d20039cfd systemd-serialgetty: support machines without serial console
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-02-01 08:24:06 +01:00
Koen Kooi 1c89ddb276 systemd: don't depend on tasks/images to do the right thing with mount
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-01-28 12:20:59 +01:00
Khem Raj a2b05eddcf systemd: Forward port format-replace-m-uclibc.patch
This patch was not applying and had to consider more
fields this time.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-01-26 09:58:02 +01:00
Koen Kooi ab384f1e56 systemd: update to v39
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-01-25 13:57:15 +01:00
Koen Kooi 77ce4f048e systemd: bump SRCREV to fix big-endian builds
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-01-24 13:20:50 +01:00
Koen Kooi 103b4174d1 systemd: move kbd RECOMMENDS to vconsole-setup where they belong
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-01-20 12:29:32 +01:00
Koen Kooi 0ce5ec32b8 systemd: add upstream status to patch
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-01-20 08:25:45 +01:00
Anders Darander acfe5820fe systemd: split out systemd-analyze
Split systemd-analyze to a separate package, to remove the implicit
dependency on python. (At least the rpm-packaging backend created a
run-time dependency on python).

Add an RDEPENDS_${PN}-analyze on python-dbus, as this is required for
systemd-analyze to work.

Add an RRECOMMENDS_${PN}-analyze on python-pycairo, as the plot command
in systemd-analyze requires this package.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-01-20 08:24:37 +01:00
Koen Kooi 6cb51af0e1 systemd: update to v38+git
* This introduces the 'journal' feature.
* Upstream is following the fedora /usr move so EXTRA_OECONF needs to get updated to keep the paths the same for the OE usecase

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-01-20 08:24:37 +01:00
Anders Darander d3a451bbd0 systemd: git repo moved
Freedesktop have reorganized the git repository structure.

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-01-10 08:25:55 +01:00
Otavio Salvador 5f2ac92eed systemd: depends on intltool-native
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-12-23 08:53:02 +01:00
Otavio Salvador 2cba3b0244 systemd-systemctl-native: add support to recursive services
Some services can reference others for installation thought the Also
key; systemctl now handles it calling itself recursively for each
service.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-12-15 09:25:07 +01:00
Martin Jansa 0c1147ad8d systemd: add prerm u-a calls
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-21 12:08:21 +01:00
Koen Kooi c30abb39eb systemd: bump SRCREV
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-20 13:00:25 +01:00
Koen Kooi 80689864f3 systemd: bump SRCREV
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-08 10:42:29 +01:00
Otavio Salvador 79f35231a3 systemd-systemctl-native: add a systemctl wrapper
The wrapper allows for enabling services at rootfs generation thus
allowing systemd to be used in ready-only filesystems.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-04 19:41:19 +01:00
Koen Kooi 239e817197 systemd-compat-units: run systemd-machine-id-setup
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-01 14:33:10 +01:00
Martin Jansa 592e24e043 systemd-serialgetty: use better default SERIAL_CONSOLE
* having /dev/ttySO fails with:
  | ln: failed to create symbolic link
  `/OE/shr-core/tmp/work/nokia900-oe-linux-gnueabi/systemd-serialgetty-1.0-r0/image/etc/systemd/system/getty.target.wants/serial-getty@/dev/ttyS0.service':
  No such file or directory

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-11-01 09:57:03 +01:00
Koen Kooi 2f260409a0 systemd: fix internal pager
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-01 08:36:17 +01:00
Otavio Salvador 48e381fcb0 systemd: add lock group using useradd.bbclass
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-24 16:23:42 +02:00