diff --git a/xCAT-server-2.0/lib/xcat/plugins/packimage.pm b/xCAT-server-2.0/lib/xcat/plugins/packimage.pm index 3bf557261..756b29004 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/packimage.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/packimage.pm @@ -191,15 +191,17 @@ sub copybootscript { chmod(0755,"$installroot/netboot/$osver/$arch/$profile/rootimg/etc/init.d/xcatpostinit"); # run chkconfig - my $chkcmd = "chroot $installroot/netboot/$osver/$arch/$profile/rootimg chkconfig --add xcatpostinit"; - - my $rc = system($chkcmd); - if ($rc) { - my $rsp; - push @{$rsp->{data}}, "Could not run the chkconfig command.\n"; - xCAT::MsgUtils->message("E", $rsp, $callback); - return 1; - } + #my $chkcmd = "chroot $installroot/netboot/$osver/$arch/$profile/rootimg chkconfig --add xcatpostinit"; + symlink "/etc/init.d/xcatpostinit","$installroot/netboot/$osver/$arch/$profile/rootimg/etc/rc3.d/S84xcatpostinit"; + symlink "/etc/init.d/xcatpostinit","$installroot/netboot/$osver/$arch/$profile/rootimg/etc/rc4.d/S84xcatpostinit"; + symlink "/etc/init.d/xcatpostinit","$installroot/netboot/$osver/$arch/$profile/rootimg/etc/rc5.d/S84xcatpostinit"; + #my $rc = system($chkcmd); + #if ($rc) { + #my $rsp; + # push @{$rsp->{data}}, "Could not run the chkconfig command.\n"; + # xCAT::MsgUtils->message("E", $rsp, $callback); + # return 1; + # } } else { my $rsp; push @{$rsp->{data}}, "Could not find the script $installroot/postscripts/xcatpostinit.\n"; diff --git a/xCAT-server-2.0/share/xcat/netboot/fedora/compute.ppc64.pkglist b/xCAT-server-2.0/share/xcat/netboot/fedora/compute.ppc64.pkglist index 530ec8d75..d9e339ac2 100644 --- a/xCAT-server-2.0/share/xcat/netboot/fedora/compute.ppc64.pkglist +++ b/xCAT-server-2.0/share/xcat/netboot/fedora/compute.ppc64.pkglist @@ -7,3 +7,4 @@ kernel.ppc64 busybox-anaconda openssh-server openssh-clients +wget diff --git a/xCAT/postscripts/remoteshell b/xCAT/postscripts/remoteshell index fa11955ec..692a94e94 100755 --- a/xCAT/postscripts/remoteshell +++ b/xCAT/postscripts/remoteshell @@ -8,9 +8,9 @@ if [ -r /etc/ssh/sshd_config ] then logger -t xcat "Install: setup /etc/ssh/sshd_config" cp /etc/ssh/sshd_config /etc/ssh/sshd_config.ORIG - perl -pi -e 's/^X11Forwarding .*$/X11Forwarding yes/' /etc/ssh/sshd_config - perl -pi -e 's/^KeyRegenerationInterval .*$/KeyRegenerationInterval 0/' /etc/ssh/sshd_config - perl -pi -e 's/(.*MaxStartups.*)/#\1/' /etc/ssh/sshd_config + sed -i 's/^X11Forwarding .*$/X11Forwarding yes/' /etc/ssh/sshd_config + sed -i 's/^KeyRegenerationInterval .*$/KeyRegenerationInterval 0/' /etc/ssh/sshd_config + sed -i 's/\(.*MaxStartups.*\)/#\1/' /etc/ssh/sshd_config echo "MaxStartups 1024" >>/etc/ssh/sshd_config echo "PasswordAuthentication no" >>/etc/ssh/sshd_config fi