From 4c078768d3031c805c46651e2d47282ae95d4371 Mon Sep 17 00:00:00 2001 From: nott Date: Wed, 20 Jan 2010 16:37:01 +0000 Subject: [PATCH] Fix spot update code for AIX diskless images. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4997 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index 0bec082ee..940c139ad 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -3032,11 +3032,11 @@ sub update_inittab my $nimprime = xCAT::InstUtils->getnimprime(); chomp $nimprime; - my ($cmd, $rc, $entry); + my ($rc, $entry); my $spotinittab = "$spot_loc/lpp/bos/inst_root/etc/inittab"; - my $entry = "xcat:2:wait:/opt/xcat/xcataixpost\n"; + my $entry = "xcat:2:wait:/opt/xcat/xcataixpost"; # see if xcataixpost is already in the file my $cmd = "cat $spotinittab | grep xcataixpost"; @@ -3047,8 +3047,8 @@ sub update_inittab return 0; } - my $cmd = "echo $entry >>$spotinittab"; - my @result = xCAT::InstUtils->xcmd($callback, $subreq, "xdsh", $nimprime, $cmd, 1); + my $ecmd = qq~echo "$entry" >>$spotinittab~; + my @result = xCAT::InstUtils->xcmd($callback, $subreq, "xdsh", $nimprime, $ecmd, 1); if ($::RUNCMD_RC != 0) { my $rsp; @@ -3517,7 +3517,7 @@ sub updatespot { xCAT::MsgUtils->message("I", $rsp, $callback); } - my @result = xCAT::InstUtils->xcmd($callback, $subreq, "xdsh", $nimprime, $cmd, 1); + my @result = xCAT::InstUtils->xcmd($callback, $subreq, "xdsh", $nimprime, $cpcmd, 1); if ($::RUNCMD_RC != 0) { my $rsp;