2018-06-18 15:19:02 +00:00
|
|
|
#!/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
|
|
|
|
|
2019-03-04 20:03:14 +00:00
|
|
|
if [[ ! $DIB_RELEASE =~ (xenial|bionic) ]]; then
|
|
|
|
echo "Only xenial and bionic are supported for LVM support. The DIB_RELEASE is set to $DIB_RELEASE"
|
2018-06-18 15:19:02 +00:00
|
|
|
exit 1
|
|
|
|
fi
|