From bb6f238dab766d6cd2c8204db1bcc79bb9b58792 Mon Sep 17 00:00:00 2001 From: BenjiReis Date: Mon, 17 Jul 2023 10:55:40 +0200 Subject: [PATCH] Keep user multipath configuration upon upgrade All files matchin `custom.*\.conf` will be kept upon upgrade. See: https://github.com/xapi-project/sm/pull/600 Signed-off-by: BenjiReis --- upgrade.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/upgrade.py b/upgrade.py index 0672b577..2d975fbb 100644 --- a/upgrade.py +++ b/upgrade.py @@ -448,6 +448,9 @@ def buildRestoreList(self): # NRPE service config self.restore_list += ['etc/nagios/nrpe.cfg', {'dir': 'etc/nrpe.d'}] + # Keep user multipath configuration + self.restore_list += [{'dir': 'etc/multipath/conf.d', 're': re.compile(r'custom.*\.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):