Bug 26812

Summary: kpartx seems to depend on dmsetup
Product: Mageia Reporter: Mark Verlinde <mark>
Component: RPM PackagesAssignee: David GEIGER <geiger.david68210>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: armv7hl   
OS: Linux   
Whiteboard:
Source RPM: multipath-tools, lvm2 CVE:
Status comment:

Description Mark Verlinde 2020-06-18 11:21:11 CEST
Description of problem:

sudo kpartx -a -s disk_img.raw

Fails, it stalls and does not create mappings.
In this disk.img is an arbitrary (partitioned) raw disk-image file.



After installing dmsetup the above succeeds.



The analysis sofar reveals on x86_64 and aarch64 dmsetup is installed even with the same minimal package set up. On a armv7hl minimal install dmsetup is not pulled in.
(In all fairness i.v switched to disable weak-dependencies in dnf.conf and not sure dmsetup was pulled in as a weak dep somewhere)    

 


Version-Release number of selected component (if applicable):
kpartx-0.8.0-4.mga8.armv7hl.rpm


How reproducible:

This is a kind of hard, but if you insist ;)




Steps to Reproduce:
1. flash (experimental) https://github.com/markVnl/Mageia_SBC/releases/download/devel/Mageia-Uboot-Devel-WIP-armv7hl-mga8-img.raw.xz on a sd-card
2. boot a rpi{2, 3, 3+} with it
3. dnf install kpartx
4. make a raw-disk file: dd if=/dev/zero of=disk_img.raw count=400
5. try to map this disk-file: kpartx -a -s disk_img.raw


_TDLR_
Encountered this because appliance-tools stalled @ 
https://github.com/livecd-tools/appliance-tools/blob/master/appcreate/partitionedfs.py#L192

other applications depending on kpartx it's dev-mapper functionality might be effected to. 

grtz Mark
Comment 1 Lewis Smith 2020-06-18 15:00:58 CEST
It looks as if DavidG has once more fixed this before the bug is absorbed!
 Thu Jun 18 2020
 - kpartx also requires dmsetup (mga#26812)
I am running under M7, but have an M8 system to try the dependencies later. If they look right, I will close it. Unless David does before.

Assignee: bugsquad => geiger.david68210
Source RPM: (none) => multipath-tools, lvm2

Comment 2 Lewis Smith 2020-06-18 20:19:42 CEST
Problem of repos? Running under M8 installed from the Classic alpha1 ISO, *not* directly from Cauldron, system fully updated:-
 $ urpmq --requires kpartx | grep dmsetup
nothing;
 $ urpmq --whatrequires dmsetup
does not show kpartx

Can someone do these with direct Cauldron repos (which I thought I would have)?
The bug can be closed when the dependency shows up both ways.
Comment 3 David GEIGER 2020-06-19 13:15:28 CEST
Fixed now on Cauldron!

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 4 Mark Verlinde 2020-06-20 23:34:59 CEST
confirmed:

$ rpm -q --requires kpartx | grep dmsetup
dmsetup


$ rpm -q --whatrequires dmsetup
kpartx-0.8.4-1.mga8


Thank you!