ostree multiarch support



Hi all,

So I am trying to figure out how from a release engineering perspective ostree 
and rpm-ostree are supposed to handle multiarch support.  take teh atomic host 
json file I ahd to make the following changes to make it work on arm

git diff
diff --git a/fedora-atomic-docker-host.json b/fedora-atomic-docker-host.json
index e818ec1..02caf9d 100644
--- a/fedora-atomic-docker-host.json
+++ b/fedora-atomic-docker-host.json
@@ -1,5 +1,5 @@
 {
-    "ref": "fedora-atomic/rawhide/x86_64/docker-host",
+    "ref": "fedora-atomic/rawhide/armhfp/docker-host",
 
     "repos": ["fedora-rawhide"],
 
@@ -31,8 +31,7 @@
                 "rpm-ostree", "lvm2",
                 "authconfig",
                 "btrfs-progs", "e2fsprogs", "xfsprogs",
-                "grub2", "grub2-efi", "ostree-grub2",
-                "efibootmgr", "shim",
+                "extlinux-bootloader",
                 "gnupg2",
                 "basesystem",
                 "python",


Ideally we would have the one config file that works for all arches, forking 
it for multiple arches is a road to failure.  you are likely going to miss one 
of the 5 or 6 config files when you need to change something.  I know that IBM 
has asked that we deliver Atomic host in Fedora for ppc64 and ppc64le in 
Fedora 25, I would like to figure out how it is supposed to work.  in my mind 
there is some packages that are arch only and the ref needs the yum/dnf 
basearch in it somewhere. 

To me the ref has two possible solutions, one we use a variable like we do for 
urls in yum/dnf  or two we have the different parts of the ref as arguments 
and the arch is added automatically.  something like "--product fedora-atomic 
--release rawhide --variant docker-host"

the packages could have arch specific sections 

"x86_64-packages": [ "ostree-grub2", "grub2", "grub2-efi", "shim", 
"efibootmgr"]

or we can move to comps groups and have non mandatory packages for the 
bootloaders, etc that are arch specifc. 

Dennis




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]