]> code.ossystems Code Review - openembedded-core.git/commitdiff
systemd: fix ordering for machineid and run-postinsts services
authorJonathan Liu <net147@gmail.com>
Thu, 16 May 2013 02:59:47 +0000 (12:59 +1000)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 31 May 2013 15:03:36 +0000 (16:03 +0100)
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)

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>
meta/recipes-core/systemd/systemd-compat-units/machineid.service
meta/recipes-core/systemd/systemd-compat-units/run-postinsts.service

index cab8f76ab880beb4bb54e0e177c9e1a2683f82ea..f586c6d60fc20ecc3967a637ba73235d67f23e9f 100644 (file)
@@ -2,7 +2,7 @@
 Description=Machine ID first boot configure
 DefaultDependencies=no
 ConditionPathExists=|!/etc/machine-id
-After=remount-rootfs.service
+After=systemd-remount-fs.service
 Before=sysinit.target
 
 [Service]
index da6fe76a384e08ccc4d50857a796d76b5cfeeeb9..02c1d868214409ba03b62b8f7b4fcb359ce148b6 100644 (file)
@@ -2,7 +2,7 @@
 Description=Run pending postinsts
 DefaultDependencies=no
 ConditionPathExists=|/etc/rcS.d/S98run-postinsts
-After=remount-rootfs.service tmp.mount
+After=systemd-remount-fs.service systemd-tmpfiles-setup.service tmp.mount
 Before=sysinit.target
 
 [Service]