V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m51s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m51s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -61,6 +61,7 @@ yaml_validator() {
|
||||
ensure_lowercase "network_choose_interface_auto"
|
||||
ensure_lowercase "network_choose_interface_static"
|
||||
ensure_lowercase "network_hostname"
|
||||
ensure_lowercase "network_static_enable"
|
||||
|
||||
# shellcheck disable=SC2034
|
||||
[[ -v network_static_ipv4nameserver_0 ]] && ARY_IPV4_NS+=( "${network_static_ipv4nameserver_0}" )
|
||||
@@ -143,7 +144,7 @@ yaml_validator() {
|
||||
do_log "info" "file_only" "1252() Live environment network check: Auto FQDN ='${var_auto_fqdn}'."
|
||||
|
||||
### Export hostname and IPv4 and IPv6 addresses for further processing according to dynamic results and preseed.yaml settings.
|
||||
if [[ "${network_autoconfig_enable}" == "true" && -z "${network_static_ipv4address}" ]]; then
|
||||
if [[ "${network_autoconfig_enable}" == "true" ]]; then
|
||||
|
||||
# shellcheck disable=SC2034
|
||||
VAR_FINAL_NIC="${var_auto_nic}"
|
||||
@@ -158,7 +159,7 @@ yaml_validator() {
|
||||
|
||||
do_log "info" "file_only" "1252() Network IPv4 auto configuration: [${network_autoconfig_enable}] and IPv4 Link: [${var_link_ipv4}]."
|
||||
|
||||
elif [[ "${network_autoconfig_enable}" == "false" && -n "${network_static_ipv4address}" ]]; then
|
||||
elif [[ "${network_autoconfig_enable}" == "false" ]]; then
|
||||
|
||||
# shellcheck disable=SC2034
|
||||
VAR_FINAL_NIC="${network_choose_interface_static}"
|
||||
@@ -173,9 +174,14 @@ yaml_validator() {
|
||||
|
||||
do_log "info" "file_only" "1252() Network IPv4 static configuration: [${network_static_ipv4address}] and IPv4 Link: [${var_link_ipv4}]."
|
||||
|
||||
elif [[ "${network_autoconfig_enable}" == "false" && -z "${network_static_ipv4address}" ]]; then
|
||||
|
||||
do_log "info" "file_only" "1252() Network IPv4: no IPv4 configuration applied."
|
||||
|
||||
fi
|
||||
|
||||
if [[ "${var_link_ipv6}" == "true" && "${network_autoconfig_enable}" == "true" && "${network_ipv6}" == "true" && -z "${network_static_ipv6address}" ]]; then
|
||||
|
||||
if [[ "${network_autoconfig_enable}" == "true" && "${network_ipv6}" == "true" && -z "${network_static_ipv6address}" ]]; then
|
||||
|
||||
# shellcheck disable=SC2034
|
||||
VAR_FINAL_IPV6="${var_auto_ipv6}"
|
||||
|
||||
Reference in New Issue
Block a user