changed install templates to use absolute path for the #INCLUDE# section

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3348 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2009-05-11 20:46:03 +00:00
parent 3f606c471a
commit d44ba1dbdb
33 changed files with 75 additions and 71 deletions

View File

@ -54,6 +54,10 @@ sub subvars {
die "Unable to identify master for $node";
}
$ENV{XCATMASTER}=$master;
#replace the env with the right value so that correct include files can be found
$inc =~ s/#ENV:([^#]+)#/envvar($1)/eg;
#FIRST, do *all* includes, recursive and all
my $doneincludes=0;
while (not $doneincludes) {

View File

@ -178,6 +178,6 @@ openssh-server
util-linux
compat-libstdc++-33
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh#

View File

@ -172,6 +172,6 @@ openssh-server
util-linux
compat-libstdc++-33
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh#

View File

@ -175,6 +175,6 @@ openssh-server
util-linux
compat-libstdc++-33
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh.iscsi#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh.iscsi#

View File

@ -176,6 +176,6 @@ openssh-server
util-linux
compat-libstdc++-33
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh#

View File

@ -167,6 +167,6 @@ bzip2
binutils
openssh-server
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh#

View File

@ -165,6 +165,6 @@ bzip2
binutils
openssh-server
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh#

View File

@ -167,6 +167,6 @@ bzip2
binutils
openssh-server
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh#

View File

@ -166,6 +166,6 @@ bzip2
binutils
openssh-server
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh#

View File

@ -167,6 +167,6 @@ gdb
binutils
openssh-server
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh.iscsi#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh.iscsi#

View File

@ -166,6 +166,6 @@ gdb
binutils
openssh-server
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh.iscsi#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh.iscsi#

View File

@ -168,6 +168,6 @@ gdb
binutils
openssh-server
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh.iscsi#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh.iscsi#

View File

@ -167,6 +167,6 @@ gdb
binutils
openssh-server
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh.iscsi#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh.iscsi#

View File

@ -168,6 +168,6 @@ binutils
openssh-server
vsftpd
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh#

View File

@ -166,6 +166,6 @@ binutils
openssh-server
vsftpd
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh#

View File

@ -169,6 +169,6 @@ binutils
openssh-server
vsftpd
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh#

View File

@ -167,6 +167,6 @@ binutils
openssh-server
vsftpd
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh#

View File

@ -175,6 +175,6 @@ openssh-server
util-linux
compat-libstdc++-33
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh#

View File

@ -173,6 +173,6 @@ openssh-server
util-linux
compat-libstdc++-33
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh#

View File

@ -174,6 +174,6 @@ openssh-server
util-linux
compat-libstdc++-33
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh#

View File

@ -176,6 +176,6 @@ openssh-server
util-linux
compat-libstdc++-33
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh.iscsi#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh.iscsi#

View File

@ -175,6 +175,6 @@ openssh-server
util-linux
compat-libstdc++-33
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh.iscsi#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh.iscsi#

View File

@ -153,6 +153,6 @@ openssh-server
util-linux
screen
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh#

View File

@ -176,6 +176,6 @@ openssh-server
util-linux
compat-libstdc++-33
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh#

View File

@ -174,6 +174,6 @@ openssh-server
util-linux
compat-libstdc++-33
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh#

View File

@ -176,6 +176,6 @@ openssh-server
util-linux
compat-libstdc++-33
%pre
#INCLUDE:../scripts/pre.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh#
%post
#INCLUDE:../scripts/post.rh#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh#

View File

@ -79,9 +79,9 @@
</routing>
</networking>
<scripts>
#INCLUDE:../scripts/pre.sles#
#INCLUDE:../scripts/chroot.sles#
#INCLUDE:../scripts/post.sles#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.sles#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/chroot.sles#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.sles#
</scripts>
</configure>
</profile>

View File

@ -77,9 +77,9 @@
</routing>
</networking>
<scripts>
#INCLUDE:../scripts/pre.sles#
#INCLUDE:../scripts/chroot.sles#
#INCLUDE:../scripts/post.sles11#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.sles#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/chroot.sles#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.sles11#
</scripts>
</configure>
</profile>

View File

@ -78,9 +78,9 @@
</routing>
</networking>
<scripts>
#INCLUDE:../scripts/pre.sles#
#INCLUDE:../scripts/chroot.sles#
#INCLUDE:../scripts/post.sles#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.sles#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/chroot.sles#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.sles11#
</scripts>
</configure>
</profile>

View File

@ -90,9 +90,9 @@
</routing>
</networking>
<scripts>
#INCLUDE:../scripts/pre.sles#
#INCLUDE:../scripts/chroot.sles.iscsi#
#INCLUDE:../scripts/post.sles.iscsi#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.sles#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/chroot.sles.iscsi#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.sles.iscsi#
</scripts>
</configure>
</profile>

View File

@ -89,9 +89,9 @@
</routing>
</networking>
<scripts>
#INCLUDE:../scripts/pre.sles#
#INCLUDE:../scripts/chroot.sles#
#INCLUDE:../scripts/post.sles11.iscsi#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.sles#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/chroot.sles#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.sles11.iscsi#
</scripts>
</configure>
</profile>

View File

@ -90,9 +90,9 @@
</routing>
</networking>
<scripts>
#INCLUDE:../scripts/pre.sles#
#INCLUDE:../scripts/chroot.sles#
#INCLUDE:../scripts/post.sles11#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.sles#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/chroot.sles#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.sles11#
</scripts>
</configure>
</profile>

View File

@ -135,9 +135,9 @@
</routing>
</networking>
<scripts>
#INCLUDE:../scripts/pre.sles#
#INCLUDE:../scripts/chroot.sles#
#INCLUDE:../scripts/post.sles#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.sles#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/chroot.sles#
#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.sles#
</scripts>
</configure>
</profile>