use reboot in genesis instead of shutdown. Add a check for rsync service to make sure it's running.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16470 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2013-05-30 06:11:56 +00:00
parent 66f9824509
commit a5ec8dcc36
2 changed files with 13 additions and 0 deletions

View File

@ -1860,6 +1860,15 @@ sub mksysclone
}
}
# check systemimager-server-rsyncd to make sure it's running.
my $out = xCAT::Utils->runcmd("service systemimager-server-rsyncd status", -1);
if ($::RUNCMD_RC != 0) { # not running
my $rc = xCAT::Utils->startService("systemimager-server-rsyncd");
if ($rc != 0) {
return 1;
}
}
}
sub copycd
{

View File

@ -611,6 +611,10 @@ sub sysclone_getimg{
return 1;
}
# use reboot in genesis
my $masterscript = $sysclone_home . "/scripts" . "/$osimage.master";
my $rc = `sed -i "s/shutdown -r now/reboot -f/g" $masterscript`;
return 0;
}