Commit 30ecf669 by Dwight Engen Committed by Serge Hallyn

lxc-oracle: only create media repo when --baseurl is specified

parent c937991e
...@@ -701,10 +701,12 @@ container_rootfs_create() ...@@ -701,10 +701,12 @@ container_rootfs_create()
# if installing from a baseurl, create a .repo that the container # if installing from a baseurl, create a .repo that the container
# can use to update to _latest from http://public-yum.oracle.com # can use to update to _latest from http://public-yum.oracle.com
container_rootfs_repo_create \ if [ -n "$baseurl" ]; then
"$container_rootfs/etc/yum.repos.d/public-yum-"$latestL""$container_release_major".repo" \ container_rootfs_repo_create \
$latest_L""$container_release_major"_latest" \ "$container_rootfs/etc/yum.repos.d/public-yum-"$latestL""$container_release_major".repo" \
$yum_url"/repo/OracleLinux/"$latest_U""$container_release_major"/latest/$basearch" gpg $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 # these distributions put the rpm database in a place the guest is
# not expecting it, so move it # not expecting it, so move it
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment