chore(post_install): bump setup_persistent_network FUNC_VERSION to 1.2

Bump FUNC_VERSION from 1.1 to 1.2 in the setup_persistent_network wrapper
for both customizable and auto post_install variants.

Rationale:
The generator pmx_setup_persistent_network in utils-install-functions.sh
now emits `.link` files with Kind=!bridge (PR #280), so existing installs
need their `.link` files regenerated to pick up the fix. Bumping the
wrapper's FUNC_VERSION triggers the Monitor + CLI post-install version
tracker to surface persistent_network as a pending update, prompting
users to re-run the optimization — which regenerates the files with the
fix applied.

Not touched:
- network_menu.sh copy of setup_persistent_network: uses a simpler
  register_tool() that doesn't track versions (menu-driven invocation
  is on-demand, not tracked as auto-update-eligible by design).
This commit is contained in:
MacRimi
2026-08-09 00:54:22 +02:00
parent 05476b99c6
commit e05b4e94dc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1093,7 +1093,7 @@ enable_zfs_autotrim() {
setup_persistent_network() { setup_persistent_network() {
local FUNC_VERSION="1.1" local FUNC_VERSION="1.2"
# description: Pin NIC names to MAC addresses via systemd .link files so kernel updates don't shuffle interface names. # description: Pin NIC names to MAC addresses via systemd .link files so kernel updates don't shuffle interface names.
local pve_version local pve_version
pve_version=$(pveversion 2>/dev/null | grep -oP 'pve-manager/\K[0-9]+' | head -1) pve_version=$(pveversion 2>/dev/null | grep -oP 'pve-manager/\K[0-9]+' | head -1)
@@ -2836,7 +2836,7 @@ EOF
setup_persistent_network() { setup_persistent_network() {
local FUNC_VERSION="1.1" local FUNC_VERSION="1.2"
# description: Pin NIC names to MAC addresses via systemd .link files so kernel updates don't shuffle interface names. # description: Pin NIC names to MAC addresses via systemd .link files so kernel updates don't shuffle interface names.
local pve_version local pve_version
pve_version=$(pveversion 2>/dev/null | grep -oP 'pve-manager/\K[0-9]+' | head -1) pve_version=$(pveversion 2>/dev/null | grep -oP 'pve-manager/\K[0-9]+' | head -1)