File: README.rst

package info (click to toggle)
python-diskimage-builder 3.37.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,572 kB
  • sloc: sh: 7,380; python: 6,444; makefile: 37
file content (22 lines) | stat: -rw-r--r-- 777 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
========================
replace-partition-redhat
========================

A redhat family specific version of the ``replace-partition`` element.

A standalone element which consumes a base image which was created with
``diskimage-builder`` and rebuilds it without making any packaging changes.

Example
=======

The following will use ``./my-dib-image.qcow2`` as the base image and create a
new image ``my-dib-image-custom.qcow2`` with the partition layout defined in
``./block-device-custom.yaml``:

.. code-block:: bash

    export DISTRO_NAME=rhel
    export DIB_BLOCK_DEVICE_CONFIG=file://./block-device-custom.yaml
    export DIB_LOCAL_IMAGE=./my-dib-image.qcow2
    disk-image-create -x -a x86_64 -o my-dib-image-custom.qcow2 --image-size 6GiB replace-partition-redhat