pungi/pungi
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
..
compose_metadata Remove FSF address from comments 2016-09-23 10:26:43 +02:00
ostree [ostree] Add 'tree' sub-command to pungi-make-ostree script 2016-12-12 19:30:35 +08:00
phases [ostree] Add 'tree' sub-command to pungi-make-ostree script 2016-12-12 19:30:35 +08:00
wrappers Expose lorax's --rootfs-size argument 2016-11-17 10:17:39 -05:00
__init__.py not using 'git -C path' which is not supported by git 1.x 2016-10-25 15:53:56 +08:00
arch.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
checks.py metadata: Allow creating internal releases 2016-12-06 12:49:33 +01:00
compose.py metadata: Allow creating internal releases 2016-12-06 12:49:33 +01:00
config.py pungi: Fix reading multilib config files 2016-11-09 09:36:23 +01:00
createiso.py iso-wrapper: Remove the class 2016-10-14 09:14:51 +02:00
gather.py pungi: Include noarch debuginfo 2016-11-16 14:50:03 +01:00
ks.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
linker.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
media_split.py Include phase name in log for some phases 2016-11-23 16:47:22 +08:00
metadata.py metadata: Allow creating internal releases 2016-12-06 12:49:33 +01:00
multilib.py Remove shebangs from non-executable files 2016-09-23 10:26:43 +02:00
notifier.py Send notification when compose fails to start 2016-10-20 09:39:18 +02:00
pathmatch.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
paths.py Merge #404 `Remove FSF address from file headers` 2016-09-27 13:33:43 +00:00
util.py Include phase name in log for some phases 2016-11-23 16:47:22 +08:00