diskimage-builder/diskimage_builder/elements/lvm/root.d/10-lvm-check-distro
Olivier Bourdon caf565673b Fix for proper LVM support
Without this fix, a LVM based ubuntu-minimal image will fail
booting due to the fact that the boot process will not be able
to retrieve the root filesystem using LABEL=(cloud)img-rootfs

Change-Id: If4ecf65868563f7b799160a58af6312bedf956bf
2018-07-09 14:15:57 +00:00

18 lines
377 B
Bash
Executable File

#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
if [ 'ubuntu' != $DISTRO_NAME ]; then
echo "Only ubuntu is supported for LVM support. The DISTRO is set to $DISTRO_NAME"
exit 1
fi
if [ 'xenial' != $DIB_RELEASE ]; then
echo "Only xenial is supported for LVM support. The DIB_RELEASE is set to $DIB_RELEASE"
exit 1
fi