[{"data":1,"prerenderedAt":1239},["ShallowReactive",2],{"search-index":3,"doc-rootfs-integrity-dm-verity-immutable-images":105},[4,9,13,17,21,26,31,36,41,46,51,56,61,66,71,76,81,86,91,96,101],{"_path":5,"title":6,"description":7,"date":8},"/dev/eu-cyber-resilience-act-firmware-evidence-pack","CRA Firmware Evidence: Scope, Dates and Preparation","Practical breakdown of the EU Cyber Resilience Act requirements for embedded firmware teams, covering technical obligations, SBOM requirements, vulnerability handling, and the evidence pack needed for compliance.","2026-04-19T08:00:00.000Z",{"_path":10,"title":11,"description":12,"date":8},"/dev/pkg/firmware-sboms-spdx-cyclonedx-2026","Firmware SBOMs: SPDX, CycloneDX and Publication Workflows","Practical comparison of SPDX and CycloneDX for firmware SBOMs, covering what to include, automation approaches, tooling, and publication strategies for embedded Linux products.",{"_path":14,"title":15,"description":16,"date":8},"/dev/pkg/spdx-3-0-embedded-builds-practical","SPDX 3.0 for Embedded Builds: Packages, Files, and Relationships Engineers Actually Use","Practical guide to SPDX 3.0 for embedded Linux, covering the data model, package and file elements, relationship types, and how to produce useful SPDX documents from Yocto and Buildroot builds.",{"_path":18,"title":19,"description":20,"date":8},"/dev/slsa-build-provenance-firmware-sign-verify","SLSA Build Provenance for Firmware: What to Collect, How to Sign, How to Verify","Practical implementation guide for SLSA build provenance in firmware pipelines, covering provenance generation, signing with Sigstore, verification workflows, and integration with SBOMs.",{"_path":22,"title":23,"description":24,"date":25},"/dev/vex-csaf-embedded-not-affected-scale","VEX and CSAF for Embedded Vulnerability Status","How to produce and distribute VEX documents and CSAF advisories for embedded firmware, enabling downstream consumers to filter false positives from vulnerability scans.","2026-04-15T20:03:00.000Z",{"_path":27,"title":28,"description":29,"date":30},"/dev/yocto-5-2-walnascar-highlights-embedded-2026","Yocto 5.2 Walnascar: Release Changes and Migration Context","Key changes in Yocto 5.2 Walnascar relevant to embedded product teams, covering toolchain updates, security improvements, SPDX 3.0 support, and migration notes.","2026-04-12T08:14:00.000Z",{"_path":32,"title":33,"description":34,"date":35},"/dev/yocto-esdk-faster-iteration-2026","Yocto eSDK in 2026: Faster Application Iteration Without Full Rebuild Cycles","How to use Yocto's extensible SDK to speed up application development by building and testing packages without running full BitBake builds.","2026-04-11T07:09:00.000Z",{"_path":37,"title":38,"description":39,"date":40},"/dev/yocto-layers-maintainable-strategy-2026","Maintaining Yocto Layers: Appends, Forks and Upgrades","Practical guidance on structuring Yocto layers for long-term maintainability, covering layer boundaries, naming conventions, version pinning, and upgrade workflows.","2026-04-07T13:41:00.000Z",{"_path":42,"title":43,"description":44,"date":45},"/doc/bootlin-toolchains-arm-riscv-2026","Bootlin Toolchains in Practice: Picking the Right Prebuilt Toolchain for ARM and RISC-V","How to select and validate Bootlin prebuilt cross-compilation toolchains for ARM Cortex-A, Cortex-M, and RISC-V targets in embedded Linux projects.","2026-03-10T16:05:00.000Z",{"_path":47,"title":48,"description":49,"date":50},"/doc/buildroot-vs-yocto-2026","Buildroot vs Yocto: BSPs, Build Workflow and Maintenance","A detailed comparison of Buildroot and Yocto for embedded Linux, covering build performance, long-term maintenance, layer ecosystems, and practical decision criteria for product teams in 2026.","2026-03-05T08:12:00.000Z",{"_path":52,"title":53,"description":54,"date":55},"/doc/cross-compilation-toolchain-triplet-clib-2026","Cross-Compilation: Target Triplets and glibc vs musl","Practical guidance on selecting cross-compilation toolchains for embedded Linux, understanding target triplets, and choosing between glibc and musl for your production firmware.","2026-03-07T07:43:00.000Z",{"_path":57,"title":58,"description":59,"date":60},"/doc/erofs-vs-squashfs-2026","EROFS vs SquashFS: Compression, Performance and OTA Trade-offs","Detailed comparison of EROFS and SquashFS for embedded Linux in 2026, covering read performance, compression ratios, deduplication, and integration with OTA update schemes.","2026-03-22T14:22:00.000Z",{"_path":62,"title":63,"description":64,"date":65},"/doc/ota-updates-rauc-swupdate-mender-2026","RAUC vs SWUpdate vs Mender: Embedded Linux OTA Compared","Comparison of RAUC, SWUpdate, and Mender for embedded Linux OTA updates, covering update models, rollback strategies, fleet management, and integration with Yocto and Buildroot.","2026-03-28T19:07:00.000Z",{"_path":67,"title":68,"description":69,"date":70},"/doc/plat/device-tree-debugging-overlays-validation-2026","Device Tree Debugging for Embedded Linux: Overlays, Common Errors, and Validation","Practical guide to debugging device tree issues in embedded Linux, covering overlay mechanics, common DTS errors, validation tools, and runtime debugging techniques.","2026-04-05T06:58:00.000Z",{"_path":72,"title":73,"description":74,"date":75},"/doc/plat/porting-checklist-bootloader-kernel-rootfs-2026","Porting Checklist 2026: Bootloader → Kernel → RootFS for New Boards","Complete checklist for porting embedded Linux to a new board, from bootloader bring-up through kernel configuration to root filesystem validation, with practical tips for each stage.","2026-04-02T15:16:00.000Z",{"_path":77,"title":78,"description":79,"date":80},"/doc/real-time-linux-preempt-rt-latency-2026","PREEMPT_RT Linux: Configuration and Cyclictest Latency Tests","Practical guide to PREEMPT_RT on embedded Linux covering kernel configuration, IRQ threading, latency measurement with cyclictest, and tuning techniques with explicit test conditions and interpretation limits.","2026-03-23T05:48:00.000Z",{"_path":82,"title":83,"description":84,"date":85},"/doc/rootfs-integrity-dm-verity-immutable-images","dm-verity for Rootfs Integrity: Design, Trust and Recovery","How to design and implement dm-verity-protected root filesystems for embedded Linux, covering hash tree generation, kernel integration, error handling, and update strategies.","2026-03-19T08:56:00.000Z",{"_path":87,"title":88,"description":89,"date":90},"/doc/rtos-vs-embedded-linux-zephyr-2026","RTOS vs Embedded Linux: Zephyr, FreeRTOS and Linux Compared","Practical comparison of RTOS (Zephyr, FreeRTOS) and embedded Linux for product design, covering latency, memory footprint, ecosystem maturity, and hybrid architectures.","2026-03-30T09:35:00.000Z",{"_path":92,"title":93,"description":94,"date":95},"/doc/secure-boot-uboot-fit-signatures-chain-of-trust","U-Boot Secure Boot: FIT Signatures and Chain of Trust","Understand U-Boot FIT signatures, trusted control device trees and boot-chain limits with a versioned example and explicit rejection and recovery tests.","2026-03-14T06:29:00.000Z",{"_path":97,"title":98,"description":99,"date":100},"/doc/verified-boot-patterns-uboot-keys-failure-modes","Verified Boot Patterns in U-Boot: What to Verify, Where Keys Live, and Failure Modes","Deep dive into U-Boot verified boot patterns covering signature scopes, key storage options, common failure modes, and practical debugging techniques for embedded Linux platforms.","2026-03-16T18:11:00.000Z",{"_path":102,"title":103,"description":104},"/image-manifest","ProteanOS Image Manifest","This document lists all hero and supporting images needed for the website.",{"_path":82,"_dir":106,"_draft":107,"_partial":107,"_locale":108,"title":83,"description":84,"date":85,"lastmod":109,"draft":107,"hero":110,"tags":111,"category":106,"body":115,"_type":1233,"_id":1234,"_source":1235,"_file":1236,"_stem":1237,"_extension":1238},"doc",false,"","2026-11-16T00:00:00.000Z","/images/hero/rootfs-integrity-dm-verity-immutable-images-1600x900.jpg",[112,113,114],"Embedded Linux","ProteanOS","Security",{"type":116,"children":117,"toc":1217},"root",[118,126,133,147,152,177,182,188,275,294,300,305,350,355,361,375,477,482,488,493,501,529,577,582,588,593,927,932,938,943,984,990,1017,1022,1027,1033,1038,1061,1074,1080,1085,1128,1133,1139,1144,1157,1163,1176,1182,1195,1200,1206,1211],{"type":119,"tag":120,"props":121,"children":122},"element","p",{},[123],{"type":124,"value":125},"text","dm-verity provides transparent block-level integrity verification for read-only filesystems. Every block read from disk is checked against a pre-computed hash tree. If a block has been modified - whether by an attacker, bit rot, or a failed flash write - the read returns an error instead of corrupted data. For embedded devices with immutable system partitions, dm-verity closes the gap between secure boot and runtime integrity.",{"type":119,"tag":127,"props":128,"children":130},"h2",{"id":129},"where-dm-verity-fits-in-the-security-chain",[131],{"type":124,"value":132},"Where dm-verity fits in the security chain",{"type":119,"tag":120,"props":134,"children":135},{},[136,138,145],{"type":124,"value":137},"Secure boot (covered in the ",{"type":119,"tag":139,"props":140,"children":142},"a",{"href":141},"/doc/secure-boot-uboot-fit-signatures-chain-of-trust/",[143],{"type":124,"value":144},"FIT signatures guide",{"type":124,"value":146},") verifies the kernel and initramfs at boot time. But once the kernel is running and mounts the root filesystem, there is no ongoing verification of the blocks read from storage - unless you add it.",{"type":119,"tag":120,"props":148,"children":149},{},[150],{"type":124,"value":151},"dm-verity provides that ongoing verification. The chain becomes:",{"type":119,"tag":153,"props":154,"children":155},"ol",{},[156,162,167,172],{"type":119,"tag":157,"props":158,"children":159},"li",{},[160],{"type":124,"value":161},"ROM → verifies SPL",{"type":119,"tag":157,"props":163,"children":164},{},[165],{"type":124,"value":166},"SPL → verifies U-Boot",{"type":119,"tag":157,"props":168,"children":169},{},[170],{"type":124,"value":171},"U-Boot → verifies kernel + initramfs (FIT signature)",{"type":119,"tag":157,"props":173,"children":174},{},[175],{"type":124,"value":176},"Kernel → verifies root filesystem blocks (dm-verity)",{"type":119,"tag":120,"props":178,"children":179},{},[180],{"type":124,"value":181},"This chain authenticates the selected boot objects and reads through the protected mapping. Downloaded applications, firmware outside that chain and writable execution paths require their own policy.",{"type":119,"tag":127,"props":183,"children":185},{"id":184},"dm-verity-vs-fs-verity-vs-dm-integrity",[186],{"type":124,"value":187},"dm-verity vs fs-verity vs dm-integrity",{"type":119,"tag":189,"props":190,"children":191},"table",{},[192,216],{"type":119,"tag":193,"props":194,"children":195},"thead",{},[196],{"type":119,"tag":197,"props":198,"children":199},"tr",{},[200,206,211],{"type":119,"tag":201,"props":202,"children":203},"th",{},[204],{"type":124,"value":205},"Mechanism",{"type":119,"tag":201,"props":207,"children":208},{},[209],{"type":124,"value":210},"Protected scope",{"type":119,"tag":201,"props":212,"children":213},{},[214],{"type":124,"value":215},"Trust requirement",{"type":119,"tag":217,"props":218,"children":219},"tbody",{},[220,239,257],{"type":119,"tag":197,"props":221,"children":222},{},[223,229,234],{"type":119,"tag":224,"props":225,"children":226},"td",{},[227],{"type":124,"value":228},"dm-verity",{"type":119,"tag":224,"props":230,"children":231},{},[232],{"type":124,"value":233},"Read-only block mapping",{"type":119,"tag":224,"props":235,"children":236},{},[237],{"type":124,"value":238},"Authenticate the expected root digest and enforce use of that mapping",{"type":119,"tag":197,"props":240,"children":241},{},[242,247,252],{"type":119,"tag":224,"props":243,"children":244},{},[245],{"type":124,"value":246},"fs-verity",{"type":119,"tag":224,"props":248,"children":249},{},[250],{"type":124,"value":251},"Selected files made read-only on a supported filesystem",{"type":119,"tag":224,"props":253,"children":254},{},[255],{"type":124,"value":256},"Authenticate file digests and enforce execution policy. Names and ordinary metadata remain outside its protection",{"type":119,"tag":197,"props":258,"children":259},{},[260,265,270],{"type":119,"tag":224,"props":261,"children":262},{},[263],{"type":124,"value":264},"dm-integrity",{"type":119,"tag":224,"props":266,"children":267},{},[268],{"type":124,"value":269},"Integrity tags for writable sectors",{"type":119,"tag":224,"props":271,"children":272},{},[273],{"type":124,"value":274},"Unkeyed checksums detect accidental corruption. Keyed HMAC or appropriate dm-crypt integration has different authentication properties",{"type":119,"tag":120,"props":276,"children":277},{},[278,280,285,287,292],{"type":124,"value":279},"Consider an illustrative device with an immutable operating-system image, separately delivered applications and writable state. dm-verity can protect the OS image. fs-verity can protect selected application file contents where the filesystem and loader policy support it. Writable state needs its own integrity and recovery design. Key protection, replay protection and application-level consistency remain separate questions. ",{"type":119,"tag":139,"props":281,"children":283},{"href":282},"https://docs.kernel.org/filesystems/fsverity.html",[284],{"type":124,"value":246},{"type":124,"value":286}," and ",{"type":119,"tag":139,"props":288,"children":290},{"href":289},"https://docs.kernel.org/admin-guide/device-mapper/dm-integrity.html",[291],{"type":124,"value":264},{"type":124,"value":293},".",{"type":119,"tag":127,"props":295,"children":297},{"id":296},"how-dm-verity-works",[298],{"type":124,"value":299},"How dm-verity works",{"type":119,"tag":120,"props":301,"children":302},{},[303],{"type":124,"value":304},"dm-verity uses a Merkle tree (hash tree) computed over the filesystem image. The tree structure:",{"type":119,"tag":306,"props":307,"children":308},"ul",{},[309,320,330,340],{"type":119,"tag":157,"props":310,"children":311},{},[312,318],{"type":119,"tag":313,"props":314,"children":315},"strong",{},[316],{"type":124,"value":317},"Data blocks:",{"type":124,"value":319}," The actual filesystem content, divided into fixed-size blocks (typically 4096 bytes)",{"type":119,"tag":157,"props":321,"children":322},{},[323,328],{"type":119,"tag":313,"props":324,"children":325},{},[326],{"type":124,"value":327},"Hash blocks:",{"type":124,"value":329}," Each hash block contains the hashes of multiple data blocks",{"type":119,"tag":157,"props":331,"children":332},{},[333,338],{"type":119,"tag":313,"props":334,"children":335},{},[336],{"type":124,"value":337},"Higher-level hash blocks:",{"type":124,"value":339}," Each higher level hashes the blocks below it",{"type":119,"tag":157,"props":341,"children":342},{},[343,348],{"type":119,"tag":313,"props":344,"children":345},{},[346],{"type":124,"value":347},"Root hash:",{"type":124,"value":349}," A single hash at the top of the tree",{"type":119,"tag":120,"props":351,"children":352},{},[353],{"type":124,"value":354},"The root hash is the trust anchor. If you know the root hash is correct (because it was signed or embedded in the verified kernel command line), dm-verity can verify every block on demand.",{"type":119,"tag":127,"props":356,"children":358},{"id":357},"generating-the-hash-tree",[359],{"type":124,"value":360},"Generating the hash tree",{"type":119,"tag":120,"props":362,"children":363},{},[364,366,373],{"type":124,"value":365},"Use ",{"type":119,"tag":367,"props":368,"children":370},"code",{"className":369},[],[371],{"type":124,"value":372},"veritysetup",{"type":124,"value":374}," from the cryptsetup package:",{"type":119,"tag":376,"props":377,"children":381},"pre",{"code":378,"language":379,"meta":108,"className":380,"style":108},"# Create the hash tree\nveritysetup format /path/to/rootfs.img /path/to/rootfs.hashtree\n\n# Output includes:\n# Root hash: 4a2c...\n# Salt: 8b1f...\n# Data blocks: 65536\n# Hash algorithm: sha256\n","bash","language-bash shiki shiki-themes github-dark",[382],{"type":119,"tag":367,"props":383,"children":384},{"__ignoreMap":108},[385,397,422,432,441,450,459,468],{"type":119,"tag":386,"props":387,"children":390},"span",{"class":388,"line":389},"line",1,[391],{"type":119,"tag":386,"props":392,"children":394},{"style":393},"--shiki-default:#6A737D",[395],{"type":124,"value":396},"# Create the hash tree\n",{"type":119,"tag":386,"props":398,"children":400},{"class":388,"line":399},2,[401,406,412,417],{"type":119,"tag":386,"props":402,"children":404},{"style":403},"--shiki-default:#B392F0",[405],{"type":124,"value":372},{"type":119,"tag":386,"props":407,"children":409},{"style":408},"--shiki-default:#9ECBFF",[410],{"type":124,"value":411}," format",{"type":119,"tag":386,"props":413,"children":414},{"style":408},[415],{"type":124,"value":416}," /path/to/rootfs.img",{"type":119,"tag":386,"props":418,"children":419},{"style":408},[420],{"type":124,"value":421}," /path/to/rootfs.hashtree\n",{"type":119,"tag":386,"props":423,"children":425},{"class":388,"line":424},3,[426],{"type":119,"tag":386,"props":427,"children":429},{"emptyLinePlaceholder":428},true,[430],{"type":124,"value":431},"\n",{"type":119,"tag":386,"props":433,"children":435},{"class":388,"line":434},4,[436],{"type":119,"tag":386,"props":437,"children":438},{"style":393},[439],{"type":124,"value":440},"# Output includes:\n",{"type":119,"tag":386,"props":442,"children":444},{"class":388,"line":443},5,[445],{"type":119,"tag":386,"props":446,"children":447},{"style":393},[448],{"type":124,"value":449},"# Root hash: 4a2c...\n",{"type":119,"tag":386,"props":451,"children":453},{"class":388,"line":452},6,[454],{"type":119,"tag":386,"props":455,"children":456},{"style":393},[457],{"type":124,"value":458},"# Salt: 8b1f...\n",{"type":119,"tag":386,"props":460,"children":462},{"class":388,"line":461},7,[463],{"type":119,"tag":386,"props":464,"children":465},{"style":393},[466],{"type":124,"value":467},"# Data blocks: 65536\n",{"type":119,"tag":386,"props":469,"children":471},{"class":388,"line":470},8,[472],{"type":119,"tag":386,"props":473,"children":474},{"style":393},[475],{"type":124,"value":476},"# Hash algorithm: sha256\n",{"type":119,"tag":120,"props":478,"children":479},{},[480],{"type":124,"value":481},"The root hash and salt must be recorded and passed to the kernel at boot time. Store the expected digest in an authenticated boot object and confirm that the enforced boot flow uses it. Record the format output and image size so the table geometry comes from the actual image.",{"type":119,"tag":127,"props":483,"children":485},{"id":484},"kernel-command-line-integration",[486],{"type":124,"value":487},"Kernel command line integration",{"type":119,"tag":120,"props":489,"children":490},{},[491],{"type":124,"value":492},"The following is an illustrative table layout. It has not been executed as an integrated boot sequence here. Replace all geometry with the output from your image and validate in a disposable environment:",{"type":119,"tag":376,"props":494,"children":496},{"code":495},"root=/dev/dm-0\ndm-mod.create=\"verity,,,ro,0 524288 verity 1 /dev/mmcblk0p2 /dev/mmcblk0p3 4096 4096 65536 1 sha256 ROOT_HASH SALT\"\n",[497],{"type":119,"tag":367,"props":498,"children":499},{"__ignoreMap":108},[500],{"type":124,"value":495},{"type":119,"tag":120,"props":502,"children":503},{},[504,506,512,513,519,521,527],{"type":124,"value":505},"Replace ",{"type":119,"tag":367,"props":507,"children":509},{"className":508},[],[510],{"type":124,"value":511},"ROOT_HASH",{"type":124,"value":286},{"type":119,"tag":367,"props":514,"children":516},{"className":515},[],[517],{"type":124,"value":518},"SALT",{"type":124,"value":520}," with the values from ",{"type":119,"tag":367,"props":522,"children":524},{"className":523},[],[525],{"type":124,"value":526},"veritysetup format",{"type":124,"value":528},". The command line parameters specify:",{"type":119,"tag":306,"props":530,"children":531},{},[532,545,557,562,567,572],{"type":119,"tag":157,"props":533,"children":534},{},[535,537,543],{"type":124,"value":536},"The data device (",{"type":119,"tag":367,"props":538,"children":540},{"className":539},[],[541],{"type":124,"value":542},"/dev/mmcblk0p2",{"type":124,"value":544},")",{"type":119,"tag":157,"props":546,"children":547},{},[548,550,556],{"type":124,"value":549},"The hash device (",{"type":119,"tag":367,"props":551,"children":553},{"className":552},[],[554],{"type":124,"value":555},"/dev/mmcblk0p3",{"type":124,"value":544},{"type":119,"tag":157,"props":558,"children":559},{},[560],{"type":124,"value":561},"Block sizes (data and hash)",{"type":119,"tag":157,"props":563,"children":564},{},[565],{"type":124,"value":566},"Number of data blocks",{"type":119,"tag":157,"props":568,"children":569},{},[570],{"type":124,"value":571},"Hash algorithm",{"type":119,"tag":157,"props":573,"children":574},{},[575],{"type":124,"value":576},"Root hash and salt",{"type":119,"tag":120,"props":578,"children":579},{},[580],{"type":124,"value":581},"A FIT signature does not automatically authenticate every boot argument. Trace the root digest from a verified object through the actual boot script and environment. Prevent mutable arguments from replacing that digest or bypassing verification.",{"type":119,"tag":127,"props":583,"children":585},{"id":584},"initramfs-based-setup-recommended",[586],{"type":124,"value":587},"Initramfs-based setup (recommended)",{"type":119,"tag":120,"props":589,"children":590},{},[591],{"type":124,"value":592},"For more flexibility, set up dm-verity in the initramfs:",{"type":119,"tag":376,"props":594,"children":596},{"code":595,"language":379,"meta":108,"className":380,"style":108},"#!/bin/sh\n# In init script\nset -eu\n: \"${ROOT_HASH:?Missing authenticated root digest}\"\nif ! veritysetup open /dev/mmcblk0p2 rootfs /dev/mmcblk0p3 \"$ROOT_HASH\"; then\n    echo \"Root verification setup failed\" >&2\n    exit 1\nfi\nif ! mount -o ro /dev/mapper/rootfs /newroot; then\n    veritysetup close rootfs\n    echo \"Verified root mount failed\" >&2\n    exit 1\nfi\nexec switch_root /newroot /sbin/init\n# A failed exec must terminate in the recovery environment.\nexit 1\n",[597],{"type":119,"tag":367,"props":598,"children":599},{"__ignoreMap":108},[600,608,616,630,679,742,760,773,781,826,845,862,874,882,905,914],{"type":119,"tag":386,"props":601,"children":602},{"class":388,"line":389},[603],{"type":119,"tag":386,"props":604,"children":605},{"style":393},[606],{"type":124,"value":607},"#!/bin/sh\n",{"type":119,"tag":386,"props":609,"children":610},{"class":388,"line":399},[611],{"type":119,"tag":386,"props":612,"children":613},{"style":393},[614],{"type":124,"value":615},"# In init script\n",{"type":119,"tag":386,"props":617,"children":618},{"class":388,"line":424},[619,625],{"type":119,"tag":386,"props":620,"children":622},{"style":621},"--shiki-default:#79B8FF",[623],{"type":124,"value":624},"set",{"type":119,"tag":386,"props":626,"children":627},{"style":621},[628],{"type":124,"value":629}," -eu\n",{"type":119,"tag":386,"props":631,"children":632},{"class":388,"line":434},[633,638,643,648,654,659,664,669,674],{"type":119,"tag":386,"props":634,"children":635},{"style":621},[636],{"type":124,"value":637},":",{"type":119,"tag":386,"props":639,"children":640},{"style":408},[641],{"type":124,"value":642}," \"${",{"type":119,"tag":386,"props":644,"children":646},{"style":645},"--shiki-default:#E1E4E8",[647],{"type":124,"value":511},{"type":119,"tag":386,"props":649,"children":651},{"style":650},"--shiki-default:#F97583",[652],{"type":124,"value":653},":?",{"type":119,"tag":386,"props":655,"children":656},{"style":645},[657],{"type":124,"value":658},"Missing",{"type":119,"tag":386,"props":660,"children":661},{"style":645},[662],{"type":124,"value":663}," authenticated",{"type":119,"tag":386,"props":665,"children":666},{"style":645},[667],{"type":124,"value":668}," root",{"type":119,"tag":386,"props":670,"children":671},{"style":645},[672],{"type":124,"value":673}," digest",{"type":119,"tag":386,"props":675,"children":676},{"style":408},[677],{"type":124,"value":678},"}\"\n",{"type":119,"tag":386,"props":680,"children":681},{"class":388,"line":443},[682,687,692,697,702,707,712,717,722,727,732,737],{"type":119,"tag":386,"props":683,"children":684},{"style":650},[685],{"type":124,"value":686},"if",{"type":119,"tag":386,"props":688,"children":689},{"style":650},[690],{"type":124,"value":691}," !",{"type":119,"tag":386,"props":693,"children":694},{"style":403},[695],{"type":124,"value":696}," veritysetup",{"type":119,"tag":386,"props":698,"children":699},{"style":408},[700],{"type":124,"value":701}," open",{"type":119,"tag":386,"props":703,"children":704},{"style":408},[705],{"type":124,"value":706}," /dev/mmcblk0p2",{"type":119,"tag":386,"props":708,"children":709},{"style":408},[710],{"type":124,"value":711}," rootfs",{"type":119,"tag":386,"props":713,"children":714},{"style":408},[715],{"type":124,"value":716}," /dev/mmcblk0p3",{"type":119,"tag":386,"props":718,"children":719},{"style":408},[720],{"type":124,"value":721}," \"",{"type":119,"tag":386,"props":723,"children":724},{"style":645},[725],{"type":124,"value":726},"$ROOT_HASH",{"type":119,"tag":386,"props":728,"children":729},{"style":408},[730],{"type":124,"value":731},"\"",{"type":119,"tag":386,"props":733,"children":734},{"style":645},[735],{"type":124,"value":736},"; ",{"type":119,"tag":386,"props":738,"children":739},{"style":650},[740],{"type":124,"value":741},"then\n",{"type":119,"tag":386,"props":743,"children":744},{"class":388,"line":452},[745,750,755],{"type":119,"tag":386,"props":746,"children":747},{"style":621},[748],{"type":124,"value":749},"    echo",{"type":119,"tag":386,"props":751,"children":752},{"style":408},[753],{"type":124,"value":754}," \"Root verification setup failed\"",{"type":119,"tag":386,"props":756,"children":757},{"style":650},[758],{"type":124,"value":759}," >&2\n",{"type":119,"tag":386,"props":761,"children":762},{"class":388,"line":461},[763,768],{"type":119,"tag":386,"props":764,"children":765},{"style":621},[766],{"type":124,"value":767},"    exit",{"type":119,"tag":386,"props":769,"children":770},{"style":621},[771],{"type":124,"value":772}," 1\n",{"type":119,"tag":386,"props":774,"children":775},{"class":388,"line":470},[776],{"type":119,"tag":386,"props":777,"children":778},{"style":650},[779],{"type":124,"value":780},"fi\n",{"type":119,"tag":386,"props":782,"children":784},{"class":388,"line":783},9,[785,789,793,798,803,808,813,818,822],{"type":119,"tag":386,"props":786,"children":787},{"style":650},[788],{"type":124,"value":686},{"type":119,"tag":386,"props":790,"children":791},{"style":650},[792],{"type":124,"value":691},{"type":119,"tag":386,"props":794,"children":795},{"style":403},[796],{"type":124,"value":797}," mount",{"type":119,"tag":386,"props":799,"children":800},{"style":621},[801],{"type":124,"value":802}," -o",{"type":119,"tag":386,"props":804,"children":805},{"style":408},[806],{"type":124,"value":807}," ro",{"type":119,"tag":386,"props":809,"children":810},{"style":408},[811],{"type":124,"value":812}," /dev/mapper/rootfs",{"type":119,"tag":386,"props":814,"children":815},{"style":408},[816],{"type":124,"value":817}," /newroot",{"type":119,"tag":386,"props":819,"children":820},{"style":645},[821],{"type":124,"value":736},{"type":119,"tag":386,"props":823,"children":824},{"style":650},[825],{"type":124,"value":741},{"type":119,"tag":386,"props":827,"children":829},{"class":388,"line":828},10,[830,835,840],{"type":119,"tag":386,"props":831,"children":832},{"style":403},[833],{"type":124,"value":834},"    veritysetup",{"type":119,"tag":386,"props":836,"children":837},{"style":408},[838],{"type":124,"value":839}," close",{"type":119,"tag":386,"props":841,"children":842},{"style":408},[843],{"type":124,"value":844}," rootfs\n",{"type":119,"tag":386,"props":846,"children":848},{"class":388,"line":847},11,[849,853,858],{"type":119,"tag":386,"props":850,"children":851},{"style":621},[852],{"type":124,"value":749},{"type":119,"tag":386,"props":854,"children":855},{"style":408},[856],{"type":124,"value":857}," \"Verified root mount failed\"",{"type":119,"tag":386,"props":859,"children":860},{"style":650},[861],{"type":124,"value":759},{"type":119,"tag":386,"props":863,"children":865},{"class":388,"line":864},12,[866,870],{"type":119,"tag":386,"props":867,"children":868},{"style":621},[869],{"type":124,"value":767},{"type":119,"tag":386,"props":871,"children":872},{"style":621},[873],{"type":124,"value":772},{"type":119,"tag":386,"props":875,"children":877},{"class":388,"line":876},13,[878],{"type":119,"tag":386,"props":879,"children":880},{"style":650},[881],{"type":124,"value":780},{"type":119,"tag":386,"props":883,"children":885},{"class":388,"line":884},14,[886,891,896,900],{"type":119,"tag":386,"props":887,"children":888},{"style":621},[889],{"type":124,"value":890},"exec",{"type":119,"tag":386,"props":892,"children":893},{"style":408},[894],{"type":124,"value":895}," switch_root",{"type":119,"tag":386,"props":897,"children":898},{"style":408},[899],{"type":124,"value":817},{"type":119,"tag":386,"props":901,"children":902},{"style":408},[903],{"type":124,"value":904}," /sbin/init\n",{"type":119,"tag":386,"props":906,"children":908},{"class":388,"line":907},15,[909],{"type":119,"tag":386,"props":910,"children":911},{"style":393},[912],{"type":124,"value":913},"# A failed exec must terminate in the recovery environment.\n",{"type":119,"tag":386,"props":915,"children":917},{"class":388,"line":916},16,[918,923],{"type":119,"tag":386,"props":919,"children":920},{"style":621},[921],{"type":124,"value":922},"exit",{"type":119,"tag":386,"props":924,"children":925},{"style":621},[926],{"type":124,"value":772},{"type":119,"tag":120,"props":928,"children":929},{},[930],{"type":124,"value":931},"This illustrative fragment stops on mapping and mount failures. A supervisor or explicit boot recovery mechanism must handle failure. If this script is PID 1, exiting can panic the kernel; exit alone is not a recovery mechanism. Select a known signed recovery image, retain the failure reason and stop automatic retries after the configured limit. The snippet has not been boot-tested here and requires integration with the target init system.",{"type":119,"tag":127,"props":933,"children":935},{"id":934},"filesystem-choices-for-dm-verity",[936],{"type":124,"value":937},"Filesystem choices for dm-verity",{"type":119,"tag":120,"props":939,"children":940},{},[941],{"type":124,"value":942},"dm-verity requires a read-only filesystem. Common choices:",{"type":119,"tag":306,"props":944,"children":945},{},[946,956,974],{"type":119,"tag":157,"props":947,"children":948},{},[949,954],{"type":119,"tag":313,"props":950,"children":951},{},[952],{"type":124,"value":953},"SquashFS:",{"type":124,"value":955}," Compressed, widely supported, good tool ecosystem. Typical for embedded systems with flash storage constraints.",{"type":119,"tag":157,"props":957,"children":958},{},[959,964,966,972],{"type":119,"tag":313,"props":960,"children":961},{},[962],{"type":124,"value":963},"EROFS:",{"type":124,"value":965}," Evaluate compression and workload behaviour using the ",{"type":119,"tag":139,"props":967,"children":969},{"href":968},"/doc/erofs-vs-squashfs-2026/",[970],{"type":124,"value":971},"EROFS vs SquashFS",{"type":124,"value":973}," comparison and benchmark method.",{"type":119,"tag":157,"props":975,"children":976},{},[977,982],{"type":119,"tag":313,"props":978,"children":979},{},[980],{"type":124,"value":981},"ext4 (read-only):",{"type":124,"value":983}," An ext4 image mounted read-only works with dm-verity but offers no compression. Useful when you need ext4 tooling compatibility.",{"type":119,"tag":127,"props":985,"children":987},{"id":986},"error-handling-strategies",[988],{"type":124,"value":989},"Error handling strategies",{"type":119,"tag":120,"props":991,"children":992},{},[993,995,1001,1002,1008,1010,1016],{"type":124,"value":994},"The kernel dm-verity interface documents default I/O errors and optional ",{"type":119,"tag":367,"props":996,"children":998},{"className":997},[],[999],{"type":124,"value":1000},"restart_on_corruption",{"type":124,"value":286},{"type":119,"tag":367,"props":1003,"children":1005},{"className":1004},[],[1006],{"type":124,"value":1007},"panic_on_corruption",{"type":124,"value":1009}," behaviour. These are mapping options. Configure the selected cryptsetup and kernel versions together and test the resulting table. A generic kernel parameter cannot stand in for this integration. ",{"type":119,"tag":139,"props":1011,"children":1013},{"href":1012},"https://docs.kernel.org/admin-guide/device-mapper/verity.html",[1014],{"type":124,"value":1015},"Kernel dm-verity documentation",{"type":124,"value":293},{"type":119,"tag":120,"props":1018,"children":1019},{},[1020],{"type":124,"value":1021},"Store bounded failure information outside the failing root mapping where possible. A panic can prevent userspace from writing a log. Test what your persistent console or bootloader records. Recovery should select an independently authenticated image, limit retries and provide an operator-visible failure if both slots fail.",{"type":119,"tag":120,"props":1023,"children":1024},{},[1025],{"type":124,"value":1026},"Optional forward error correction needs its own generated metadata and measured allocation. Record the correction parameters and test corruption both within and beyond the configured correction capacity. Successful recovery still depends on a trusted expected digest.",{"type":119,"tag":127,"props":1028,"children":1030},{"id":1029},"update-strategies-with-dm-verity",[1031],{"type":124,"value":1032},"Update strategies with dm-verity",{"type":119,"tag":120,"props":1034,"children":1035},{},[1036],{"type":124,"value":1037},"Since dm-verity protects a read-only image, updates mean replacing the entire image and hash tree. This aligns naturally with A/B update schemes:",{"type":119,"tag":153,"props":1039,"children":1040},{},[1041,1046,1051,1056],{"type":119,"tag":157,"props":1042,"children":1043},{},[1044],{"type":124,"value":1045},"Download new rootfs image + hash tree to the inactive slot",{"type":119,"tag":157,"props":1047,"children":1048},{},[1049],{"type":124,"value":1050},"Authenticate the update manifest and verify its image and hash-tree digests",{"type":119,"tag":157,"props":1052,"children":1053},{},[1054],{"type":124,"value":1055},"Update the boot configuration to point to the new slot",{"type":119,"tag":157,"props":1057,"children":1058},{},[1059],{"type":124,"value":1060},"Reboot",{"type":119,"tag":120,"props":1062,"children":1063},{},[1064,1066,1072],{"type":124,"value":1065},"Plan ",{"type":119,"tag":139,"props":1067,"children":1069},{"href":1068},"/doc/ota-updates-rauc-swupdate-mender-2026/",[1070],{"type":124,"value":1071},"OTA updates with RAUC, SWUpdate and Mender",{"type":124,"value":1073}," together with the slot-specific hash tree and authenticated root digest.",{"type":119,"tag":127,"props":1075,"children":1077},{"id":1076},"writable-overlay-for-runtime-data",[1078],{"type":124,"value":1079},"Writable overlay for runtime data",{"type":119,"tag":120,"props":1081,"children":1082},{},[1083],{"type":124,"value":1084},"A fully read-only root filesystem is impractical for most systems. Logs, configuration changes, and runtime state need writeable storage. The standard pattern is an overlayfs mount:",{"type":119,"tag":376,"props":1086,"children":1088},{"code":1087,"language":379,"meta":108,"className":380,"style":108},"mount -t overlay overlay -o lowerdir=/rootfs,upperdir=/data/upper,workdir=/data/work /merged\n",[1089],{"type":119,"tag":367,"props":1090,"children":1091},{"__ignoreMap":108},[1092],{"type":119,"tag":386,"props":1093,"children":1094},{"class":388,"line":389},[1095,1100,1105,1110,1114,1118,1123],{"type":119,"tag":386,"props":1096,"children":1097},{"style":403},[1098],{"type":124,"value":1099},"mount",{"type":119,"tag":386,"props":1101,"children":1102},{"style":621},[1103],{"type":124,"value":1104}," -t",{"type":119,"tag":386,"props":1106,"children":1107},{"style":408},[1108],{"type":124,"value":1109}," overlay",{"type":119,"tag":386,"props":1111,"children":1112},{"style":408},[1113],{"type":124,"value":1109},{"type":119,"tag":386,"props":1115,"children":1116},{"style":621},[1117],{"type":124,"value":802},{"type":119,"tag":386,"props":1119,"children":1120},{"style":408},[1121],{"type":124,"value":1122}," lowerdir=/rootfs,upperdir=/data/upper,workdir=/data/work",{"type":119,"tag":386,"props":1124,"children":1125},{"style":408},[1126],{"type":124,"value":1127}," /merged\n",{"type":119,"tag":120,"props":1129,"children":1130},{},[1131],{"type":124,"value":1132},"The lower layer is the dm-verity-protected read-only image. The upper layer is on a separate, writable partition. Changes appear in the upper layer without modifying the verified lower layer. Executables in that writable upper layer do not inherit authentication from dm-verity. Restrict execution sources or enforce an independent verification policy for updated applications.",{"type":119,"tag":127,"props":1134,"children":1136},{"id":1135},"performance-considerations",[1137],{"type":124,"value":1138},"Performance considerations",{"type":119,"tag":120,"props":1140,"children":1141},{},[1142],{"type":124,"value":1143},"Measure the actual image, storage and workload with verification enabled. Retain cold and warm cache conditions, request sizes, kernel configuration and raw results. Account separately for image bytes, hash-tree bytes and any error-correction data. No general percentage predicts the cost on every device.",{"type":119,"tag":120,"props":1145,"children":1146},{},[1147,1149,1155],{"type":124,"value":1148},"Use the ",{"type":119,"tag":139,"props":1150,"children":1152},{"href":1151},"/resources/boot-integrity-review-v1.md",[1153],{"type":124,"value":1154},"boot-integrity review worksheet",{"type":124,"value":1156}," to record the trusted digest source and negative tests. Include changed image bytes, a wrong digest, mount failure and exhausted recovery attempts. Leave results pending until the complete boot path has been exercised.",{"type":119,"tag":127,"props":1158,"children":1160},{"id":1159},"adoption-across-linux-distributions",[1161],{"type":124,"value":1162},"Adoption across Linux distributions",{"type":119,"tag":120,"props":1164,"children":1165},{},[1166,1168,1174],{"type":124,"value":1167},"dm-verity and immutable root filesystem patterns have become standard practice across modern Linux distributions. Distributions like ",{"type":119,"tag":139,"props":1169,"children":1171},{"href":1170},"https://ubuntuportal.com/posts/ubuntu-2604-resolute-raccoon-features/",[1172],{"type":124,"value":1173},"Ubuntu Resolute Raccoon Features",{"type":124,"value":1175}," are increasingly shipping with immutable filesystem tooling and secure boot integration, reflecting how these patterns have moved from specialist embedded systems into general-purpose Linux environments. Understanding how these approaches work - and where their constraints lie - helps portable OS projects make informed architectural decisions.",{"type":119,"tag":127,"props":1177,"children":1179},{"id":1178},"integration-with-proteanos",[1180],{"type":124,"value":1181},"Integration with ProteanOS",{"type":119,"tag":120,"props":1183,"children":1184},{},[1185,1187,1193],{"type":124,"value":1186},"ProteanOS build workflows can integrate dm-verity hash tree generation as a post-build step. Review the ",{"type":119,"tag":139,"props":1188,"children":1190},{"href":1189},"/dev/prokit/",[1191],{"type":124,"value":1192},"ProKit documentation",{"type":124,"value":1194}," and selected source before assuming a post-processing interface exists.",{"type":119,"tag":120,"props":1196,"children":1197},{},[1198],{"type":124,"value":1199},"For new hardware platforms, the board bring-up documentation includes dm-verity validation as a security milestone after basic boot and secure boot are working.",{"type":119,"tag":127,"props":1201,"children":1203},{"id":1202},"summary",[1204],{"type":124,"value":1205},"Summary",{"type":119,"tag":120,"props":1207,"children":1208},{},[1209],{"type":124,"value":1210},"dm-verity provides runtime integrity verification for read-only root filesystems. Combined with secure boot, it can protect the explicitly verified execution path. The implementation involves generating a hash tree, passing the root hash through a verified channel (signed kernel command line or initramfs), and handling corruption gracefully. Plan your partition layout and update strategy around the read-only constraint from the start.",{"type":119,"tag":1212,"props":1213,"children":1214},"style",{},[1215],{"type":124,"value":1216},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":108,"searchDepth":399,"depth":399,"links":1218},[1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232],{"id":129,"depth":399,"text":132},{"id":184,"depth":399,"text":187},{"id":296,"depth":399,"text":299},{"id":357,"depth":399,"text":360},{"id":484,"depth":399,"text":487},{"id":584,"depth":399,"text":587},{"id":934,"depth":399,"text":937},{"id":986,"depth":399,"text":989},{"id":1029,"depth":399,"text":1032},{"id":1076,"depth":399,"text":1079},{"id":1135,"depth":399,"text":1138},{"id":1159,"depth":399,"text":1162},{"id":1178,"depth":399,"text":1181},{"id":1202,"depth":399,"text":1205},"markdown","content:doc:rootfs-integrity-dm-verity-immutable-images.md","content","doc/rootfs-integrity-dm-verity-immutable-images.md","doc/rootfs-integrity-dm-verity-immutable-images","md",1795684259859]