Skip to content

Commit

Permalink
Remove LVM system device filters for RedHat OSMount Tools
Browse files Browse the repository at this point in the history
System Device filters is a feature enabled by default on RHEL9-based images,
which limits the LVM detection on a particular set of system devices, provided
in the `system.devices` file. This is bad for the OSMount process, since it
will fail to detect LVM volumes on the migrated partitions. Removing the
`system.devices` file from the minion machine disables this feature and fixes
the issue.
  • Loading branch information
Dany9966 committed Jul 10, 2024
1 parent af49e5c commit 190b2e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions coriolis/osmorphing/osmount/redhat.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def setup(self):
super(RedHatOSMountTools, self).setup()
self._exec_cmd("sudo -E yum install -y lvm2 psmisc")
self._exec_cmd("sudo modprobe dm-mod")
self._exec_cmd("sudo rm -f /etc/lvm/devices/system.devices")

def _allow_ssh_env_vars(self):
self._exec_cmd('sudo sed -i -e "\$aAcceptEnv *" /etc/ssh/sshd_config')
Expand Down

0 comments on commit 190b2e7

Please sign in to comment.