{
    "content": [
        {
            "type": "text",
            "text": "# update-initramfs (man)\n\n## NAME\n\nupdate-initramfs - generate an initramfs image\n\n## SYNOPSIS\n\nupdate-initramfs {-c|-d|-u} [-k version] [-v] [-b directory]\n\n## DESCRIPTION\n\nThe  update-initramfs script manages your initramfs images on your local box.  It keeps track\nof the existing initramfs archives in /boot.  There are three modes of operation create,  up‐\ndate or delete.  You must at least specify one of those modes.\n\n## TLDR\n\n> Manage initramfs.\n\n- Create a new initramfs (use `all` for all installed kernel versions):\n  `sudo update-initramfs -c -k {{kernel_version}}`\n- Update an existing initramfs:\n  `sudo update-initramfs -u`\n- Remove an existing initramfs (be careful when using `all` for `kernel_version`):\n  `sudo update-initramfs -d -k {{kernel_version}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS** (1 subsections)\n- **DESCRIPTION**\n- **OPTIONS** (7 subsections)\n- **EXAMPLES** (2 subsections)\n- **FILES**\n- **AUTHOR**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "update-initramfs",
        "section": "",
        "mode": "man",
        "summary": "update-initramfs - generate an initramfs image",
        "synopsis": "update-initramfs {-c|-d|-u} [-k version] [-v] [-b directory]",
        "tldr_summary": "Manage initramfs.",
        "tldr_examples": [
            {
                "description": "Create a new initramfs (use `all` for all installed kernel versions)",
                "command": "sudo update-initramfs -c -k {{kernel_version}}"
            },
            {
                "description": "Update an existing initramfs",
                "command": "sudo update-initramfs -u"
            },
            {
                "description": "Remove an existing initramfs (be careful when using `all` for `kernel_version`)",
                "command": "sudo update-initramfs -d -k {{kernel_version}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "-k",
                "long": null,
                "arg": null,
                "description": "Set the specific kernel version for whom the initramfs will be generated. For example the output of uname -r for your currently running kernel. This argument is optional for update. The default is the latest kernel version. The use of \"all\" for the version string specifies that update-initramfs should operate on all installed kernel versions (with -c), or on all installed kernel versions that already have an initramfs (with -d or -u)."
            },
            {
                "flag": "-c",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-u",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-d",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-v",
                "long": null,
                "arg": null,
                "description": "tion."
            },
            {
                "flag": "-b",
                "long": null,
                "arg": null,
                "description": "Set an different bootdir for the image creation."
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "Print a short help page describing the available options in update-initramfs."
            }
        ],
        "examples": [
            "Update the initramfs of the newest kernel:",
            "Create the initramfs for a specific kernel:"
        ],
        "see_also": [
            {
                "name": "initramfs.conf",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/initramfs.conf/5/json"
            },
            {
                "name": "initramfs-tools",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/initramfs-tools/7/json"
            },
            {
                "name": "mkinitramfs",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/mkinitramfs/8/json"
            },
            {
                "name": "lsinitramfs",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lsinitramfs/8/json"
            },
            {
                "name": "UPDATE-INITRAMFS",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/UPDATE-INITRAMFS/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "update-initramfs -h",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-k",
                        "lines": 9,
                        "flag": "-k"
                    },
                    {
                        "name": "-c",
                        "lines": 1,
                        "flag": "-c"
                    },
                    {
                        "name": "-u",
                        "lines": 1,
                        "flag": "-u"
                    },
                    {
                        "name": "-d",
                        "lines": 1,
                        "flag": "-d"
                    },
                    {
                        "name": "-v",
                        "lines": 3,
                        "flag": "-v"
                    },
                    {
                        "name": "-b",
                        "lines": 3,
                        "flag": "-b"
                    },
                    {
                        "name": "-h --help",
                        "lines": 3,
                        "flag": "-h",
                        "long": "--help"
                    }
                ]
            },
            {
                "name": "EXAMPLES",
                "lines": 3,
                "subsections": [
                    {
                        "name": "update-initramfs -u",
                        "lines": 3
                    },
                    {
                        "name": "update-initramfs -c -k 2.6.18-1-686",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "FILES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "update-initramfs - generate an initramfs image\n\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "update-initramfs {-c|-d|-u} [-k version] [-v] [-b directory]",
                "subsections": [
                    {
                        "name": "update-initramfs -h",
                        "content": ""
                    }
                ]
            },
            "DESCRIPTION": {
                "content": "The  update-initramfs script manages your initramfs images on your local box.  It keeps track\nof the existing initramfs archives in /boot.  There are three modes of operation create,  up‐\ndate or delete.  You must at least specify one of those modes.\n\nThe  initramfs is a gzipped cpio archive.  At boot time, the kernel unpacks that archive into\nRAM disk, mounts and uses it as initial root file system. All finding of the root device hap‐\npens in this early userspace.\n\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-k",
                        "content": "Set the specific kernel version for whom the initramfs will be generated.  For example\nthe output of uname -r for your currently running kernel.  This argument  is  optional\nfor update. The default is the latest kernel version.\n\nThe use of \"all\" for the version string specifies that update-initramfs should operate\non all installed kernel versions (with -c), or on all installed kernel  versions  that\nalready have an initramfs (with -d or -u).\n\n",
                        "flag": "-k"
                    },
                    {
                        "name": "-c",
                        "content": "",
                        "flag": "-c"
                    },
                    {
                        "name": "-u",
                        "content": "",
                        "flag": "-u"
                    },
                    {
                        "name": "-d",
                        "content": "",
                        "flag": "-d"
                    },
                    {
                        "name": "-v",
                        "content": "tion.\n\n",
                        "flag": "-v"
                    },
                    {
                        "name": "-b",
                        "content": "Set an different bootdir for the image creation.\n\n",
                        "flag": "-b"
                    },
                    {
                        "name": "-h --help",
                        "content": "Print a short help page describing the available options in update-initramfs.\n\n",
                        "flag": "-h",
                        "long": "--help"
                    }
                ]
            },
            "EXAMPLES": {
                "content": "Update the initramfs of the newest kernel:\n\n",
                "subsections": [
                    {
                        "name": "update-initramfs -u",
                        "content": "Create the initramfs for a specific kernel:\n\n"
                    },
                    {
                        "name": "update-initramfs -c -k 2.6.18-1-686",
                        "content": ""
                    }
                ]
            },
            "FILES": {
                "content": "/etc/initramfs-tools/update-initramfs.conf\n\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "The initramfs-tools are written by Maximilian Attems <maks@debian.org>,  Jeff  Bailey  <jbai‐\nley@raspberryginger.com> and numerous others.\n\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "initramfs.conf(5), initramfs-tools(7), mkinitramfs(8), lsinitramfs(8).\n\n\n\ninitramfs-tools                              2014/10/16                          UPDATE-INITRAMFS(8)",
                "subsections": []
            }
        }
    }
}