#!/bin/bash # dib-lint: disable=safe_sudo if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then set -x fi set -eu set -o pipefail # sanity checks source $_LIB/die [ -n "$IMAGE_BLOCK_DEVICE" ] || die "Image block device not set" # execute sfdisk with the given partitioning schema sudo sfdisk -uS --force $IMAGE_BLOCK_DEVICE <