aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd
AgeCommit message (Collapse)Author
2013-05-29systemd: do not create /var/volatile/run and /var/volatile/lockJonathan Liu
The directories are not needed anymore. Previously: /var/run -> /var/volatile/run /var/lock -> /var/volatile/lock Now: /var/run -> /run /var/lock -> /run/lock Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-05-29systemd: fix ordering for machineid and run-postinsts servicesJonathan Liu
The remount-rootfs.service unit has been renamed to systemd-remount-fs.service in systemd v183 and later. The run-postinsts script writes to /var/log (a symbolic link to /var/volatile/log), so systemd-tmpfiles-setup.service is added to After= in run-postinsts.service to ensure /var/volatile/log is created before running the script. [YOCTO #4490] Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-05-24systemd: forward port uclibc patches to 204Khem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-05-24systemd: update to 204Jonathan Liu
Removed patches integrated upstream. Added backport of fix for utmp not running at shutdown. Updated serial-getty service. Added missing util-linux dependency. Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-05-16systemd: make udev-hwdb postinstall run on hostLaurentiu Palcu
Run udevadm inside qemu in order to create the HW database index on host. The alternative would be to build a native version of udevadm which would imply several things: split out systemd recipe, create a common inc file and create a new recipe for udevadm native. However, this latter solution might also add up to the build time (the native recipe would need to run configure, make udevadm, install), besides the time spent in the actual postinstall... So, having the postinstall run through qemu is a good trade-off. [YOCTO #4341] Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-05-12bitbake.conf: export STRINGSMartin Jansa
* remove STRINGS export from systemd Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-05-08systemd: do not recommend udev-extraconf for udevAndreas Müller
* adding this extra functionality is an image- or distro-decision * at least automount-rule/script breaks other automount solutions causing misleading kernel messages as 'VFS: could not find a valid V7 on sda' same as already sent by Koen Kooi [1] [1] http://patches.openembedded.org/patch/48139/ Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-05-02systemd-serialgetty: change to handle SERIAL_CONSOLESPaul Eggleton
SERIAL_CONSOLES is now set from SERIAL_CONSOLE if not already set. This is a little bit gnarly because we have to create a separate service file for each different baud rate; assume that the first baud rate is the default, thus preserving the previous behaviour in the event there is only one baud rate in use. This change also installs the service file before modifying it in place, allowing do_install to re-execute properly; additionally the service file now has the correct permissions (i.e. no execute bit set). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-04-29systemd-systemctl: parse unit files more correctlyEnrico Scholz
Old script failed to parse unit files containing comments like | #Alias=some-alias or whitespaces like | WantedBy = foo correctly. Patch changes script to interpret keywords only when they are at the beginning of a line and ignores whitespaces before the '='. Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-04-18systemd: depend on libgcryptEnrico Scholz
Although libgcrypt support is optional, its development files are are always required to expand AM_PATH_LIBGCRYPT. Build might fails else with | libtoolize: copying file `m4/lt~obsolete.m4' | configure.ac:446: warning: macro 'AM_PATH_LIBGCRYPT' not found in library | ... | configure.ac:446: error: possibly undefined macro: AM_PATH_LIBGCRYPT | autoreconf: .../autoconf failed with exit status: 1 | + bbfatal 'autoreconf execution failed.' | + echo 'ERROR: autoreconf execution failed.' Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-18systemd: Fix udevd init script so sysvinit in systemd mode worksRichard Purdie
Commit http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=f76d4b3549ca220fa4bf84db2756ab45e11d06a3 moved volatiles handling for /run to the udev code only. This breaks sysvinit+systemd combined systems when building sysvinit images. This patch hacks the udevd init script in systemd to provide the missing symlink allowing the sysvinit images built with udevd from systemd to work correctly. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-18systemd: fix -dbg package with multilibRoss Burton
When libdir isn't /lib the files that are in nonarch_base_libdir were being left out of the -dbg package. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-18systemd: Effectively revert the move to /sbinRoss Burton
This effectively reverts the move systemd's libexecdir to /sbin. This caused too many issues in other places and was not well enough tested this close to release. Rather than use base_libdir, the nonarch version is used to try and give some chance of multilib not being totally broken in the release. Also some variables are used that mirror the systemd build system to reduce the risk of using variables that "work" in the general case but will break with multilib. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-17systemd: fix out of tree buildsRoss Burton
Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-16systemd: Fix shell variable assignment spacingRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-16systemd: use AC_CHECK_TOOL instead of AC_PATH_TOOL when checking objcopy, ↵Martin Jansa
strings, gperf * with external toolchain I have different HOST_PREFIX and HOST_SYS AC_PATH_TOOL is using HOST_SYS as prefix and fails to find objcopy then it tries objcopy without prefix which is found on host, but that objcopy does not work for arm libs * with internal toolchain gperf is not prefixed with HOST_PREFIX, but fallback to "gperf" only finds the one in native sysroot first * based on http://lists.linuxtogo.org/pipermail/openembedded-core/2013-April/037985.html Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-15systemd: fix bootup with 'ro' by re-adding util-linux-mount to RDEPENDSKoen Kooi
When using busybox mount the filesystem won't get remounted as 'rw' and bootup will fail. This fixes the regression seen after switching from 'danny' to 'dylan'. Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-13systemd: move the binaries to /sbin/systemdRoss Burton
As with udev, placing binaries in /lib breaks our current multilib implementation. Change the rootlibexecdir to /sbin/systemd so that binaries don't move in multilib situations. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-11systemd: use ${BPN} instead of ${PN} in FILESRoss Burton
Otherwise in multlib builds the wrong name is used and files don't get packaged correctly. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-11systemd: Fix path to systemd-analyze so it end up in the right package.Erik Botö
Since the upgrade to version 199 the location for systemd-analyze has change this caused the systemd-analyze package to be empty and the binary was shipped with the systemd package instead. Signed-off-by: Erik Botö <erik.boto@pelagicore.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-10systemd: use update-alternatives.bbclassRadu Moisan
switch from using plain update-alternatives command to update-alternatives.bbclass style Signed-off-by: Radu Moisan <radu.moisan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-08systemd: Set the default firmware path to enable firmware loading in udevHolger Hans Peter Freyther
After some breakage in udev the kernel gained direct firmware loading. For older kernels (e.g. 3.2 in my case) udev still needs to load the firmware. Firmware loading is enabled once a default firmware path is set. Apply a compile fix from the upstream project. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-04systemd: set INHIBIT_UPDATERCD_BBCLASS without sysvinit in featuresMartin Jansa
* fixes udev configure in run-postinsts failing with: update-rc.d: /etc/init.d/systemd-udev: file does not exist because systemd-udev is installed only with sysvinit in features but update-rc.d was always called from PN postinst Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-29systemd: Add new package systemd-kernel-installKhem Raj
Package additional directories e.g. /etc/kernel and /usr/lib/kernel Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-29systemd: Upgrade to 199Khem Raj
udevadm is now moved from /usr/bin to /bin so account for that bash completions for udevadm should be packages with udev-utils since thats where udevadm itself is, they were in systemd package which is not correct location for it Backport patches for readahead fixes on spinning disks and to tackle error reported on missing /etc/sysctl.conf Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-27systemd: Upgrade to 198Khem Raj
Tested on ppc and x86_64 compile tested for uclibc Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-26systemd: recommend systemd-compat-unitsRoss Burton
These are more than useful as they ensure some services are not started twice, and cause the first-boot postinstalls to run. Signed-off-by: Ross Burton <ross.burton@intel.com>
2013-03-26systemd-compat-units: disable dbus-1Ross Burton
2013-03-26systemd: add udev init script for hybrid sysvinit/systemd usageRoss Burton
With both sysvinit and systemd features it's possible to use systemd's udev with sysvinit, so add the required init script. Signed-off-by: Ross Burton <ross.burton@intel.com>
2013-03-26systemd: split out the hwdb dataRoss Burton
The hardware databases are not essential and also quite large, so split them out into udev-hwdb. Signed-off-by: Ross Burton <ross.burton@intel.com>
2013-03-26systemd: don't depend on the PCI/USB databasesRoss Burton
systemd ships its own databases (hwdb), so we don't need another copy. --with-pci-ids isn't recognised by configure, so remove it. Signed-off-by: Ross Burton <ross.burton@intel.com>
2013-03-26systemd: merge udev-systemd into udevRoss Burton
Merge the contents of udev-systemd, which is just the service files, into udev itself. This split wasn't intended to ever happen in oe-core. Signed-off-by: Ross Burton <ross.burton@intel.com>
2013-03-26systemd: make xz support (compressed journal) optional, defaulting to on.Ross Burton
Compressed journals means using liblzma, sf the journal isn't going to be used this can be disabled. Signed-off-by: Ross Burton <ross.burton@intel.com>
2013-03-15systemd: remove libsystemd-daemon linkage in libudevRoss Burton
libudev was statically linking to libsystemd-shared, which was linking to libsystemd-daemon (via libtool). This is a spurious dependency so backport a commit from upstream to remove it. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-03-15systemd: set the location of the kill binaryRoss Burton
Otherwise systemd uses AC_PROG_PATH and finds it in the sysroot, which won't work on the target. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-03-15systemd: remove util-linux-mount dependencyRoss Burton
There's been a lot of action in busybox to fix mount's behaviour for systemd, so remove the dependency on util-linux. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-03-15systemd: busybox's swapon now supports -pRoss Burton
Now that busybox's swapon supports -p, systemd doesn't need to depend on util-linux. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-03-15systemd-compat-units: add missing systemd-systemctl-native dependencyRoss Burton
This package has postinsts that run on the build host, but wasn't depending on systemd-systemctl-native. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-03-07systemd: set the location of the kill binaryRoss Burton
Otherwise systemd uses AC_PROG_PATH and finds it in the sysroot, which won't work on the target. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-03-07systemd: remove --with-distro option, it's not usedRoss Burton
Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-03-07systemd: remove unused cached configure variablesRoss Burton
Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-03-07systemd: make gcrypt support (for signing the journal) optionalRoss Burton
Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-03-01systemd: systemd uses libkmod instead of modprobe, remove dependenciesRoss Burton
Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-02-15systemd: add udev-extraconf and USB/PCI IDs to RRECOMMENDSRoss Burton
The standalone udev has these dependencies and extraconf is required to have working automount amongst other things. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-02-08systemd_197.bb: Point to the place where we keep the /etc/rcN.d filesHolger Hans Peter Freyther
By default /etc/rc.d is searched by systemd but we will keep rcN.d directories inside /etc. Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-02-06systemd: remove /var/cache from volatilesLaurentiu Palcu
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-02-01systemd: systemd-analyze remove python runtime dependenciesAndreas Müller
systemd-analyze was rewritten in C (From OE-Core rev: d0682242fb44042497764ecc821b19c3f89054a0) Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-02-01systemd: systemd-analyse has moved to base_bindirAndreas Müller
(From OE-Core rev: e24a5a72b73017c59fa0503b9745cb58444ea121) Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-02-01systemd: Drop ppc build breakage patch for test-unit-fileKhem Raj
its been fixed differently upstream in 197 (From OE-Core rev: 50a8bc8cf32f0cf38f0a910b0ae6bba03a2d58d7) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-02-01systemd: bump PE to provide upgrade path from meta-systemd recipeMartin Jansa
* 197 sorts lower then v196.*, 22 ERRORs are shown when buildhistory is used: ERROR: Package version for package udev-dbg went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package udev went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package udev-consolekit went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package udev-utils went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package udev-systemd went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package systemd-gui went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package systemd-vconsole-setup went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package systemd-initramfs went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package systemd-analyze went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package systemd-dbg went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package systemd-staticdev went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package systemd-dev went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package systemd-doc went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package systemd-locale went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package systemd went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package libgudev-1.0 went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package libsystemd-daemon went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package libsystemd-id128 went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package libsystemd-journal went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package libsystemd-login went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) ERROR: Package version for package libudev went backwards which would break package feeds from (0:v196-105-gdecd634-r20.0 to 0:197-r1.0) (From OE-Core rev: a58238aec13dc7a0fe350c65502860a9045d151d) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>