From e1ae42775738426ef9855f989edb7462e383ca29 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Tue, 16 May 2023 09:23:44 +0000 Subject: [PATCH] fix: add gcc-4.6 for wheezy --- distro/debian/debian.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/distro/debian/debian.go b/distro/debian/debian.go index 8dd5daf..4a5c0c1 100644 --- a/distro/debian/debian.go +++ b/distro/debian/debian.go @@ -219,6 +219,12 @@ func ContainerCommands(km config.KernelMask) (commands []string) { cmdf("apt-get install -y wget build-essential libelf-dev git") cmdf("apt-get install -y kmod linux-base") cmdf("apt-get install -y initramfs-tools") + + switch release { + case Wheezy: + cmdf("apt-get install -y gcc-4.6") + } + if release < 9 { cmdf("apt-get install -y module-init-tools") }