fix: tolerate nmcli connection.filename failure for in-memory live connections
export_connection_profile() crashed the whole installer under set -e/ pipefail when the active NetworkManager connection has no backing keyfile (common for ephemeral live-boot DHCP connections) - nmcli returned a non-zero exit status even though the guard below already handles an empty result gracefully. Every other nmcli call in this function already has this || true safety net; this one was missing it. Found via a live end-to-end boot test in Proxmox.
This commit is contained in:
parent
1a38f8ef3c
commit
6a48a7c929
@ -440,7 +440,7 @@ export_connection_profile() {
|
|||||||
"${NMCLI}" \
|
"${NMCLI}" \
|
||||||
--get-values connection.filename \
|
--get-values connection.filename \
|
||||||
connection show "${connection_name}" 2>/dev/null |
|
connection show "${connection_name}" 2>/dev/null |
|
||||||
head -n 1
|
head -n 1 || true
|
||||||
)"
|
)"
|
||||||
|
|
||||||
if [[ -z "${source_file}" || ! -f "${source_file}" ]]; then
|
if [[ -z "${source_file}" || ! -f "${source_file}" ]]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user