From 175a25bcaa079698860bfbd875ff7d5d65e98b2b Mon Sep 17 00:00:00 2001 From: Michel Jouvin Date: Mon, 16 Dec 2024 18:16:52 +0100 Subject: [PATCH] aii/server/config: configure grub2_efi_kernel_root if AII_EFI_KERNEL_ROOT is defined --- quattor/aii/server/config.pan | 62 +++++++++++++++++++---------------- 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/quattor/aii/server/config.pan b/quattor/aii/server/config.pan index 70d09f468..94f5bfcf0 100644 --- a/quattor/aii/server/config.pan +++ b/quattor/aii/server/config.pan @@ -19,38 +19,44 @@ prefix '/software/components/aiiserver/aii-shellfe'; 'cdburl' ?= QUATTOR_PROFILE_URL; 'profile_prefix' ?= if (is_defined(AII_PROFILE_PREFIX) && (length(AII_PROFILE_PREFIX) > 0)) { - AII_PROFILE_PREFIX; - } else { - null; - }; + AII_PROFILE_PREFIX; +} else { + null; +}; 'profile_format' ?= if ( is_defined(QUATTOR_PROFILE_FORMAT) ) { - QUATTOR_PROFILE_FORMAT; - } else { - null; - }; + QUATTOR_PROFILE_FORMAT; +} else { + null; +}; 'use_fqdn' ?= if (is_defined(AII_USE_FQDN) ) { - if ( AII_USE_FQDN) { - true; - } else { - false; - }; - } else { - null; - }; + if ( AII_USE_FQDN) { + true; +} else { + false; +}; +} else { + null; +}; 'osinstalldir' ?= if ( is_defined(AII_OSINSTALL_DIR) ) { - AII_OSINSTALL_DIR; - } else { - null; - }; + AII_OSINSTALL_DIR; +} else { + null; +}; 'nbpdir' ?= if ( is_defined(AII_NBP_DIR) ) { - AII_NBP_DIR; - } else { - null; - }; + AII_NBP_DIR; +} else { + null; +}; + +'grub2_efi_kernel_root' ?= if ( is_defined(AII_EFI_KERNEL_ROOT) ) { + AII_EFI_KERNEL_ROOT; +} else { + null; +}; @@ -61,9 +67,9 @@ prefix '/software/components/aiiserver/aii-dhcp'; 'dhcpconf' ?= AII_DHCP_DHCPD_CONF_FILE; 'restartcmd' ?= if ( is_defined(AII_DHCP_RESTART_CMD) ) { - AII_DHCP_RESTART_CMD; - } else { - null; - }; + AII_DHCP_RESTART_CMD; +} else { + null; +}; include AII_DHCP_CONFIG_SITE;