[RFC next 0/2] dm: lvm: Initial Logical Volume Management support

Sascha Hauer s.hauer at pengutronix.de
Mon Aug 31 02:11:31 PDT 2026


On 2026-08-31 10:37, Tobias Waldekranz wrote:
> 
> Hi Sascha,
> 
> Thanks for taking the time to look at this!
> 
> On fre, aug 28, 2026 at 14:10, "Sascha Hauer" <s.hauer at pengutronix.de> wrote:
> > Hi Tobias,
> >
> > On 2026-08-24 18:31, Tobias Waldekranz wrote:
> >> [...]
> >> If the overall structure is OK with the community and maintainers,
> >> then the biggest remaining issue is testing. I have been surprised to
> >> learn that the standard LVM tools will not operate on disk images
> >> (without loopback mounting). Nor does there seem to be any other tools
> >> out there that allows you to provision PVs/VGs/LVs without having them
> >> "live" and attached to the host system. If there are any suggestions
> >> here they would be very welcome!
> >
> > Would guestfish be an option? That allows you to call pvcreate/vgcreate
> > on disk images.
> 
> Thank you, I had completely forgotten about that! I definitely think
> that it would solve the problem.
> 
> You would be okay with bringing that dependency into the barebox-ci
> container then? Do we foresee any issues with access to /dev/kvm or
> things like that from inside there? I guess it would still work in TCG
> mode, but might be slow?

It should work generally, but yes, it will be slow. I guess as long as
we only use it to create physical volumes and volume groups it should be
fine, but we should refrain from making excess data accesses like
writing verifying big images through the software emulation.

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




More information about the barebox mailing list