]> git.proxmox.com Git - pve-container.git/commit
fix #4192: revamp check for systemd version
authorLeo Nunner <l.nunner@proxmox.com>
Thu, 15 Sep 2022 11:52:28 +0000 (13:52 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 8 Nov 2022 17:17:26 +0000 (18:17 +0100)
commit917f7ae3dd0cdc6e3bb97832315a3f5c170c6ac7
tree38fcbd2667b6500b4ef1437943ed6306f11e1a06
parent666e7ea2dffbcbe13dfb3858a3898dd085654a3c
fix #4192: revamp check for systemd version

Instead of iterating through several folders, it might just be easier to
check the objdump output of /sbin/init and getting the version from there.
Resolving the /sbin/init symlink happens inside the chroot, but the
objdump from the host system is used, as to not run any untrusted
executables.

Signed-off-by: Leo Nunner <l.nunner@proxmox.com>
src/PVE/LXC/Setup.pm
src/PVE/LXC/Setup/Alpine.pm
src/PVE/LXC/Setup/Base.pm
src/PVE/LXC/Setup/Devuan.pm
src/PVE/LXC/Setup/Plugin.pm
src/PVE/LXC/Setup/Unmanaged.pm