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
This commit is contained in:
parent
86ebb018fc
commit
ab9e0b59f1
@ -88,8 +88,17 @@ class openstack_project::slave_common(
|
||||
$header_packages = [ "linux-headers-${::kernelrelease}", ]
|
||||
}
|
||||
else {
|
||||
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: {
|
||||
fail("Unsupported osfamily: ${::osfamily}.")
|
||||
|
Loading…
Reference in New Issue
Block a user