]> git.proxmox.com Git - pve-container.git/blobdiff - src/PVE/LXC/Setup.pm
setup: protected_call: the plugin is not required
[pve-container.git] / src / PVE / LXC / Setup.pm
index edf3734f7569eaf7fb322bcaee46cc193a24b059..738507a693694300553d52ece67e1aa74b3a4811 100644 (file)
@@ -97,8 +97,6 @@ sub new {
 sub protected_call {
     my ($self, $sub) = @_;
 
-    die "internal error" if !$self->{plugin};
-
     # avoid recursion:
     return $sub->() if $self->{in_chroot};
 
@@ -116,7 +114,6 @@ sub protected_call {
        close($res_in);
        # avoid recursive forks
        $self->{in_chroot} = 1;
-       $self->{plugin}->{in_chroot} = 1;
        eval {
            chroot($rootdir) or die "failed to change root to: $rootdir: $!\n";
            chdir('/') or die "failed to change to root directory\n";