Files
poky/meta/recipes-core
Xiangyu Chen e31be0b0e6 systemd-systemctl: fix dead loop when multi services enable each other
libvirt has added a feature that all sockets for a service being enabled when a single
one of them is enabled since 9.9.x[1], it likes serviceA enable serviceB, serviceB enable
serviceA, that cause our systemctl script trap into a dead loop in postinstall stage,
the error message as below:

Traceback (most recent call last):
  File "/usr/lib/python3.8/pathlib.py", line 722, in __str__
    return self._str
AttributeError: _str

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "recipe-sysroot-native/usr/bin/systemctl", line 255, in enable
    SystemdUnit(self.root, also).enable(unit)
  File "recipe-sysroot-native/usr/bin/systemctl", line 255, in enable
    SystemdUnit(self.root, also).enable(unit)
  File "recipe-sysroot-native/usr/bin/systemctl", line 255, in enable
    SystemdUnit(self.root, also).enable(unit)
  [Previous line repeated 988 more times]
......
RecursionError: maximum recursion depth exceeded while calling a Python object

Here using an array to record the services which has been enabled to filter the duplicates.

Ref:
[1] 826931e95a

(From OE-Core rev: 4c45f975310184a773b25b8e7d7ef50fba2f7bd6)

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-21 22:20:10 +00:00
..
2024-01-21 12:27:12 +00:00
2024-01-07 12:24:57 +00:00
2024-02-19 15:07:53 +00:00
2024-02-08 23:14:51 +00:00
2023-04-27 14:41:31 +01:00
2023-12-06 22:55:49 +00:00
2023-12-23 08:46:00 +00:00
2024-01-19 00:16:42 +00:00
2022-11-08 22:47:16 +00:00
2024-01-21 12:27:12 +00:00
2023-05-05 11:07:26 +01:00
2022-11-15 09:38:37 +00:00
2023-09-26 10:35:27 +01:00
2023-12-23 08:46:00 +00:00
2024-02-16 15:14:26 +00:00