I hit this problem on a server here where I have / on lvm2, and it failed to boot since lvm was not added to initrd ;/
(dracut lvm module depends on dracut dm module that depends on dmsetup being available)
Updated lvm2 packages adds missing dependency
On a system that uses lvm2 we need to ensure that dmsetup is installed.
Without it lvm2 wont get added to initrd, causing the system to fail
to boot if root is on lvm.
This update adds the dependency on dmsetup, ensuring the system boots
For testers, simply install lvm2 from release (and check that you dont have dmsetup installed), then install lvm2 from testing and it should pull in dmsetup
Have just checked the status of these packages and find that both lvm2 and dmsetup are installed.
$ rpm -qa | grep lvm2
$ rpm -qa | grep dmsetup
An attempt at removing dmsetup offered to remove most of my Mate installation as well so that is a no-go.
Is there any way to get rid of dmsetup just by itself?
Ah, yeah it seems almost every DE has deps that to pull it in, so this is more an issue on clean server installs...
You can remove a package with:
rpm -e --nodeps <package_name>
so in this case: rpm -e --nodeps dmsetup
Thanks Thomas - what a newbie - I was using urpmi --nodeps.
$ rpm -qa | egrep "dmsetup|lvm2"
# urpmi lvm2
To satisfy dependencies, the following packages are going to be installed:
Package Version Release Arch
(medium "Core Updates Testing")
dmsetup 1.02.154 1.1.mga7 x86_64
lib64devmapper-event1.02 1.02.154 1.1.mga7 x86_64
lib64lvm2cmd2.02 2.02.183 1.1.mga7 x86_64
lvm2 2.02.183 1.1.mga7 x86_64
That worked fine. OK for 64 bits.
Same test done for i586. Ok for 32 bits.
Created attachment 11162 [details]
CLI - online cloning partition with lvm and snapshots
Cloned a LVM partition with lvm commands and snapshotting.
Everything ok. Arch is x86_64.
Advisory uploaded, validating.
An update for this issue has been pushed to the Mageia Updates repository.