kiwi-ng image resize

Resizes a disk image. The added space is not used by the image until the partitions are resized, for example by the resize on first boot of an oem disk image. The command is therefore mostly useful for oem images.

Usage

kiwi-ng [global options] image resize \
    --target-dir <directory> \
    --size <size> \
    [options]

Options

Option

Description

--target-dir <directory>

Required. The target directory of the build.

--size <size>

Required. The new size in bytes, or with the unit m (MiB) or g (GiB), for example 20g.

--root <directory>

The root tree of the image. Default: <target-dir>/build/image-root.

Example

$ sudo kiwi-ng image resize --target-dir /tmp/myimage --size 20g