From ab9e0b59f19d7834846986fb0aba7fe321a195a1 Mon Sep 17 00:00:00 2001 From: Clark Laughlin Date: Mon, 6 Apr 2015 05:23:22 +0000 Subject: [PATCH] Do not install linux-headers-virtual for trusty or later In trusty and later, linux-headers-virtual is now a transitional package that simply depends on linux-headers-generic. This package does not exist for the aarch64/arm64 architecture and causes installation to fail. This change continues to specify both linux-headers-virtual and linux-headers-generic for precise, but only specifies linux-headers-generic for all other releases. Change-Id: I64542d818b22c57c6bf77173f83f148e492683ab --- modules/openstack_project/manifests/slave_common.pp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/openstack_project/manifests/slave_common.pp b/modules/openstack_project/manifests/slave_common.pp index ced4886048..4474055b34 100644 --- a/modules/openstack_project/manifests/slave_common.pp +++ b/modules/openstack_project/manifests/slave_common.pp @@ -88,7 +88,16 @@ class openstack_project::slave_common( $header_packages = [ "linux-headers-${::kernelrelease}", ] } else { - $header_packages = ['linux-headers-virtual', 'linux-headers-generic'] + if ($::lsbdistcodename == 'precise') { + $header_packages = ['linux-headers-virtual', 'linux-headers-generic'] + } + else { + # In trusty (and later), linux-headers-virtual is a transitional package that + # simply depends on linux-headers-generic, so there is no need to specify it + # any more. Specifying it when installing on an arm64 host causes an error, + # as linux-headers-virtual does not exist for arm64/aarch64. + $header_packages = ['linux-headers-generic'] + } } } default: {