pungi/pungi/phases
Qixiang Wan e043604822 [ostree] Add 'tree' sub-command to pungi-make-ostree script
Update pungi-make-ostree to supourt sub-command 'tree', which is just
as the original feature of pungi-make-ostree to compose OSTree tree.
With the change we can add other sub commands later to build other
OSTree artifacts, like the installer image.

Inaddtional to the change, now the the 'tree' command can accept an
optional '--extra-config' parameter to update the original tree
configuration with extra configurations specified in a json file
before composing the OSTree tree.

Example:

pungi-make-ostree tree --repo=/ostree --treefile=/path/to/treefile \
--log-dir=/path/to/log --extra-config=/path/to/extra-config.json

The extra-config file can contains the same configuration as OSTree
phase, the difference is it doesn't understand variant UID as source
repo since it's not ran in the chain of phases. A valid configuration
can be like:

{
    "source_repo_from": "http://example.com/repo/x86_64/Server",
    "extra_source_repos": [
        {
            "name": "optional",
            "baseurl": "http://example.com/repo/x86_64/optional",
            "exclude": "systemd-container",
            "gpgcheck": False
        },
        {
            "name": "extra",
            "baseurl": "http://example.com/repo/x86_64/extra",
        }
    ],
    "keep_original_sources": True
}

The OSTree phase is updated to move out the task of updating treefile,
instead of that, it writes the extra configurations to a json file,
then 'pungi-make-ostree tree' will take it by option '--extra-config'.

Signed-off-by: Qixiang Wan <qwan@redhat.com>
2016-12-12 19:30:35 +08:00
..
gather compose: Drop unused argument 2016-11-09 13:39:01 +01:00
pkgset Remove FSF address from comments 2016-09-23 10:26:43 +02:00
__init__.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
base.py Fix PhaseLoggerMixin in case of compose has _logger = None 2016-11-30 14:41:02 +08:00
buildinstall.py Include phase name in log for some phases 2016-11-23 16:47:22 +08:00
createiso.py Include phase name in log for some phases 2016-11-23 16:47:22 +08:00
createrepo.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
extra_files.py extra-files: Nice error message on missing RPM 2016-11-10 09:38:50 +01:00
image_build.py Include phase name in log for some phases 2016-11-23 16:47:22 +08:00
image_checksum.py checksums: Never skip checksumming phase 2016-09-19 12:20:34 +02:00
init.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
live_images.py Include phase name in log for some phases 2016-11-23 16:47:22 +08:00
livemedia_phase.py Include phase name in log for some phases 2016-11-23 16:47:22 +08:00
osbs.py Include phase name in log for some phases 2016-11-23 16:47:22 +08:00
ostree.py [ostree] Add 'tree' sub-command to pungi-make-ostree script 2016-12-12 19:30:35 +08:00
ostree_installer.py ostree-installer: Use dvd-ostree as type in metadata 2016-11-28 10:32:50 +01:00
product_img.py Replace mount/umount with guestfsmount and 'fusermount -u' 2016-10-20 19:38:35 +08:00
test.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00