summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2013-05-16 12:59:47 +1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-03 16:58:12 +0100
commit594ab9d3a8525ea1f7c8b90dd12d92794a3fc291 (patch)
treeebadc7e9a01ba5a3542682112414588d0089c587 /meta/recipes-core
parent3954bf45ffa023e28bcd4cf52b0e481bdd238818 (diff)
downloadpoky-594ab9d3a8525ea1f7c8b90dd12d92794a3fc291.tar.gz
systemd: fix ordering for machineid and run-postinsts services
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] (From OE-Core master rev: 8b59ec4eb761d88445da94bb90aa2c5db0bbf365) (From OE-Core rev: ad527115ad122df957e204d4af57edf600f9d419) Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/systemd/systemd-compat-units/machineid.service2
-rw-r--r--meta/recipes-core/systemd/systemd-compat-units/run-postinsts.service2
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/systemd/systemd-compat-units/machineid.service b/meta/recipes-core/systemd/systemd-compat-units/machineid.service
index cab8f76ab8..f586c6d60f 100644
--- a/meta/recipes-core/systemd/systemd-compat-units/machineid.service
+++ b/meta/recipes-core/systemd/systemd-compat-units/machineid.service
@@ -2,7 +2,7 @@
2Description=Machine ID first boot configure 2Description=Machine ID first boot configure
3DefaultDependencies=no 3DefaultDependencies=no
4ConditionPathExists=|!/etc/machine-id 4ConditionPathExists=|!/etc/machine-id
5After=remount-rootfs.service 5After=systemd-remount-fs.service
6Before=sysinit.target 6Before=sysinit.target
7 7
8[Service] 8[Service]
diff --git a/meta/recipes-core/systemd/systemd-compat-units/run-postinsts.service b/meta/recipes-core/systemd/systemd-compat-units/run-postinsts.service
index da6fe76a38..02c1d86821 100644
--- a/meta/recipes-core/systemd/systemd-compat-units/run-postinsts.service
+++ b/meta/recipes-core/systemd/systemd-compat-units/run-postinsts.service
@@ -2,7 +2,7 @@
2Description=Run pending postinsts 2Description=Run pending postinsts
3DefaultDependencies=no 3DefaultDependencies=no
4ConditionPathExists=|/etc/rcS.d/S98run-postinsts 4ConditionPathExists=|/etc/rcS.d/S98run-postinsts
5After=remount-rootfs.service tmp.mount 5After=systemd-remount-fs.service systemd-tmpfiles-setup.service tmp.mount
6Before=sysinit.target 6Before=sysinit.target
7 7
8[Service] 8[Service]