summaryrefslogtreecommitdiffstats
path: root/installer/OpenSLX/OSExport/FileSystem/NFS.pm
diff options
context:
space:
mode:
authorOliver Tappe2008-02-06 16:22:04 +0100
committerOliver Tappe2008-02-06 16:22:04 +0100
commit21fe0bab9887e20506c11b4ac1d872ee4bd46148 (patch)
tree2fa768f5d0c6e4dc5e75641262f5402ba0927cc1 /installer/OpenSLX/OSExport/FileSystem/NFS.pm
parentAdded /dev/urandom in chroot (slxos-setup shell ...) (diff)
downloadcore-21fe0bab9887e20506c11b4ac1d872ee4bd46148.tar.gz
core-21fe0bab9887e20506c11b4ac1d872ee4bd46148.tar.xz
core-21fe0bab9887e20506c11b4ac1d872ee4bd46148.zip
* added the contents of the following dirs to the exclude filter, since
they do not make sense in the export: /media /mnt /proc /sys /tmp * added --delete-excluded to the rsync options in order to clean up anything that had been copied before git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1518 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/OpenSLX/OSExport/FileSystem/NFS.pm')
-rw-r--r--installer/OpenSLX/OSExport/FileSystem/NFS.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/installer/OpenSLX/OSExport/FileSystem/NFS.pm b/installer/OpenSLX/OSExport/FileSystem/NFS.pm
index e858f513..1c4f5fbf 100644
--- a/installer/OpenSLX/OSExport/FileSystem/NFS.pm
+++ b/installer/OpenSLX/OSExport/FileSystem/NFS.pm
@@ -147,7 +147,10 @@ sub _copyViaRsync
my $includeExcludeList = $self->_determineIncludeExcludeList();
vlog(1, _tr("using include-exclude-filter:\n%s\n", $includeExcludeList));
my $rsyncFH;
- open($rsyncFH, '|-', "rsync -av --delete --exclude-from=- $source/ $target")
+ open(
+ $rsyncFH, '|-',
+ "rsync -av --delete-excluded --exclude-from=- $source/ $target"
+ )
or die _tr("unable to start rsync for source '%s', giving up! (%s)",
$source, $!);
print $rsyncFH $includeExcludeList;