Skip to content

How to build an minimalistic image? #16639

@darinkes

Description

@darinkes

I want to build an minimalistic image where just needed packages are installed.

I'm doing this in an Ubuntu 22.04 WSL Instance:

make toolchain REBUILD_TOOLS=y
make image -j$(nproc) REBUILD_TOOLS=n REBUILD_PACKAGES=n CONFIG_FILE=imageconfigs/minimal-os.json

But I noticed after booting the created vhdx in HyperV that way more packages are installed than there are defined in the minimal-os-packages.json config file. For example gcc, perl and a lot of other stuff which are not a dependency.

So my question is, if and how you can build an image with just the packages defined (plus dependencies) in the PackageLists JSONs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions