
replace-partition ----------------- A standalone element which consumes a base image which was created with ``diskimage-builder`` and rebuilds it without making any packaging changes. This allows the image contents to be copied to a new block device layout. Use cases for this element include: * Rebuilding a whole-disk image with a different partition layout by setting ``DIB_BLOCK_DEVICE_CONFIG`` * Rebuilding a whole-disk image with the same partitions but with the sector size increased to 4096 bytes replace-partition-redhat ------------------------ A redhat family specific version of the ``replace-partition`` element. Change-Id: I7399c4bf6a4d6acfef43f871df0a40e2961ed44e
26 lines
714 B
Bash
26 lines
714 B
Bash
if [ -z "${DISTRO_NAME:-}" ]; then
|
|
echo "DISTRO_NAME is not set! Can not continue"
|
|
exit 1
|
|
fi
|
|
if [ -z "${DIB_RELEASE:-}" ]; then
|
|
echo "DIB_RELEASE is not set! Can not continue"
|
|
exit 1
|
|
fi
|
|
if [ -z "${EFI_BOOT_DIR:-}" ]; then
|
|
echo "EFI_BOOT_DIR is not set! Can not continue"
|
|
exit 1
|
|
fi
|
|
if [ -z "${DIB_INIT_SYSTEM:-}" ]; then
|
|
echo "DIB_INIT_SYSTEM is not set! Can not continue"
|
|
exit 1
|
|
fi
|
|
if [ -z "${DIB_BLOCK_DEVICE:-}" ]; then
|
|
echo "DIB_BLOCK_DEVICE is not set! Can not continue"
|
|
exit 1
|
|
fi
|
|
export DIB_SKIP_GRUB_PACKAGE_INSTALL=True
|
|
export DIB_SKIP_BASE_PACKAGE_INSTALL=1
|
|
export DIB_AVOID_PACKAGES_UPDATE=1
|
|
export DIB_IMAGE_EXTRACT_GUESTFISH=True
|
|
export DIB_SOURCE_BLOCK_SIZE=512
|