From b18a87c608ca7cd94b38f34ba8d6aabe4ac9b6c1 Mon Sep 17 00:00:00 2001 From: Sinny Kumari Date: Feb 21 2018 09:02:49 +0000 Subject: Enable Atomic, Cloud and Container composes on s390x in f28 Signed-off-by: Sinny Kumari --- diff --git a/fedora.conf b/fedora.conf index e5d9f5f..263f105 100644 --- a/fedora.conf +++ b/fedora.conf @@ -285,7 +285,7 @@ image_build = { 'kickstart': 'fedora-docker-base.ks', 'distro': 'Fedora-22', 'disk_size': 5, - 'arches': ['armhfp', 'aarch64', 'ppc64le', 'x86_64'], + 'arches': ['armhfp', 'aarch64', 'ppc64le', 's390x', 'x86_64'], 'repo': 'Everything', 'install_tree_from': 'Everything', 'subvariant': 'Container_Base', @@ -305,7 +305,7 @@ image_build = { 'kickstart': 'fedora-docker-base-minimal.ks', 'distro': 'Fedora-22', 'disk_size': 5, - 'arches': ['armhfp', 'aarch64', 'ppc64le', 'x86_64'], + 'arches': ['armhfp', 'aarch64', 'ppc64le', 's390x', 'x86_64'], 'repo': 'Everything', 'install_tree_from': 'Everything', 'subvariant': 'Container_Minimal_Base', @@ -327,11 +327,11 @@ image_build = { 'kickstart': 'fedora-cloud-base.ks', 'distro': 'Fedora-22', 'disk_size': 4, - 'arches': ['aarch64', 'ppc64', 'ppc64le', 'x86_64'], + 'arches': ['aarch64', 'ppc64', 'ppc64le', 's390x', 'x86_64'], 'repo': 'Cloud', 'install_tree_from': 'Cloud', 'subvariant': 'Cloud_Base', - 'failable': ['aarch64', 'ppc64', 'ppc64le'], + 'failable': ['aarch64', 'ppc64', 'ppc64le', 's390x'], } }, { @@ -355,7 +355,7 @@ image_build = { 'kickstart': 'fedora-atomic.ks', 'distro': 'Fedora-22', 'disk_size': 6, - 'arches': ['aarch64', 'ppc64le', 'x86_64'], + 'arches': ['aarch64', 'ppc64le', 's390x', 'x86_64'], 'install_tree_from': 'Cloud', 'subvariant': 'Atomic', 'failable': ['*'], @@ -735,6 +735,15 @@ ostree = [ "repo": "Everything", "ostree_repo": "/mnt/koji/compose/atomic/28/", 'failable': ['*'], + }, + "s390x": { + "version": "!OSTREE_VERSION_FROM_LABEL_DATE_TYPE_RESPIN", + "treefile": "fedora-atomic-host.json", + "config_url": "https://pagure.io/fedora-atomic.git", + "config_branch": "f28", + "repo": "Everything", + "ostree_repo": "/mnt/koji/compose/atomic/28/", + 'failable': ['*'], } }), ("^ostree$", { @@ -802,6 +811,23 @@ ostree_installer = [ 'template_repo': 'https://pagure.io/fedora-lorax-templates.git', 'template_branch': 'f28', 'failable': ['*'], + }, + "s390x": { + "repo": "Everything", + "release": None, + "rootfs_size": "4", + "add_template": ["ostree-based-installer/lorax-configure-repo.tmpl", + "ostree-based-installer/lorax-embed-repo.tmpl"], + "add_template_var": [ + "ostree_install_repo=https://kojipkgs.fedoraproject.org/compose/atomic/28/", + "ostree_update_repo=https://kojipkgs.fedoraproject.org/atomic/28/", + "ostree_osname=fedora-atomic", + "ostree_install_ref=fedora/28/s390x/atomic-host", + "ostree_update_ref=fedora/28/s390x/atomic-host", + ], + 'template_repo': 'https://pagure.io/fedora-lorax-templates.git', + 'template_branch': 'f28', + 'failable': ['*'], } }), ("^WorkstationOstree$", { diff --git a/variants-fedora.xml b/variants-fedora.xml index 4e906e7..54363d5 100644 --- a/variants-fedora.xml +++ b/variants-fedora.xml @@ -6,6 +6,7 @@ aarch64 x86_64 ppc64le + s390x @@ -14,6 +15,7 @@ i386 ppc64 ppc64le + s390x x86_64 @@ -23,6 +25,7 @@ armhfp ppc64 ppc64le + s390x x86_64 @@ -144,6 +147,7 @@ i386 ppc64 ppc64le + s390x x86_64