]> git.proxmox.com Git - pve-manager.git/commit
pve7to8: Improve systemd unified cgroupv2 support check
authorChristian Ebner <c.ebner@proxmox.com>
Mon, 12 Jun 2023 10:31:13 +0000 (12:31 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Jun 2023 14:36:23 +0000 (16:36 +0200)
commit591f411f729e2f9c2f1fd45540a4d777c16b3245
tree1cf3447bbf1f8e39f43576f47a8abf23ed53c7b1
parent0038166cc57986f560699205f2889a18124b4582
pve7to8: Improve systemd unified cgroupv2 support check

Checking /lib/systemd if it is present and a directory is not enough, as
the shared object file used to check the version might nevertheless be
located at /usr/lib/systemd, or under /usr/lib/x86_64-linux-gnu/systemd.
So check also the latter paths, if the former returned no match.

Further, Arch Linux appends the minor version and release version to the
filename, so include that in the regex as well.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
PVE/CLI/pve7to8.pm