[openstack-dev] diskimage-builder 01-override-yum-arch question

dmarlin at redhat.com dmarlin at redhat.com
Mon Nov 14 17:55:43 UTC 2016


I was looking at 01-override-yum-arch in diskimage-builder, and have a 
question.

Is the following code correct in git, or should $arch be written into 
/etc/dnf/vars/arch, similar to the yum path (for F22 and older) as shown 
below?

--- a/elements/rpm-distro/pre-install.d/01-override-yum-arch
+++ b/elements/rpm-distro/pre-install.d/01-override-yum-arch
@@ -28,7 +28,7 @@ fi
  if [[ $DISTRO_NAME == "fedora" && $DIB_RELEASE -ge 22 ]]; then
      mkdir -p /etc/dnf/vars
      echo $basearch > /etc/dnf/vars/basearch
-    echo $arch > /etc/dnf/vars/basearch
+    echo $arch > /etc/dnf/vars/arch
  else
      echo $basearch > /etc/yum/vars/basearch
      echo $arch > /etc/yum/vars/arch



Thank you,

d.marlin




More information about the OpenStack-dev mailing list