From 58e3ca0f8a83dcb6da1b9e7da36942e9758ed6d7 Mon Sep 17 00:00:00 2001 From: BenjiReis Date: Wed, 7 Jun 2023 11:08:38 +0200 Subject: [PATCH] Keep IPv6 enablement/disablement upon upgrades Add `etc/sysctl.d/91-net-ipv6.conf` in the restore list Signed-off-by: BenjiReis --- upgrade.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/upgrade.py b/upgrade.py index ec8d9104..8a4b0851 100644 --- a/upgrade.py +++ b/upgrade.py @@ -445,6 +445,9 @@ def buildRestoreList(self): self.restore_list += ['var/lib/xcp/verify_certificates'] + # Keep IPv6 enablement/disablement upon upgrades + self.restore_list += ['etc/sysctl.d/91-net-ipv6.conf'] + completeUpgradeArgs = ['mounts', 'installation-to-overwrite', 'primary-disk', 'backup-partnum', 'logs-partnum', 'net-admin-interface', 'net-admin-bridge', 'net-admin-configuration'] def completeUpgrade(self, mounts, prev_install, target_disk, backup_partnum, logs_partnum, admin_iface, admin_bridge, admin_config):