lvm: fix reusing minion pool for os morphing and disk replication - #515
Open
petrutlucian94 wants to merge 1 commit into
Open
lvm: fix reusing minion pool for os morphing and disk replication#515petrutlucian94 wants to merge 1 commit into
petrutlucian94 wants to merge 1 commit into
Conversation
We're disabling lvm udev rules as part of the backup writer setup in order to prevent the migrated volumes from being automatically mounted on the replicator vm. The problem is that we're leaving behind an initrd lvm hook that will error out if the lvm udev rules are missing: ``` update-initramfs: Generating /boot/initrd.img-6.8.0-138-generic E: /usr/share/initramfs-tools/hooks/lvm2 failed with return 1. ... for rules in 56-lvm.rules 69-lvm.rules; do if [ -e /etc/udev/rules.d/$rules ]; then cp -p /etc/udev/rules.d/$rules $DESTDIR/lib/udev/rules.d/ elif [ -e /lib/udev/rules.d/$rules ]; then cp -p /lib/udev/rules.d/$rules $DESTDIR/lib/udev/rules.d/ else exit 1 fi done ... ``` This prevents other packages from getting installed, breaking the os morphing initialization. We'll solve it by removing the leftover lvm hook.
petrutlucian94
force-pushed
the
lvm_hook_minion_pool
branch
from
September 1, 2026 13:17
04c3b37 to
9e268da
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We're disabling lvm udev rules as part of the backup writer setup in order to prevent the migrated volumes from being automatically mounted on the replicator vm.
The problem is that we're leaving behind an initrd lvm hook that will error out if the lvm udev rules are missing:
This prevents other packages from getting installed, breaking the os morphing initialization.
We'll solve it by removing the leftover lvm hook.