Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions coriolis/providers/backup_writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,18 @@ def _disable_lvm_metad_udev_rule(ssh):
detected with lvm partitions (after a transfer is complete). During normal
migrations with multiple replications, these services need to be disabled,
therefore we make it impossible for the minion OS to create them.

The lvm2 initramfs hook must be deleted as well, otherwise the initrd
cannot be regenerated when installing packages.
"""
rule_paths = [
removed_paths = [
"/lib/udev/rules.d/69-lvm-metad.rules",
"/lib/udev/rules.d/69-dm-lvm.rules",
"/lib/udev/rules.d/69-lvm.rules",
"/lib/udev/rules.d/56-lvm.rules",
"/usr/share/initramfs-tools/hooks/lvm2",
]
for path in rule_paths:
for path in removed_paths:
if utils.test_ssh_path(ssh, path):
utils.exec_ssh_cmd(ssh, "sudo rm %s" % path, get_pty=False)

Expand Down
Loading