Files
poky/meta/recipes-devtools
Max Krummenacher 24a4b7114b run-postinsts: do not reload daemon configuration
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.

Reported-by: Stefan Agner <stefan.agner@toradex.com>
(From OE-Core rev: 23b359b6e26d0b17037bf955bd15a16a3fd9ab8f)

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
(cherry picked from commit 4a425d05bac5dcba023b67aa3d726f7e7869404f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-08-16 00:03:14 +01:00
..
2017-07-30 08:46:20 +01:00
2017-08-16 00:03:13 +01:00
2017-07-21 11:12:44 +01:00
2017-08-13 09:27:38 +01:00
2017-08-09 09:24:16 +01:00
2017-08-09 09:24:15 +01:00
2017-06-28 15:52:18 +01:00
2017-08-13 09:27:37 +01:00
2017-06-28 20:55:08 +01:00
2017-08-13 09:27:38 +01:00
2017-06-28 15:52:18 +01:00
2017-03-01 23:27:06 +00:00
2017-07-17 14:01:38 +01:00
2017-05-12 08:51:09 +01:00
2017-08-13 09:27:37 +01:00
2017-06-22 09:16:00 +01:00
2017-05-29 15:15:20 +01:00
2017-07-31 15:13:31 +01:00
2017-07-21 22:51:38 +01:00
2017-07-08 13:34:46 +01:00
2017-08-13 09:27:38 +01:00
2017-04-05 23:22:13 +01:00
2017-07-06 14:38:14 +01:00
2017-02-23 12:49:51 -08:00
2017-06-28 20:55:08 +01:00
2017-07-27 22:36:53 +01:00