Debian Codegraph @

doc/source/commands/image_resize.rst

raw
1 .. _db_kiwi_image_resize:
2
3 kiwi-ng image resize
4 ====================
5
6 .. _db_kiwi_image_resize_synopsis:
7
8 SYNOPSIS
9 --------
10
11 .. code:: bash
12
13 kiwi-ng [global options] service <command> [<args>]
14
15 kiwi-ng image resize --help
16 kiwi-ng image resize --target-dir=<directory> --size=<size>
17 [--root=<directory>]
18
19 .. _db_kiwi_image_resize_desc:
20
21 DESCRIPTION
22 -----------
23
24 For disk-based images, this allows you to resize the image to a new disk geometry. The
25 additional space is free and not in use by the image. The OEM boot code in
26 {kiwi} offers a resizing procedure that can be used to make use of the
27 additional free space. For OEM image builds, it is advisable to run the resizing
28 operation.
29
30 .. _db_kiwi_image_resize_opts:
31
32 OPTIONS
33 -------
34
35 --root=<directory>
36
37 The path to the root directory. If not specified, kiwi
38 searches for the root directory in `build/image-root` under
39 the specified target directory.
40
41 --size=<size>
42
43 The new size of the image. The value is either a size in bytes,
44 or it can be specified with m (MB) or g (GB). Example: 20g
45
46 --target-dir=<directory>
47
48 The directory containing the kiwi build results.