| KIWI::IMAGE::RESIZE(8) | KIWI NG | KIWI::IMAGE::RESIZE(8) |
NAME¶
kiwi::image::resize - Resize disk images to new geometry
DESCRIPTION¶
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
Author¶
Marcus Schäfer
Copyright¶
2020-2026, Marcus Schäfer
| November 13, 2026 | 11.1.14 |