From 7acbf5e2f99c59478adbc73c6a40d314589a3009 Mon Sep 17 00:00:00 2001 From: Thuy Tran Date: Wed, 1 Nov 2017 14:12:02 +0700 Subject: rcar-gen3: run-postinsts: WORKAROUND to fix dependency failed for serial getty This commit modifies recipe to fix this issue by following Poky commit. Title: run-postinsts: do not reload daemon configuration Auther: Max Krummenacher Commit: 24a4b7114bf937ffb38b7696e75cf6ea917026a7 In case a systemd service disables itself while init is still in its boot sequence the reloading of the service files can be problematic. In that case: It seems that systemd looses the state of .device units, and some services depend on such units (namely serial consoles such as serial-getty@ttymxc0.service). As a result no getty is spawned on the affected serial tty. After a power-cycle the second boot (which does not disable services) succeeds. The following sequence shows this problem: | Jan 09 16:36:28 apalis-t30 systemctl[162]: Removed /etc/systemd/system/sysinit.target.wants/run-postinsts.service. | Jan 09 16:36:28 apalis-t30 systemd[1]: Reloading. | ... | And then the failing one: | Feb 22 15:33:15 apalis-t30 systemd[1]: dev-ttyS0.device: Job dev-ttyS0.device/start timed out. | Feb 22 15:33:15 apalis-t30 systemd[1]: Timed out waiting for device dev-ttyS0.device. | Feb 22 15:33:15 apalis-t30 systemd[1]: Dependency failed for Serial Getty on ttyS0. | Feb 22 15:33:15 apalis-t30 systemd[1]: serial-getty@ttyS0.service: Job serial-getty@ttyS0.service/start failed with result 'dependency'. | Feb 22 15:33:15 apalis-t30 systemd[1]: dev-ttyS0.device: Job dev-ttyS0.device/start failed with result 'timeout'. | Feb 22 15:33:15 apalis-t30 systemd[1]: Reached target Login Prompts. (the time has been updated between this two events, but that does not influence the issue) Using --no-reload in the service file avoids the "Reloading." message above and seems to not cause such issues anymore. Signed-off-by: Thuy Tran Signed-off-by: Takamitsu Honda --- .../recipes-devtools/run-postinsts/run-postinsts_%.bbappend | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 meta-rcar-gen3/recipes-devtools/run-postinsts/run-postinsts_%.bbappend (limited to 'meta-rcar-gen3/recipes-devtools/run-postinsts/run-postinsts_%.bbappend') diff --git a/meta-rcar-gen3/recipes-devtools/run-postinsts/run-postinsts_%.bbappend b/meta-rcar-gen3/recipes-devtools/run-postinsts/run-postinsts_%.bbappend new file mode 100644 index 0000000..ed72bf2 --- /dev/null +++ b/meta-rcar-gen3/recipes-devtools/run-postinsts/run-postinsts_%.bbappend @@ -0,0 +1,5 @@ +# Do not reload daemon configuration +do_install_append () { + sed -e 's/\disable/--no-reload \disable/' \ + -i ${D}${systemd_unitdir}/system/run-postinsts.service +} -- cgit 1.2.3-korg