#1831 Recognize tar archive type in Koji
Opened 9 months ago by lsedlar. Modified 5 months ago
lsedlar/pungi tar-image-type  into  master

file modified
+4
@@ -24,6 +24,7 @@ 

          # The image is technically wsl2, but the type_name in Koji is set to

          # wsl.

          "wsl": ["wsl"],

+         "tar": ["tar", "tar.gz", "tar.bz2", "tar.xz", "tgz"],

      }

  )

  
@@ -280,6 +281,9 @@ 

                      # type explicitly. There really is no other possible type

                      # here anyway.

                      img.type = "wsl2"

+                 elif archive["type_name"] == "tar" and "wsl2" in archive["filename"]:

+                     # HACK: this should really be set in the compose configuration

+                     img.type = "wsl2"

                  elif archive["type_name"] != "iso":

                      img.type = archive["type_name"]

                  else:

OSBuild can generate images with tar.gz extension but import them to Koji with archive type set to tar. In such situation Pungi will not recognize the file and it will not be downloaded into the compose.

rebased onto 5731cce

9 months ago

This would need a corresponding change in productmd. But the type is not very good, as it says nothing about what the image is. A different approach is needed here.

1 new commit added

  • osbuild: Add a hack to detect wsl images
9 months ago

I have added another commit that automatically detects the image type. This is a horrible hack and only useful to avoid tricky timing of pungi deployment and compose configuration.

2 new commits added

  • osbuild: Add a hack to detect wsl images
  • Recognize tar archive type in Koji
9 months ago

2 new commits added

  • osbuild: Add a hack to detect wsl images
  • Recognize tar archive type in Koji
9 months ago

2 new commits added

  • osbuild: Add a hack to detect wsl images
  • Recognize tar archive type in Koji
9 months ago

rebased onto 65336b4

9 months ago

rebased onto 0badc6f

8 months ago

The change in productmd is merged and released already.

rebased onto b2f8264

6 months ago

rebased onto 2eb6fe3

5 months ago
Metadata