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

dmarlin at redhat.com dmarlin at redhat.com
Tue Nov 15 18:38:55 UTC 2016


On 11/14/2016 11:55 AM, dmarlin at redhat.com wrote:
>
> 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
>
>

In addition, I have created a small patch against git master (attached) 
that will permit me to run disk-image-creator native on Fedora 25 Beta 
AArch64, tested using the following command:

   DIB_RELEASE=24 disk-image-create -o test.qcow2 fedora-minimal

Please let me know if this approach is acceptable, or if you have 
suggestions for improvements.


Thank you,

d.marlin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: diskimage-builder-fedora-aarch64.patch
Type: text/x-patch
Size: 1482 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20161115/8e356f62/attachment.bin>


More information about the OpenStack-dev mailing list