> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 自定义 initramfs 软件包

要更新 initramfs 软件包内容，请修改 `meta-qcom/recipes-kernel/images/initramfs-qcom-image.bb` 中的 `PACKAGE_INSTALL` 列表：

```text theme={null}
DESCRIPTION = "Ramdisk image for pivoting into rootfs"

PACKAGE_INSTALL += " \
    base-passwd \
    initramfs-module-copy-modules \
    initramfs-module-rootfs \
    initramfs-module-udev \
    ${VIRTUAL-RUNTIME_base-utils} \
    ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS} \
    ${ROOTFS_BOOTSTRAP_INSTALL} \
    "
```

修改 `PACKAGE_INSTALL` 后，重新构建完整镜像以应用更改：

```bash theme={null}
bitbake qcom-multimedia-image
```

有关构建和集成树外（out-of-tree）内核模块的说明，请参阅[管理树外内核模块](./out-of-tree-kernel-modules)。
