[PATCH] linux: add in labels for block2mtd

Peter Naulls peter at chocky.org
Tue Nov 29 08:28:29 PST 2022


On 11/29/22 10:32, Daniel Golle wrote:
> On Tue, Nov 29, 2022 at 10:23:48AM -0500, Peter Naulls wrote:
>>
>> This backports the upstream label feature in block2mtd to the 5.10.x kernel
>> in 22.03:
>>
>> https://github.com/torvalds/linux/blob/master/drivers/mtd/devices/block2mtd.c
> 
> Where are we using block2mtd and why?
> 

I should have added more context.  I don't think there's really a "we" here,
this is something I needed, and it's more for discussion than anything.  I don't
think it has a general use in OpenWrt at present, and given the release status
of 22.03 you could even argue it shouldn't go in.

My application is for encrypting the rootfs_data partition to meet security
audit requirements (rootfs too, but that's a different step).  I know there
hasn't been much appetite for this in the past, and I'm painfully aware of the
OSS nature here vs encryption, but here we are. This is a requirement for
our product, whether I get pushback or not.

In any case, block2mtd allows me to present devices from cryptsetup to jffs2.
I'm working on some additional patches to make this all work with 'mount_root'
and sysupgrade, so we'll see - it will be experimental in nature for sure, and
may not ultimately be the best way to do things. That's OK.

As for the patch, it'll come to OpenWrt eventually, but my preference is
to stick with some sense of stability with 22.03.

Thanks!








More information about the openwrt-devel mailing list