[pve-devel] [PATCH container 2/8] setup: protected_call: the plugin is not required
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Aug 1 11:28:53 CEST 2017
From: Wolfgang Bumiller <w.bumiller at proxmox.com>
we don't use this anywhere where this would be the case
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
src/PVE/LXC/Setup.pm | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/PVE/LXC/Setup.pm b/src/PVE/LXC/Setup.pm
index edf3734..738507a 100644
--- a/src/PVE/LXC/Setup.pm
+++ b/src/PVE/LXC/Setup.pm
@@ -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";
--
2.11.0
More information about the pve-devel
mailing list