Changeset 2644
- Timestamp:
- 12/19/07 15:28:40 (1 year ago)
- Files:
-
- trunk/scripts/vserver-build (modified) (1 diff)
- trunk/scripts/vserver-build.clone (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/scripts/vserver-build
r2468 r2644 75 75 rsync ... -- [-d <distribution>] --source <source> [-o <rsync option>]* 76 76 ... installs a guest by rsyncing from <source> to the guest root 77 clone ... -- [-d <distribution>] --source <source> 77 clone ... -- [-d <distribution>] --source <source> [--exclude-from <exclude-list>] 78 78 ... clones a guest by linking unified files and copying the rest 79 79 trunk/scripts/vserver-build.clone
r2494 r2644 16 16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 17 18 tmp=$(getopt -o '+d:s:o: ' --long debug,pkgmgmt,source: -n "$0" -- "$@") || exit 118 tmp=$(getopt -o '+d:s:o:X:' --long debug,pkgmgmt,source:,exclude-from: -n "$0" -- "$@") || exit 1 19 19 eval set -- "$tmp" 20 20 … … 24 24 use_pkgmgmt= 25 25 SOURCE= 26 EXCLUDES= 26 27 while true; do 27 28 case "$1" in … … 30 31 --pkgmgmt) use_pkgmgmt=1;; 31 32 -s|--source) SOURCE=$2; shift;; 33 -X|--exclude-from) 34 EXCLUDES=$2; shift;; 32 35 --) shift; break ;; 33 36 *) echo "vserver-build.clone: internal error: unrecognized option '$1'" >&2 … … 64 67 test -z "$BUILD_INITPRE" || "$BUILD_INITPRE" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS" 65 68 66 $_VCLONE "$SOURCE"/ "$VDIR"/ 69 $_VCLONE ${SETUP_CONTEXT:+--xid "$SETUP_CONTEXT"} \ 70 ${EXCLUDES:+--exclude-from "$EXCLUDES"} \ 71 "$SOURCE"/ "$VDIR"/ 67 72 68 73 test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
