diskimage-builder/diskimage_builder/elements/lvm/root.d/10-lvm-check-distro
Rafal Lewandowski f9287fe2ae changed release check logic in lvm element
Change-Id: I83b3c2dad3b0d6006ae23307ae7a8a83b12806e7
2022-09-02 12:37:15 +02: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 [[ $DIB_RELEASE =~ trusty ]]; then
echo "Trusty release does not have LVM support. The DIB_RELEASE is set to $DIB_RELEASE"
exit 1
fi