Scroll to navigation

KIWI::SYSTEM::STACKBUILD(8) KIWI NG KIWI::SYSTEM::STACKBUILD(8)

NAME

kiwi::system::stackbuild - Build image based on stash containers

DESCRIPTION

Builds an image based on one or more stashes created by kiwi-ng system stash <#kiwi-system-stash>. Without --description, it rebuilds the image from the root tree and image description stored in the stash with kiwi-ng system create. With --description, it builds the given image description on top of the stash with kiwi-ng system build. The arguments after the kiwi subcommand are passed to that command, -- is accepted instead of kiwi. For an introduction, see Building based on Containers <#stackbuild>.

Note:

KIWI NG does not check if a stash fits the image description, for example nothing prevents building a Fedora image on a Leap stash.


USAGE

kiwi-ng [global options] system stackbuild \

--stash <name>... \
--target-dir <directory> \
[options] [kiwi <create options>] kiwi-ng [global options] system stackbuild \
--stash <name>... \
--target-dir <directory> \
--description <directory> \
[options] [kiwi <build options>]


OPTIONS

Option Description
--stash <name>... Required. The stash, see kiwi-ng system stash --list. Several stashes are stacked in the given order.
--target-dir <directory> Required. The directory for the build results.
--description <directory> The image description to build on top of the stash.
--from-registry <URI> Pull the stash from this registry.

EXAMPLE

$ sudo kiwi-ng system stackbuild --stash NAME --target-dir /target/rebuild \

kiwi --signing-key /path/to/key


Author

Marcus Schäfer

Copyright

2020-2026, Marcus Schäfer

November 13, 2026 11.1.14