1
0

feat: install dependencies, use http for deb urls

This commit is contained in:
dump_stack() 2023-05-14 20:32:44 +00:00
parent f85ad89130
commit b4a75dc66e
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -414,16 +414,15 @@ func installKernel(sk config.KernelMask, pkgname string, force, headers bool) (e
pkgs := []snapshot.Package{dk.Image} pkgs := []snapshot.Package{dk.Image}
if headers { if headers {
pkgs = append(pkgs, dk.Headers...) pkgs = append(pkgs, dk.Headers...)
pkgs = append(pkgs, dk.Dependencies...)
} }
for _, pkg := range pkgs { for _, pkg := range pkgs {
cmd += fmt.Sprintf(" && wget --no-check-certificate %s", cmd += fmt.Sprintf(" && wget --no-check-certificate %s",
pkg.Deb.URL) strings.Replace(pkg.Deb.URL, "https", "http", -1))
cmd += fmt.Sprintf(" && dpkg -i %s",
pkg.Deb.Name)
cmd += fmt.Sprintf(" && rm %s",
pkg.Deb.Name)
} }
cmd += fmt.Sprintf(" && dpkg -i ./*deb && apt-get -fy install")
default: default:
err = fmt.Errorf("%s not yet supported", sk.DistroType.String()) err = fmt.Errorf("%s not yet supported", sk.DistroType.String())
return return