From 08059cfcbb31735db65b64ef53eee49b7d7b70f6 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..9bf45b77 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': 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):