From 88fb70f92bee65299691daecf4ccb9cfa2e66f26 Mon Sep 17 00:00:00 2001 From: Valeriy Ponomaryov Date: Thu, 4 Aug 2016 13:24:30 +0300 Subject: [PATCH] Fix ZFSonLinux driver prerequisites setup We call "apt-get upgrade" to apply changes related to ppa of ZFS on linux. But "grub"-related packaged started making dialog that hangs forever in case of automatic setup. So, exclude "grub" related packages from update as redundant for unblocking ZFSonLinux driver prerequisites setup. Change-Id: Ibb94604710b0d4199825e770194655653c26bf89 Closes-Bug: #1609696 --- devstack/plugin.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 694fdb0493..564dd27efa 100755 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -578,7 +578,15 @@ function install_manila { # NOTE(vponomaryov): following installation is valid for Ubuntu 'trusty'. sudo apt-get install -y software-properties-common sudo apt-add-repository --yes ppa:zfs-native/stable + + # Workaround for bug #1609696 + sudo apt-mark hold grub* + sudo apt-get -y -q update && sudo apt-get -y -q upgrade + + # Workaround for bug #1609696 + sudo apt-mark unhold grub* + sudo apt-get install -y linux-headers-generic sudo apt-get install -y build-essential sudo apt-get install -y ubuntu-zfs