From b074727be4f459773ea93a090abc1938d10476e1 Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 25 Jun 2009 18:16:23 +0000 Subject: [PATCH] remove -s flag git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3640 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/xdsh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/xCAT-client/bin/xdsh b/xCAT-client/bin/xdsh index 2cd882717..5ac09d5fe 100644 --- a/xCAT-client/bin/xdsh +++ b/xCAT-client/bin/xdsh @@ -426,7 +426,6 @@ sub parse_args_xdcp 'q|show-config' => \$options{'show-config'}, 'p|preserve' => \$options{'preserve'}, 'r|c|node-rcp=s' => \$options{'node-rcp'}, - 's' => \$options{'rsyncSN'}, 't|timeout=i' => \$options{'timeout'}, 'v|verify' => \$options{'verify'}, 'B|bypass' => \$options{'bypass'}, @@ -453,13 +452,18 @@ sub parse_args_xdcp xCAT::DSHCLI->show_dsh_config; exit 0; } - if ($options{'rsyncSN'}) + + # if rsyncing to a node, not the root image + # then must sync to service node first, if using hierarchy + # These env variable are used in xdsh.pm preprocessing + if ((!($options{'rootimg'})) && ($options{'File'})) { - $ENV{'RSYNCSN'} = "yes"; # rsync file to SN + $ENV{'RSYNCSN'} = "yes"; #rsync file to SN, if exist } + if ($options{'File'}) { - $ENV{'DSH_RSYNC_FILE'} = $options{'File'} ; # rsync file + $ENV{'DSH_RSYNC_FILE'} = $options{'File'}; # rsync file } if ($options{'version'}) {