diff options
Diffstat (limited to 'os-plugins/OpenSLX/OSPlugin/Engine.pm')
-rw-r--r-- | os-plugins/OpenSLX/OSPlugin/Engine.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/os-plugins/OpenSLX/OSPlugin/Engine.pm b/os-plugins/OpenSLX/OSPlugin/Engine.pm index 5488b4ac..c5e6a99f 100644 --- a/os-plugins/OpenSLX/OSPlugin/Engine.pm +++ b/os-plugins/OpenSLX/OSPlugin/Engine.pm @@ -627,6 +627,10 @@ sub _callChrootedFunctionForPlugin my $self = shift; my $function = shift; + # create os-setup engine here in order to block access to the vendor-OS + # via other processes (which could cause problems) + my $osSetupEngine = $self->_osSetupEngine(); + # bind-mount openslx basepath to /mnt/openslx of vendor-OS: my $basePath = $openslxConfig{'base-path'}; my $basePathInChroot = "$self->{'vendor-os-path'}/mnt/opt/openslx"; @@ -667,7 +671,7 @@ sub _callChrootedFunctionForPlugin }); # now let plugin install itself into vendor-OS - $self->_osSetupEngine()->callChrootedFunctionForVendorOS($function); + $osSetupEngine->callChrootedFunctionForVendorOS($function); return; } |