From 2a6ce914c6f5ec7e1d0547da8a32a7bfd0cf8573 Mon Sep 17 00:00:00 2001 From: Stefan Staudenmeyer Date: Fri, 5 Feb 2016 17:37:12 +0100 Subject: [PATCH] Grep for installed AND held packages. Signed-off-by: Stefan Staudenmeyer Upstream-commit: 996ca75413f4072c03cca9229dc5901bd690c4f8 Component: engine --- components/engine/hack/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/hack/install.sh b/components/engine/hack/install.sh index b080897703..b5b14bee86 100755 --- a/components/engine/hack/install.sh +++ b/components/engine/hack/install.sh @@ -372,7 +372,7 @@ do_install() { # aufs is preferred over devicemapper; try to ensure the driver is available. if ! grep -q aufs /proc/filesystems && ! $sh_c 'modprobe aufs'; then - if uname -r | grep -q -- '-generic' && dpkg -l 'linux-image-*-generic' | grep -q '^ii' 2>/dev/null; then + if uname -r | grep -q -- '-generic' && dpkg -l 'linux-image-*-generic' | egrep '^ii|^hi' 2>/dev/null; then kern_extras="linux-image-extra-$(uname -r) linux-image-extra-virtual" apt_get_update