]> git.proxmox.com Git - pve-container.git/commit
setup: fix using non-plugin methods
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 19 Nov 2022 17:12:29 +0000 (18:12 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 19 Nov 2022 17:12:36 +0000 (18:12 +0100)
commit6e8457d586a7db258d21bab9c144058a90a97efd
treed06378493b797a77682797bff93197a0a20a8673
parent23aeb400c8a6439cc3b21c01926f6afe74c9129d
setup: fix using non-plugin methods

ct_is_symlink and ct_readlink_recursive are not defined in
PVE::LXC::Setup::Plugin and thus not available for call in
PVE::LXC::Setup, thus it broke unmanaged CTs which does not descends
from the Base module, put from the abstract Plugin directly to avoid
touching its CTs at all (well, it's unmanaged)

We'd either need to add those symlink helpers to the abstract plugin
or, like we do now, add a new more general get_ct_init_path which
unmanaged can truthfully implement.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC/Setup.pm
src/PVE/LXC/Setup/Base.pm
src/PVE/LXC/Setup/Plugin.pm
src/PVE/LXC/Setup/Unmanaged.pm