diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index a885d830d..aa3d72a6f 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -226,6 +226,7 @@ sub preprocess_updatenode 'v|version' => \$::VERSION, 'V|verbose' => \$::VERBOSE, 'F|sync' => \$::FILESYNC, + 'l|user:s' => \$::USER, 'f|snsync' => \$::SNFILESYNC, 'S|sw' => \$::SWMAINTENANCE, 's|sn' => \$::SETSERVER, @@ -1218,6 +1219,12 @@ sub updatenoderunps "$installdir/postscripts/xcatdsklspost $mode -m $snkey '$postscripts' --tftp $tftpdir --installdir $installdir --nfsv4 $nfsv4" ]; } + # if -l username input + if (defined($::USER)){ # need to add the -l username + unshift(@$args1, "$::USER"); + unshift(@$args1, "-l"); + } + if ($::VERBOSE) { @@ -1532,6 +1539,11 @@ sub updatenodesoftware "$cmd" ]; } + # if -l username input + if (defined($::USER)){ # need to add the -l username + unshift(@$args1, "$::USER"); + unshift(@$args1, "-l"); + } if ($::VERBOSE) {