Make it easier to add rsync arguments.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 21 Aug 2008 17:56:16 +0000 (17:56 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 21 Aug 2008 17:56:16 +0000 (17:56 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2755 94cd875c-1c1d-0410-91d2-eb244daf1a30

scripts/vserver-build
scripts/vserver-build.rsync

index ad47f44..72906da 100755 (executable)
@@ -72,7 +72,7 @@ Possible methods are:
                      -n <nfsroot> specifies the 'NFS' root explicitly
                      -d <fai_dir> specifies the location of the FAI profile
                      the -f option implies -n and -d are relative to the <fai_vserver>
-    rsync       ... -- [-d <distribution>] --source <source> [-o <rsync option>]*
+    rsync       ... -- [-d <distribution>] --source <source> [-- <rsync options>*]
                 ...  installs a guest by rsyncing from <source> to the guest root
     clone       ... -- [-d <distribution>] --source <source> [--exclude-from <exclude-list>]
                 ...  clones a guest by linking unified files and copying the rest
index 6fff5dd..0260834 100644 (file)
@@ -59,8 +59,7 @@ setup_writeInitialFstab
 
 test -z "$BUILD_INITPRE"  || "$BUILD_INITPRE" "$SETUP_CONFDIR"  "$UTIL_VSERVER_VARS"
 
-$_RSYNC "${OPTS[@]}" "$SOURCE"/ "$VDIR"/
-test -z "$1" || "$@"
+$_RSYNC "${OPTS[@]}" "$@" "$SOURCE"/ "$VDIR"/
 
 test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"