Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
isoBuilder.py: Add support for rpm-ostree based iso and custom artifact
path. In order to generate custom rpm-ostree iso use the following command: ``` photon-iso-builder -v 4.0 -f build-rpm-ostree-iso -o <path-to-ostree-tar> ``` Command to use user specified artifact path: ``` photon-iso-builder -v 4.0 -a <path-to-artifact-parent-dir> -p packages_custom.json ``` Changes: - Move jsonread() to commandutils from isoBuilder. - generate_initrd.sh: - Add flag OSTREE_ISO to check if rpm-ostree iso is being generated. - Create array BIND_MOUNT_DIR containing list of directories to mount in docker container if tdnf command fails. - Create local repo if ostree iso is not getting generated. - Move generation of build_install_options_custom.json to isoBuilder. - isoBuilder.py: - Use key worded arguments while generating isoBuilder object. - Use artifact_path provided by user to generate iso in instead of curDir. - Add createInstallOptionJson() to generate custom build install option json. Set install option key to "custom" by default and change it to "ostree_host" to select ostree installation. - Skip downloading packages if rpm ostree iso is generated. - Skip check for custom_packages_json before adding packages to download package list. - Install syslinux and photon-iso-config without adding them to download pkg list. - Download sample_ks.cfg and sample_ui.cfg from specified branch of photon repo. - Add default custom_packages_json for ostree iso as packages_ostree_host.json. - Add copyAdditionalFiles() to copy any extra files to iso. Ex - ostree-repo.tar.gz - Replace shell commands with shutil lib functions. - Remove extraction of OSL to reduce size of iso. - Add help for missing parameters. Change-Id: I5175d0f387816803258433b18ec8a791acb5d7d3
- Loading branch information