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