Passing `url --url={{ install_url }}` to a kickstart file is, according to Red Hat official documentation[0], mandatory for RHEL 8 and onwards (which includes CentOS 8). Using it for RHEL 7, CentOS 7, and Fedora does not cause any issue. [0]: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/performing_an_advanced_rhel_installation/kickstart-commands-and-options-reference_installing-rhel-as-an-experienced-user Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx> Reviewed-by: Andrea Bolognani <abologna@xxxxxxxxxx> --- guests/configs/kickstart.cfg | 6 ++++++ guests/lcitool | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/guests/configs/kickstart.cfg b/guests/configs/kickstart.cfg index 713557a..76b7b65 100644 --- a/guests/configs/kickstart.cfg +++ b/guests/configs/kickstart.cfg @@ -1,3 +1,9 @@ +# Installation source +# +# The operating system will be installed from the following URL +url --url={{ install_url }} + + # Installer configuration # # Perform a text based installation followed by a reboot, and disable diff --git a/guests/lcitool b/guests/lcitool index 379fecc..803477e 100755 --- a/guests/lcitool +++ b/guests/lcitool @@ -542,9 +542,18 @@ class Application: # Unattended install scripts are being generated on the fly, based # on the templates present in guests/configs/ + unattended_options = [ + "install_url", + ] + initrd_template = os.path.join(base, "configs", install_config) with open(initrd_template, 'r') as template: content = template.read() + for option in unattended_options: + content = content.replace( + "{{ " + option + " }}", + facts[option] + ) tempdir = tempfile.mkdtemp() initrd_inject = os.path.join(tempdir, install_config) -- 2.23.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list