X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plc.d%2Fpackages;h=f86bbf9477d50e2315627074a6d00d5eaa41ce15;hb=db6bfaa9ebfc50016de8ac9e8eb89fd8c2ab6009;hp=ad8a5d9f7f328b46016bd6f5e5f700a0622cf15a;hpb=6641c65727467ecc533f63effe9f19aa32c2230b;p=bootstrapfs.git diff --git a/plc.d/packages b/plc.d/packages index ad8a5d9..f86bbf9 100755 --- a/plc.d/packages +++ b/plc.d/packages @@ -44,8 +44,8 @@ case "$1" in type -p createrepo > /dev/null && have_createrepo="true" - ### copy vserver-PLDISTRO* and vserver-systemslices-PLDISTRO* - ### pacakges to each repository to be able to create different + ### symlink vserver-PLDISTRO* and vserver-systemslices-PLDISTRO* + ### packages to each repository to be able to create different ### flavours of vservers on nodes for repository1 in $repositories; do DISTRO=${PLC_FLAVOUR_SLICE_PLDISTRO} @@ -55,6 +55,9 @@ case "$1" in if [[ $(basename $repository1) == ${DISTRO}* ]] \ && [[ $(basename $repository2) == ${DISTRO}* ]] \ && [[ $repository1 != $repository2 ]] ; then + rm -rf $repository2/${VSERVER_PKG}* + rm -rf $repository2/${VSERVER_SYS_SLICES_PKG}* + ln -s $repository1/${VSERVER_PKG}* $repository2 ln -s $repository1/${VSERVER_SYS_SLICES_PKG}* $repository2 fi @@ -68,7 +71,7 @@ case "$1" in new_stamps= # is there a need to refresh yum metadata need_yum_arch= - need_createrepo= + need_createrepo=true # always run createrepo as links may change for vserver packages # right after installation, no package is present # but we still need to create index