diskimage-builder/diskimage_builder/elements/lvm/root.d/10-lvm-check-distro
Gaëtan Trellu bbde9bb320 [lvm] Add Ubuntu bionic as supported distro
The way how LVM is created on Ubuntu Xenial and Ubuntu Bionic
is the same.

Change-Id: I16d548f6393dd3cdfd5a9befa5c0ef0f6db92df1
2019-03-04 15:05:37 -05:00

18 lines
400 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 =~ (xenial|bionic) ]]; then
echo "Only xenial and bionic are supported for LVM support. The DIB_RELEASE is set to $DIB_RELEASE"
exit 1
fi