{
    "content": [
        {
            "type": "text",
            "text": "# systemd-veritysetup-generator (man)\n\n## NAME\n\nsystemd-veritysetup-generator - Unit generator for verity protected block devices\n\n## SYNOPSIS\n\n/lib/systemd/system-generators/systemd-veritysetup-generator\n\n## DESCRIPTION\n\nsystemd-veritysetup-generator is a generator that translates kernel command line options\nconfiguring verity protected block devices into native systemd units early at boot and when\nconfiguration of the system manager is reloaded. This will create systemd-\nveritysetup@.service(8) units as necessary.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **KERNEL COMMAND LINE**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "systemd-veritysetup-generator",
        "section": "",
        "mode": "man",
        "summary": "systemd-veritysetup-generator - Unit generator for verity protected block devices",
        "synopsis": "/lib/systemd/system-generators/systemd-veritysetup-generator",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "systemd",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/systemd/1/json"
            },
            {
                "name": ".service",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/.service/8/json"
            },
            {
                "name": "veritysetup",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/veritysetup/8/json"
            },
            {
                "name": "systemd-fstab-generator",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/systemd-fstab-generator/8/json"
            },
            {
                "name": "SYSTEMD-VERITYSETUP-GENERATOR",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/SYSTEMD-VERITYSETUP-GENERATOR/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "KERNEL COMMAND LINE",
                "lines": 30,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "systemd-veritysetup-generator - Unit generator for verity protected block devices\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "/lib/systemd/system-generators/systemd-veritysetup-generator\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "systemd-veritysetup-generator is a generator that translates kernel command line options\nconfiguring verity protected block devices into native systemd units early at boot and when\nconfiguration of the system manager is reloaded. This will create systemd-\nveritysetup@.service(8) units as necessary.\n\nCurrently, only a single verity device may be set up with this generator, backing the root\nfile system of the OS.\n\nsystemd-veritysetup-generator implements systemd.generator(7).\n",
                "subsections": []
            },
            "KERNEL COMMAND LINE": {
                "content": "systemd-veritysetup-generator understands the following kernel command line parameters:\n\nsystemd.verity=, rd.systemd.verity=\nTakes a boolean argument. Defaults to \"yes\". If \"no\", disables the generator entirely.\nrd.systemd.verity= is honored only by the initial RAM disk (initrd) while systemd.verity=\nis honored by both the host system and the initrd.\n\nroothash=\nTakes a root hash value for the root file system. Expects a hash value formatted in\nhexadecimal characters of the appropriate length (i.e. most likely 256 bit/64 characters,\nor longer). If not specified via systemd.verityrootdata= and systemd.verityroothash=,\nthe hash and data devices to use are automatically derived from the specified hash value.\nSpecifically, the data partition device is looked for under a GPT partition UUID derived\nfrom the first 128bit of the root hash, the hash partition device is looked for under a\nGPT partition UUID derived from the last 128bit of the root hash. Hence it is usually\nsufficient to specify the root hash to boot from a verity protected root file system, as\ndevice paths are automatically determined from it — as long as the partition table is\nproperly set up.\n\nsystemd.verityrootdata=, systemd.verityroothash=\nThese two settings take block device paths as arguments and may be used to explicitly\nconfigure the data partition and hash partition to use for setting up the verity\nprotection for the root file system. If not specified, these paths are automatically\nderived from the roothash= argument (see above).\n\nsystemd.verityrootoptions=\nTakes a comma-separated list of dm-verity options. Expects the following options\nignore-corruption, restart-on-corruption, ignore-zero-blocks, check-at-most-once,\npanic-on-corruption and root-hash-signature. See veritysetup(8) for more details.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "systemd(1), systemd-veritysetup@.service(8), veritysetup(8), systemd-fstab-generator(8)\n\n\n\nsystemd 249                                                         SYSTEMD-VERITYSETUP-GENERATOR(8)",
                "subsections": []
            }
        }
    }
}