-Have remoteshell no longer call perl
-Include wget for fedora ppc image -Change packimage to not chroot and attempt chkconfig, use alternate way git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1316 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
816ec69016
commit
f5287bff89
@ -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";
|
||||
|
@ -7,3 +7,4 @@ kernel.ppc64
|
||||
busybox-anaconda
|
||||
openssh-server
|
||||
openssh-clients
|
||||
wget
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user