[OpenWrt-Devel] [PATCH 08/11] target/linux/generic: add patches to support dm-verity volume at boot

Hauke Mehrtens hauke at hauke-m.de
Mon Mar 25 13:23:14 EDT 2019


On 3/11/19 5:20 PM, Thomas Petazzoni wrote:
> The upstream Linux kernel does not provide a mechanism to setup a DM
> volume at boot time using the kernel command line: an initramfs with
> user-space tools is strictly required. Since OpenWRT doesn't support
> an initramfs as an intermediate step before mounting the real root
> filesystem, this requirement of the upstream kernel makes it difficult
> to use dm-verity in the context of OpenWRT.
> 
> However, some patches have been repeatedly contributed to the upstream
> kernel (but not accepted so far) to add a dm="..." kernel argument
> that allows to set up a DM device from the kernel command line. This
> allows to avoid the need for an initramfs just to set up a DM device
> at boot time.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
> ---
>  ...-to-directly-boot-to-a-mapped-device.patch | 633 ++++++++++++++++++
>  ...l-add-a-device-mapper-ioctl-function.patch |  98 +++
>  2 files changed, 731 insertions(+)
>  create mode 100644 target/linux/generic/pending-4.14/960-init-add-support-to-directly-boot-to-a-mapped-device.patch
>  create mode 100644 target/linux/generic/pending-4.14/961-dm-ioctl-add-a-device-mapper-ioctl-function.patch

Please add this also to target/linux/generic/pending-4.19, otherwise
this could get lost when we upgrade.


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list