1
0

kernel genall: limit generated kernels to 100

This commit is contained in:
dump_stack() 2023-02-27 18:53:06 +00:00
parent 870fe202b7
commit 71f5530fed
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -9,7 +9,6 @@ import (
"fmt"
"io/ioutil"
"log"
"math"
"math/rand"
"os"
"os/exec"
@ -139,7 +138,12 @@ func (cmd *KernelGenallCmd) Run(kernelCmd *KernelCmd, g *Globals) (err error) {
DistroRelease: cmd.Ver,
ReleaseMask: ".*",
}
err = generateKernels(km, g.Config.Docker.Registry, g.Config.Docker.Commands, math.MaxInt64, !kernelCmd.NoDownload)
err = generateKernels(km,
g.Config.Docker.Registry,
g.Config.Docker.Commands,
100, // FIXME docker-related limit is 127 layers
!kernelCmd.NoDownload,
)
if err != nil {
return
}