summaryrefslogtreecommitdiffstats
path: root/installer/OpenSLX/OSSetup/Engine.pm
diff options
context:
space:
mode:
Diffstat (limited to 'installer/OpenSLX/OSSetup/Engine.pm')
-rw-r--r--installer/OpenSLX/OSSetup/Engine.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/installer/OpenSLX/OSSetup/Engine.pm b/installer/OpenSLX/OSSetup/Engine.pm
index 47ba9b3c..b4dab037 100644
--- a/installer/OpenSLX/OSSetup/Engine.pm
+++ b/installer/OpenSLX/OSSetup/Engine.pm
@@ -475,7 +475,9 @@ sub removeVendorOS
0,
_tr("removing vendor-OS folder '%s'...", $self->{'vendor-os-path'})
);
- if (system("rm -r $self->{'vendor-os-path'}")) {
+ if (system(
+ "find $self->{'vendor-os-path'} -xdev -depth -print0 | xargs -0 rm -r"
+ )) {
vlog(
0,
_tr("* unable to remove vendor-OS '%s'!", $self->{'vendor-os-path'})