======================== Treeinfo file format 1.2 ======================== Treeinfo files provide details about installable trees in Fedora composes and media. Changes from 1.1 ================= The treeinfo file format is unchanged from 1.1. The version was bumped to 1.2 due to changes in other metadata files (``images.json`` no longer allows ``src`` as a standalone architecture; source images are stored under binary architectures instead). File Format =========== Treeinfo is an INI file. It's recommended to sort sections and keys alphabetically in order to diff .treeinfo files easily. :: [header] type = ; metadata type; "productmd.treeinfo" required; [new in 1.1] version = 1.2 ; metadata version; format: $major.$minor [release] name = ; release name, for example: "Fedora", "Red Hat Enterprise Linux", "Spacewalk" short = ; release short name, for example: "F", "RHEL", "Spacewalk" version = ; release version, for example: "21", "7.0", "2.1" type = ; release type, for example: "ga", "updates", "eus"; [new in 1.1] is_layered = ; typically False for an operating system, True otherwise [base_product] name = ; base product name, for example: "Fedora", "Red Hat Enterprise Linux" short = ; base product short name, for example: "F", "RHEL" version = ; base product *major* version, for example: "21", "7" type = ; base product release type, for example: "ga", "eus"; [new in 1.1] [tree] arch = ; tree architecture, for example x86_64 build_timestamp = ; tree build time timestamp; format: unix time platforms = [, ...] ; supported platforms; for example x86_64,xen variants = [, ...] ; UIDs of available variants, for example "Server,Workstation" [checksums] ; checksums of selected files in a tree: ; * all repodata/repomd.xml ; * all images captured in [images-*] and [stage2] sections $path = $checksum_type:checksum_value [images-$platform] ; images compatible with particular $platform $file_name = $relative_path [stage2] ; optional section, available only on bootable media with Anaconda installer instimage = ; relative path to Anaconda instimage (obsolete) mainimage = ; relative path to Anaconda stage2 image [media] ; optional section, available only on media discnum = ; disc number totaldiscs = ; number of discs in media set [variant-$variant_uid] id = ; variant ID uid = ; variant UID ($parent_UID.$ID) name = ; variant name type = ; variant, optional variants = [,...] ; UIDs of child variants addons = [,...] ; UIDs of child addons ; variant paths ; all paths are relative to .treeinfo location packages = ; directory with binary RPMs repository = ; YUM repository with binary RPMs source_packages = ; directory with source RPMs source_repository = ; YUM repository with source RPMs debug_packages = ; directory with debug RPMs debug_repository = ; YUM repository with debug RPMs identity = ; path to a pem file that identifies a product [addon-$addon_uid] id = ; addon ID uid = ; addon UID ($parent_UID.$ID) name = ; addon name type = addon ; addon paths ; see variant paths [general] ; WARNING.0 = This section provides compatibility with pre-productmd treeinfos. ; WARNING.1 = Read productmd documentation for details about new format. family = ; equal to [release]/name version = ; equal to [release]/version name = ; equal to "$family $version" arch = ; equal to [tree]/arch platforms = [,...] ; equal to [tree]/platforms packagedir = ; equal to [variant-*]/packages repository = ; equal to [variant-*]/repository timestamp = ; equal to [tree]/build_timestamp variant = ; variant UID of first variant (sorted alphabetically)