From fe2b05d5fc4e44ba108712ffb6ef1163cecb4393 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Fri, 26 May 2023 18:15:14 +0000 Subject: [PATCH] fix: let deb12 to fetch libssl1 from deb11 --- distro/debian/debian.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/distro/debian/debian.go b/distro/debian/debian.go index b573100..3bf7c9a 100644 --- a/distro/debian/debian.go +++ b/distro/debian/debian.go @@ -311,6 +311,17 @@ func (d Debian) runs() (commands []string) { cmdf("apt-get -y update") } + if d.release == 12 { + // For some kernels that use gcc-11 but depend on libssl1 + repo := "deb http://deb.debian.org/debian bullseye main" + cmdf("echo '%s' >> /etc/apt/sources.list.d/11.list", repo) + cmdf("echo 'Package: *' >> /etc/apt/preferences.d/jessie") + cmdf("echo 'Pin: release a=bullseye' >> /etc/apt/preferences.d/jessie") + cmdf("echo 'Pin-Priority: 10' >> /etc/apt/preferences.d/jessie") + + cmdf("apt-get -y update") + } + cmdf("mkdir -p /lib/modules") return