From 9f0b35b807386abac8077509779e07e661ae7e25 Mon Sep 17 00:00:00 2001 From: Goutham Pacha Ravi Date: Tue, 25 Sep 2018 12:42:14 -0700 Subject: [PATCH] [ZFSOnLinux] Allow devstack bootstrap in Ubuntu > 16.04 The package seems to be present and maintained in the ubuntu repositories for all releases following Xenial Xerus. [1] https://packages.ubuntu.com/search?keywords=zfsutils-linux Change-Id: If212e0482b360f3c3888918242dba6a710ab2818 Needed-By: https://review.openstack.org/#/c/604929/ --- devstack/plugin.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 82804c2944..efa47f2b87 100755 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -718,11 +718,12 @@ function install_manila { sudo apt-get install -y linux-headers-generic sudo apt-get install -y build-essential sudo apt-get install -y ubuntu-zfs - elif [[ $(lsb_release -s -d) == *"16.04"* ]]; then - # Xenial + + elif [[ $(echo $(lsb_release -rs) '>=' 16.04 | bc -l) == 1 ]]; then + # Xenial and beyond sudo apt-get install -y zfsutils-linux else - echo "Only 'Trusty' and 'Xenial' releases of Ubuntu are supported." + echo "Only 'Trusty', 'Xenial' and newer releases of Ubuntu are supported." exit 1 fi else