1
0
Fork 0

feat: flag to skip kernels.toml update

timestamps
dump_stack() 2024-02-21 09:28:49 +00:00
parent edfaf68b11
commit 438f7f7386
Signed by: dump_stack
GPG Key ID: C9905BA72B5E02BB
1 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,7 @@ type KernelCmd struct {
Update bool `help:"update container"`
Max int `help:"maximum kernels to download" default:"100500"`
NoPrune bool `help:"do not remove dangling or unused images from local storage after build"`
NoCfgRegen bool `help:"do not update kernels.toml"`
ContainerTimeout time.Duration `help:"container timeout"`
@ -59,6 +60,10 @@ func (cmd KernelCmd) UpdateConfig() (err error) {
cmd.stats.overall-cmd.stats.success)
}
if cmd.NoCfgRegen {
log.Info().Msgf("kernels.toml is not updated")
}
log.Info().Msgf("updating kernels.toml")
kcfg := config.KernelConfig{}