diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2016-05-13 23:37:24 +0200 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2016-05-16 12:02:33 +0000 |
commit | e6cb9ac354e25a9bdc6d99d34ca7bbf117015ed1 (patch) | |
tree | 3f0af5855a090a1aa21cdb98b33308222e1a4f21 /patches | |
parent | 0371a41f7e84f157bd84e8ee627563180c40d9d8 (diff) |
Rebase: p/fuel-main: Drop armband RPM repo patch.
Since Fuel 9.0 drops containers on Fuel master (see spec
"Get rid of docker containers on the master node"), we
no longer need to add the armband RPM repo config to the
cobbler container for cobbler-grub-aarch64.
[1] https://blueprints.launchpad.net/fuel/+spec/
get-rid-docker-containers
Change-Id: Ia23482226e81f83c1eb50c239346a3686206d5bf
Diffstat (limited to 'patches')
-rw-r--r-- | patches/fuel-main/0004-FIXME-cobbler-setup.sh-Keep-extra-RPM-repos.patch | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/patches/fuel-main/0004-FIXME-cobbler-setup.sh-Keep-extra-RPM-repos.patch b/patches/fuel-main/0004-FIXME-cobbler-setup.sh-Keep-extra-RPM-repos.patch deleted file mode 100644 index e3dceeda..00000000 --- a/patches/fuel-main/0004-FIXME-cobbler-setup.sh-Keep-extra-RPM-repos.patch +++ /dev/null @@ -1,50 +0,0 @@ -From: Alexandru Avadanii <Alexandru.Avadanii@enea.com> -Date: Thu, 28 Apr 2016 01:41:45 +0200 -Subject: [PATCH] FIXME: cobbler: setup.sh: Keep extra RPM repos. - -cobbler-grub-aarch64 (arm64 specific loader) is currently -distributed and added to the cobbler docker container during -ISO build using EXTRA_RPM_REPOS envvar mechanism. - -However, since this package installs files in a mounted location, -its contents are not persistent, requiring a test and eventual -forced reinstall during container start. - -This, of course, requires the package to be available at that point, -which is not currently possible, as we remove the extra RPM repository -entry from yum config at the end of container build. - -Hacky temporary workaround: -Re-add extra RPM yum config after container is set up, only for cobbler. - -TODO: This patch should be dropped once cobbler-grub-aarch64 RPM -package gets upstreamed. ---- - docker/cobbler/setup.sh | 14 ++++++++++++++ - 1 file changed, 14 insertions(+) - -diff --git a/docker/cobbler/setup.sh b/docker/cobbler/setup.sh -index 90627a8..508eaa4 100644 ---- a/docker/cobbler/setup.sh -+++ b/docker/cobbler/setup.sh -@@ -80,6 +80,20 @@ baseurl=file:/var/www/nailgun/mos-centos/x86_64 - gpgcheck=0 - EOF - -+## FIXME(armband): Add extra RPM repository in Cobbler container -+# Normally, extra RPM repos are not re-added post-build, but we -+# need cobbler-grub-aarch64 during each container start. -+ -+for repo in ${EXTRA_RPM_REPOS}; do -+ IFS=, read -a repo_args <<< "$repo" -+ cat << EOF >> /etc/yum.repos.d/nailgun.repo -+ -+[extra-repo-${repo_args[0]}] -+name=MOS Extra Repo ${repo_args[0]} -+baseurl=file:/var/www/nailgun/extra-repos/${repo_args[0]} -+gpgcheck=0 -+EOF -+done - yum clean all - - |