kernel genall: limit generated kernels to 100
This commit is contained in:
parent
870fe202b7
commit
71f5530fed
@ -9,7 +9,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
"math"
|
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
@ -139,7 +138,12 @@ func (cmd *KernelGenallCmd) Run(kernelCmd *KernelCmd, g *Globals) (err error) {
|
|||||||
DistroRelease: cmd.Ver,
|
DistroRelease: cmd.Ver,
|
||||||
ReleaseMask: ".*",
|
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 {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user