feat: provision 写入 NM keep-configuration=no——禁止开机收编 initramfs(dracut 遗留 DHCP)抢配的连接,强制按 autoconnect-priority 选路激活静态档案;initrd 的 DHCP 租约以副地址共存(双 IP:静态主+DHCP 副兜底);rollback 对称移除

This commit is contained in:
薛佳帆 committed 2026-09-10 16:21:42 +08:00
1 parent 9035f9eb96
commit 05a476d932
2 files changed
+13

No files matched your search

+1
View File
@@ -42,6 +42,7 @@ systemctl disable --now NetworkManager >/dev/null 2>&1 || true
# ── 4. 移除 polkit 规则 / NM 覆盖配置 ─────────────────────────────────────
rm -f /etc/polkit-1/localauthority/50-local.d/49-mixingx-network-agent.pkla
rm -f /etc/NetworkManager/conf.d/99-mixingx.conf
rm -f /etc/NetworkManager/conf.d/98-keep-configuration.conf
sleep 3
ip -4 addr show | awk '/inet /{print " " $2 " @ " $NF}'