From d18edde3da72f414014893777e476e7ebff474c7 Mon Sep 17 00:00:00 2001 From: Gael Duperrey Date: Tue, 12 Sep 2023 10:27:33 +0200 Subject: [PATCH] Ignore GPG check for install or upgrade in the script To circumvent the lack of signature of 8.2 ISOs, added an option to deactivate GPG verification in the answerfile. Signed-off-by: Gael Duperrey --- scripts/install_xcpng.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/scripts/install_xcpng.py b/scripts/install_xcpng.py index 821b84e83..47a716f23 100755 --- a/scripts/install_xcpng.py +++ b/scripts/install_xcpng.py @@ -43,7 +43,7 @@ def generate_boot_conf(directory, installer, action): {rt} """) -def generate_answerfile(directory, installer, hostname_or_ip, target_hostname, action, hdd): +def generate_answerfile(directory, installer, hostname_or_ip, target_hostname, action, hdd, netinstall_gpg_check): pxe = pxe_address() password = host_data(hostname_or_ip)['password'] cmd = ['openssl', 'passwd', '-6', password] @@ -56,7 +56,7 @@ def generate_answerfile(directory, installer, hostname_or_ip, target_hostname, a with open(f'{directory}/answerfile.xml', 'w') as answerfile: if action == 'install': answerfile.write(f""" - + fr {hdd} {hdd} @@ -72,7 +72,7 @@ def generate_answerfile(directory, installer, hostname_or_ip, target_hostname, a """) elif action == 'upgrade': answerfile.write(f""" - + {hdd} {installer}