Peter Kjellerstedt
46455d3025
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: 5b86efb5c9ca782fd0f8ff306f82583ec1e5e909)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com >
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com >
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org >
2025-09-11 11:31:57 +01:00
..
2024-01-18 10:15:58 +00:00
2022-08-12 15:27:17 +01:00
2025-09-08 18:02:40 +01:00
2025-06-20 12:07:26 +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-07-21 23:00:18 +01: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
2025-06-09 17:43:41 +01:00
2025-06-16 22:26:38 +01:00
2024-11-21 12:16:28 +00:00
2022-08-12 15:27:17 +01:00
2025-06-20 12:07:26 +01:00
2025-06-20 12:07:26 +01:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2025-07-07 22:12:50 +01:00
2025-04-23 09:47:42 +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
2025-04-23 09:47:42 +01:00
2022-09-28 08:01:10 +01:00
2024-01-18 10:15:58 +00:00
2025-09-08 18:02:39 +01:00
2025-07-01 08:49:37 +01:00
2022-08-12 15:27:17 +01:00
2025-03-03 18:01:30 +00:00
2025-08-21 10:29:56 +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
2025-09-08 18:02:39 +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
2025-04-23 09:47:42 +01:00
2025-06-24 13:53:23 +01: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
2025-06-26 11:02:34 +01:00
2022-08-12 15:27:17 +01:00
2025-05-12 22:01:56 +01:00
2025-05-01 14:22:53 +01:00
2023-03-22 13:53:29 +00:00
2023-06-29 11:28:32 +01:00
2025-06-05 11:02:21 +01:00
2025-09-08 18:02:40 +01:00
2022-08-12 15:27:17 +01:00
2025-06-12 11:03:43 +01:00
2025-06-05 11:02:22 +01:00
2025-06-05 11:02:21 +01:00
2025-06-20 12:07:26 +01:00
2025-07-07 22:12:50 +01:00
2025-07-03 10:40:17 +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
2025-04-23 09:47:42 +01:00
2024-02-23 14:29:03 +00:00
2025-05-08 10:28:18 +01: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-08 10:28:19 +01:00
2022-08-12 15:27:17 +01:00
2024-07-18 17:21:39 +01:00
2025-08-12 10:05:11 +01:00
2025-08-12 10:05:11 +01:00
2022-08-12 15:27:17 +01:00
2024-07-13 23:28:31 +01:00
2025-04-10 11:05:34 +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
2025-04-23 09:47:42 +01:00
2022-08-12 15:27:17 +01:00
2025-09-01 23:07:06 +01:00
2025-07-03 10:40:16 +01:00
2022-08-12 15:27:17 +01:00
2025-09-08 18:02:40 +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
2025-06-20 12:07:26 +01: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
2025-08-04 18:04:03 +01:00
2025-08-04 18:04:03 +01:00
2025-08-04 18:04:03 +01:00
2025-08-04 18:04:03 +01:00
2025-08-04 18:04:03 +01:00
2025-08-07 12:11:15 +01:00
2025-08-04 18:04:03 +01:00
2025-02-01 13:42:34 +00:00
2023-07-25 15:27:33 +01:00
2025-08-07 12:11:15 +01:00
2025-05-01 14:22:54 +01:00
2025-08-06 22:32:42 +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-08 18:02:40 +01:00
2025-02-01 13:42:34 +00:00
2024-08-23 09:12:38 +01:00
2025-07-31 10:48:35 +01:00
2025-02-18 12:04:03 +00:00
2025-07-31 10:48:35 +01: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-11 11:31:57 +01:00
2025-07-10 10:47:30 +01:00
2025-05-15 10:55:26 +01:00
2025-07-01 08:49:37 +01:00
2022-08-12 15:27:17 +01:00
2022-08-12 15:27:17 +01:00
2025-08-12 10:05:11 +01:00
2025-06-23 22:13:08 +01:00
2025-01-20 13:39:00 +00:00
2025-06-19 21:54:43 +01:00
2025-04-17 11:03:22 +01:00
2025-06-05 21:19:12 +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