[lxc-devel] [PATCH] lxc-oracle: only create media repo when --baseurl is specified
Dwight Engen
dwight.engen at oracle.com
Wed Apr 9 19:20:21 UTC 2014
Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
---
templates/lxc-oracle.in | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/templates/lxc-oracle.in b/templates/lxc-oracle.in
index 773409d..d1718af 100644
--- a/templates/lxc-oracle.in
+++ b/templates/lxc-oracle.in
@@ -701,10 +701,12 @@ container_rootfs_create()
# if installing from a baseurl, create a .repo that the container
# can use to update to _latest from http://public-yum.oracle.com
- container_rootfs_repo_create \
- "$container_rootfs/etc/yum.repos.d/public-yum-"$latestL""$container_release_major".repo" \
- $latest_L""$container_release_major"_latest" \
- $yum_url"/repo/OracleLinux/"$latest_U""$container_release_major"/latest/$basearch" gpg
+ if [ -n "$baseurl" ]; then
+ container_rootfs_repo_create \
+ "$container_rootfs/etc/yum.repos.d/public-yum-"$latestL""$container_release_major".repo" \
+ $latest_L""$container_release_major"_latest" \
+ $yum_url"/repo/OracleLinux/"$latest_U""$container_release_major"/latest/$basearch" gpg
+ fi
# these distributions put the rpm database in a place the guest is
# not expecting it, so move it
--
1.8.5.3
More information about the lxc-devel
mailing list