diff options
author | Oliver Tappe | 2008-02-06 16:22:04 +0100 |
---|---|---|
committer | Oliver Tappe | 2008-02-06 16:22:04 +0100 |
commit | 21fe0bab9887e20506c11b4ac1d872ee4bd46148 (patch) | |
tree | 2fa768f5d0c6e4dc5e75641262f5402ba0927cc1 /installer/OpenSLX/OSExport/FileSystem/NFS.pm | |
parent | Added /dev/urandom in chroot (slxos-setup shell ...) (diff) | |
download | core-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.pm | 5 |
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; |