{
    "mode": "man",
    "parameter": "systemd-veritysetup-generator",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/systemd-veritysetup-generator/8/json",
    "generated": "2026-10-07T18:53:44Z",
    "synopsis": "/usr/lib/systemd/system-generators/systemd-veritysetup-generator",
    "sections": {
        "NAME": {
            "content": "systemd-veritysetup-generator - Unit generator for verity protected block devices\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "/usr/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 two verity devices may be set up with this generator, backing the root and\n/usr file systems 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 initrd while systemd.verity= is honored by both\nthe host system and the initrd.\n\nAdded in version 233.\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 128-bit of the root hash, the hash partition device is looked for under a\nGPT partition UUID derived from the last 128-bit 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\nAdded in version 233.\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\nAdded in version 233.\n\nsystemd.verityrootoptions=\nTakes a comma-separated list of dm-verity options. Expects the following options\nsuperblock=BOOLEAN, format=NUMBER, data-block-size=BYTES, hash-block-size=BYTES,\ndata-blocks=BLOCKS, hash-offset=BYTES, salt=HEX, uuid=UUID, ignore-corruption,\nrestart-on-corruption, ignore-zero-blocks, check-at-most-once, panic-on-corruption,\nhash=HASH, fec-device=PATH, fec-offset=BYTES, fec-roots=NUM and\nroot-hash-signature=PATH|base64:HEX. See veritysetup(8) for more details.\n\nAdded in version 248.\n\nusrhash=, systemd.verityusrdata=, systemd.verityusrhash=, systemd.verityusroptions=\nEquivalent to their counterparts for the root file system as described above, but apply\nto the /usr/ file system instead.\n\nAdded in version 250.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "systemd(1), systemd-veritysetup@.service(8), veritysetup(8), systemd-fstab-generator(8)\n\nsystemd 255                                                         SYSTEMD-VERITYSETUP-GENERATOR(8)",
            "subsections": []
        }
    },
    "summary": "systemd-veritysetup-generator - Unit generator for verity protected block devices",
    "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"
        }
    ]
}