Skip to content

Commit a47bc34

Browse files
authored
Download linux-cloud-tools package when fetching kernel packages (#126)
1 parent 0e87932 commit a47bc34

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/common.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,15 @@ function fetch_kernel_from_apt_for_version() {
989989
"linux-headers-${kernel_version}" \
990990
"linux-tools-${kernel_version}"
991991

992+
#
993+
# For the azure kernel, we also want to get the linux-cloud-tools
994+
# package. Not that we cannot do this indiscriminately since some
995+
# kernel flavors do not come with a linux-cloud-tools package.
996+
#
997+
if [[ "$kernel_version" == *azure ]]; then
998+
logmust apt-get download "linux-cloud-tools-${kernel_version}"
999+
fi
1000+
9921001
#
9931002
# Fetch direct dependencies of the downloaded debs. Some of those
9941003
# dependencies have a slightly different naming scheme than the other

0 commit comments

Comments
 (0)