Comment 1 for bug 1851271

Revision history for this message
Ryan Harper (raharper) wrote : Re: util.santitize_source truncates squashfs source types

Thanks for filing the bug. The 'squashfs:' prefix is currently unsupported.

The correct way to specify a squashfs source is via fsimage:// or http://

For example:

>>> util.sanitize_source("fsimage:///nfsmount/ubuntu.squash")
{'type': 'fsimage', 'uri': '///nfsmount/ubuntu.squash'}

>>> util.sanitize_source("http://cloud.images.ubuntu.com/bionic/test.squash")
{'type': 'fsimage', 'uri': 'http://cloud.images.ubuntu.com/bionic/test.squash'}

That said, we should fix the bug and add the prefix and suffix feature to
the documentation.