From bbde9bb320c94865b45af881695a5d4f9e2a58cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Trellu?= Date: Mon, 4 Mar 2019 15:03:14 -0500 Subject: [PATCH] [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 --- diskimage_builder/elements/lvm/root.d/10-lvm-check-distro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diskimage_builder/elements/lvm/root.d/10-lvm-check-distro b/diskimage_builder/elements/lvm/root.d/10-lvm-check-distro index 1a54caf5e..bad877835 100755 --- a/diskimage_builder/elements/lvm/root.d/10-lvm-check-distro +++ b/diskimage_builder/elements/lvm/root.d/10-lvm-check-distro @@ -11,7 +11,7 @@ if [ 'ubuntu' != $DISTRO_NAME ]; then exit 1 fi -if [ 'xenial' != $DIB_RELEASE ]; then - echo "Only xenial is supported for LVM support. The DIB_RELEASE is set to $DIB_RELEASE" +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