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:
parent
3f606c471a
commit
d44ba1dbdb
@ -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) {
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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#
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user