Peter Kjellerstedt
6338bb1d12
systemd.bbclass: Make systemd_postinst run as intended
...
After the switch from using a systemctl written in Python to using the
official version of systemctl from the systemd project, the
systemd_postinst function has effectively not been executed during the
rootfs creation. The reason is that systemctl provided by
systemctl-native fails if run without arguments (as systemd_postinst
does):
Failed to connect to system scope bus via local transport: Operation
not permitted (consider using --machine=<user>@.host --user to connect
to bus of other user)
This is not seen in the logs since stderr is sent to /dev/null, and the
only way to tell that there is a problem is because systemd services
that are expected to be enabled aren't running.
The reason this has gone unnoticed is because systemd_handle_machine_id
in rootfs-postcommands.bbclass will call systemctl preset-all, which in
most cases will create the missing links to enable the systemd services.
This change effectively reverts commit
a52e66762c0c51918b1ba3d4622759637b6e920a (systemd.bbclass: update
command to check systemctl available) and instead only runs systemctl
without arguments (to determine that it can communicate with systemd)
when executed on target.
(From OE-Core rev: 6cb4239b412dc782f66728e47753c1a82cccf759)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com >
Signed-off-by: Steve Sakoman <steve@sakoman.com >
2025-09-22 12:21:23 -07:00
..
2024-01-18 10:15:58 +00:00
2022-08-12 15:27:17 +01:00
2025-03-18 11:25:36 +00:00
2024-10-11 15:57:44 +01:00
2024-07-26 12:28:42 +01:00
2022-08-12 15:27:17 +01:00
2023-10-30 08:50:46 +00:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2023-08-21 16:15:35 +01:00
2025-02-25 12:17:22 +00:00
2024-08-03 07:56:10 +01:00
2025-03-25 21:20:41 +00:00
2024-06-10 14:27:23 +01:00
2025-03-08 18:08:04 +00:00
2025-03-03 18:01:29 +00:00
2022-08-12 15:27:17 +01:00
2024-11-07 22:17:24 +00:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2024-12-05 17:07:10 +00:00
2024-11-23 14:44:54 +00:00
2024-07-26 12:28:42 +01:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2024-11-21 12:16:28 +00:00
2022-08-12 15:27:17 +01:00
2024-06-24 12:43:40 +01:00
2023-08-24 16:50:24 +01:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2024-12-23 11:41:38 +00:00
2023-09-20 23:51:11 +01:00
2023-01-26 22:22:53 +00:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2023-08-21 11:34:12 +01:00
2022-08-12 15:27:17 +01:00
2022-09-28 08:01:10 +01:00
2024-01-18 10:15:58 +00:00
2024-09-20 10:45:45 +01:00
2022-08-12 15:27:17 +01:00
2025-03-03 18:01:30 +00:00
2024-04-23 13:40:24 +01:00
2024-01-19 12:21:22 +00:00
2024-01-19 12:21:22 +00:00
2025-01-20 13:38:59 +00:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2024-01-12 11:54:05 +00:00
2025-02-01 13:42:34 +00:00
2022-08-12 15:27:17 +01:00
2025-01-21 23:09:33 +00:00
2025-02-10 13:03:57 +00:00
2023-06-29 11:28:32 +01:00
2023-09-09 22:14:41 +01:00
2022-08-12 15:27:17 +01:00
2024-04-04 14:05:03 +01:00
2022-08-12 15:27:17 +01:00
2025-03-09 20:10:06 +00:00
2025-03-08 18:08:04 +00:00
2023-03-22 13:53:29 +00:00
2023-06-29 11:28:32 +01:00
2025-03-11 11:20:34 +00:00
2022-08-12 15:27:17 +01:00
2024-03-26 17:10:51 +00:00
2024-11-28 12:27:11 +00:00
2022-08-12 15:27:17 +01:00
2025-01-27 15:47:11 +00:00
2025-03-11 11:20:34 +00:00
2023-07-25 15:27:33 +01:00
2022-08-12 15:27:17 +01:00
2024-02-29 10:26:13 +00:00
2024-10-25 15:37:10 +01:00
2022-08-12 15:27:17 +01:00
2023-07-25 15:27:33 +01:00
2024-06-11 11:41:33 +01:00
2024-01-18 10:15:58 +00:00
2023-03-08 10:21:05 +00:00
2024-02-23 14:29:03 +00:00
2025-02-11 11:44:19 +00:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2023-07-25 15:27:33 +01:00
2025-05-19 08:57:20 -07:00
2022-08-12 15:27:17 +01:00
2024-07-18 17:21:39 +01:00
2025-03-18 10:27:31 +00:00
2025-01-11 18:34:15 +00:00
2022-08-12 15:27:17 +01:00
2024-07-13 23:28:31 +01:00
2024-08-23 09:51:36 +01:00
2024-02-19 15:21:14 +00:00
2024-02-21 22:20:10 +00:00
2024-01-18 10:15:58 +00:00
2023-05-04 12:34:30 +01:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2025-02-10 13:03:57 +00:00
2025-01-25 11:30:31 +00:00
2022-08-12 15:27:17 +01:00
2024-06-27 13:03:34 +01:00
2022-08-12 15:27:17 +01:00
2024-05-21 12:08:04 +01:00
2025-01-14 11:57:52 +00:00
2024-08-29 21:58:19 +01:00
2024-12-17 11:41:52 +00:00
2024-10-25 15:04:30 +01:00
2025-02-01 13:42:34 +00:00
2023-05-05 11:07:25 +01:00
2024-08-15 14:51:55 +01:00
2023-06-02 14:41:50 +01:00
2023-12-17 19:07:21 +00:00
2024-11-12 23:54:35 +00:00
2024-11-21 12:16:28 +00:00
2022-08-12 15:27:17 +01:00
2025-02-01 13:42:34 +00:00
2023-07-25 15:27:33 +01:00
2022-08-12 15:27:17 +01:00
2025-01-11 18:34:15 +00:00
2024-07-04 22:56:15 +01:00
2022-08-12 15:27:17 +01:00
2024-01-18 10:15:58 +00:00
2023-07-10 11:36:34 +01:00
2025-03-09 20:10:06 +00:00
2023-09-09 22:14:41 +01:00
2025-02-01 13:20:45 +00:00
2025-09-09 09:30:07 -07:00
2025-02-01 13:42:34 +00:00
2024-08-23 09:12:38 +01:00
2025-02-01 13:42:34 +00:00
2025-02-18 12:04:03 +00:00
2025-02-01 13:42:34 +00:00
2024-05-31 16:58:36 +01:00
2024-10-15 11:47:24 +01:00
2022-08-12 15:27:17 +01:00
2023-09-26 10:35:28 +01:00
2022-08-12 15:27:17 +01:00
2025-09-22 12:21:23 -07:00
2024-12-12 13:22:08 +00:00
2025-06-20 09:21:27 -07:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2024-05-31 16:58:36 +01:00
2025-03-11 11:20:34 +00:00
2025-01-20 13:39:00 +00:00
2025-02-27 10:55:17 +00:00
2025-02-10 13:03:58 +00:00
2023-05-03 07:33:18 +01:00
2023-01-12 23:08:58 +00:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2024-03-01 09:31:10 +00:00
2024-01-12 11:54:05 +00:00