From 2d39a674936039120dd67d2665765334b0a44dcd Mon Sep 17 00:00:00 2001 From: mxi1 Date: Thu, 10 Jun 2010 09:43:06 +0000 Subject: [PATCH] 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 --- xCAT-server/share/xcat/netboot/rh/genimage | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/netboot/rh/genimage b/xCAT-server/share/xcat/netboot/rh/genimage index 100dc2616..d99c788a8 100755 --- a/xCAT-server/share/xcat/netboot/rh/genimage +++ b/xCAT-server/share/xcat/netboot/rh/genimage @@ -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/");