* [PATCH] systemd: fix ordering for machineid and run-postinsts services
@ 2013-05-16 2:59 Jonathan Liu
2013-05-24 13:33 ` Jonathan Liu
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Liu @ 2013-05-16 2:59 UTC (permalink / raw)
To: openembedded-core
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>
---
meta/recipes-core/systemd/systemd-compat-units/machineid.service | 2 +-
meta/recipes-core/systemd/systemd-compat-units/run-postinsts.service | 2 +-
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 cab8f76..f586c6d 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 @@
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]
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 da6fe76..02c1d86 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 @@
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]
--
1.8.2.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] systemd: fix ordering for machineid and run-postinsts services
2013-05-16 2:59 [PATCH] systemd: fix ordering for machineid and run-postinsts services Jonathan Liu
@ 2013-05-24 13:33 ` Jonathan Liu
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Liu @ 2013-05-24 13:33 UTC (permalink / raw)
To: Jonathan Liu; +Cc: openembedded-core
On 16/05/2013 12:59 PM, Jonathan Liu wrote:
> 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>
> ---
> meta/recipes-core/systemd/systemd-compat-units/machineid.service | 2 +-
> meta/recipes-core/systemd/systemd-compat-units/run-postinsts.service | 2 +-
> 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 cab8f76..f586c6d 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 @@
> 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]
> 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 da6fe76..02c1d86 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 @@
> 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]
Bump. This fixes the postinst service failing on startup when using
systemd with an image that inherits from boot-directdisk.
Regards,
Jonathan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-24 13:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-16 2:59 [PATCH] systemd: fix ordering for machineid and run-postinsts services Jonathan Liu
2013-05-24 13:33 ` Jonathan Liu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.