for the redhat genimage, add "xcatdsklspost" to the initrd.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6419 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2010-06-10 09:43:06 +00:00
parent 414e1bdbe9
commit 2d39a67493

View File

@ -969,7 +969,7 @@ EOMS
}
}
# add rsync for statelite
foreach ("bin/cpio","sbin/nash","sbin/busybox.anaconda","sbin/rmmod","sbin/mount.nfs","/usr/bin/rsync") {
foreach ("bin/cpio","sbin/nash","sbin/busybox.anaconda","sbin/rmmod", "bin/bash", "usr/sbin/chroot", "sbin/mount.nfs","/usr/bin/rsync") {
getlibs($_);
push @filestoadd,$_;
}
@ -1052,6 +1052,15 @@ sub isnetdriver {
sub postscripts { # TODO: customized postscripts
generic_post();
if ($mode eq "statelite") {
if( ! -d "$rootimg_dir/opt/xcat/") {
mkdir "$rootimg_dir/opt/xcat/";
}
copy ("$installroot/postscripts/xcatdsklspost", "$rootimg_dir/opt/xcat/");
chmod '0755', "$rootimg_dir/opt/xcat/xcatdsklspost";
}
if (-d "$installroot/postscripts/hostkeys") {
for my $key (<$installroot/postscripts/hostkeys/*key>) {
copy ($key,"$rootimg_dir/etc/ssh/");