1
0

fix: let deb12 to fetch libssl1 from deb11

This commit is contained in:
dump_stack() 2023-05-26 18:15:14 +00:00
parent 1410fe4660
commit fe2b05d5fc
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -311,6 +311,17 @@ func (d Debian) runs() (commands []string) {
cmdf("apt-get -y update") 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") cmdf("mkdir -p /lib/modules")
return return