[lxc-devel] [PATCH] lxc-oracle: only create media repo when --baseurl is specified
Serge Hallyn
serge.hallyn at ubuntu.com
Wed Apr 9 19:29:12 UTC 2014
Quoting Dwight Engen (dwight.engen at oracle.com):
> Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.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
>
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel
More information about the lxc-devel
mailing list