[Libosinfo] [PATCH] rhel: set a volume size for atomic 7.0 ISO image

Daniel P. Berrangé berrange at redhat.com
Fri Mar 16 13:15:21 UTC 2018


All the atomic ISO images have the same systemd-id and volume-id, so the
only way to distinguish them is based on volume size. The 7.1 and 7.2
media have a volume-size recorded, but the 7.0 media does not.

Currently we load entities in the order in which the filesystem returns
them from readdir(). If we're unlucky this can mean when matching media,
we'll match a 7.1 or 7.2 ISO against the 7.0 media by mistake.

Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
 data/os/redhat.com/rhel-atomic-7.0.xml.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/data/os/redhat.com/rhel-atomic-7.0.xml.in b/data/os/redhat.com/rhel-atomic-7.0.xml.in
index cb9434e..5db6efa 100644
--- a/data/os/redhat.com/rhel-atomic-7.0.xml.in
+++ b/data/os/redhat.com/rhel-atomic-7.0.xml.in
@@ -22,6 +22,7 @@
       <iso>
         <system-id>LINUX</system-id>
         <volume-id>RHEL.*Atomic.*7 x86_64.*</volume-id>
+        <volume-size>750313472</volume-size>
       </iso>
       <kernel>isolinux/vmlinuz</kernel>
       <initrd>isolinux/initrd.img</initrd>
-- 
2.14.3




More information about the Libosinfo mailing list