Skip to content

Commit

Permalink
Keep user multipath configuration upon upgrade
Browse files Browse the repository at this point in the history
All files matchin `custom.*\.conf` will be kept
upon upgrade.

See: xapi-project/sm#600

Signed-off-by: BenjiReis <[email protected]>
  • Loading branch information
benjamreis committed Oct 16, 2023
1 parent 9f50acf commit 08059cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down

0 comments on commit 08059cf

Please sign in to comment.