From 0916598653c6192ce1d43717ec005bfd8baefc93 Mon Sep 17 00:00:00 2001 From: Kaifeng Wang Date: Wed, 4 Dec 2019 11:05:14 +0800 Subject: [PATCH] Add words on building image for other architecture Change-Id: I2ca2a574ba84f44dfbfa197d80c14ac0e4c59de2 --- doc/source/admin/dib.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/doc/source/admin/dib.rst b/doc/source/admin/dib.rst index 0ebc348..91ce37b 100644 --- a/doc/source/admin/dib.rst +++ b/doc/source/admin/dib.rst @@ -28,6 +28,14 @@ You can specify the base name of the target images: ironic-python-agent-builder -o my-ipa centos7 +You can specify the arch of the target image by setting ``ARCH`` environment +variable (default is amd64): + +.. code-block:: shell + + export ARCH=aarch64 + ironic-python-agent-builder -o my-ipa fedora + ... with diskimage-builder ~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -66,6 +74,15 @@ To use a specific branch of ironic-python-agent, use: export DIB_REPOREF_ironic_python_agent=origin/stable/queens +To build image for architectures other than amd64, you can either set the +``ARCH`` environment variable or use ``-a`` to specify the target +architecture: + +.. code-block:: shell + + disk-image-create -a arm64 -o ironic-python-agent \ + ironic-python-agent-ramdisk fedora + ISO Images ~~~~~~~~~~