feat: flag to skip kernels.toml update
This commit is contained in:
parent
edfaf68b11
commit
438f7f7386
@ -34,6 +34,7 @@ type KernelCmd struct {
|
|||||||
Update bool `help:"update container"`
|
Update bool `help:"update container"`
|
||||||
Max int `help:"maximum kernels to download" default:"100500"`
|
Max int `help:"maximum kernels to download" default:"100500"`
|
||||||
NoPrune bool `help:"do not remove dangling or unused images from local storage after build"`
|
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"`
|
ContainerTimeout time.Duration `help:"container timeout"`
|
||||||
|
|
||||||
@ -59,6 +60,10 @@ func (cmd KernelCmd) UpdateConfig() (err error) {
|
|||||||
cmd.stats.overall-cmd.stats.success)
|
cmd.stats.overall-cmd.stats.success)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if cmd.NoCfgRegen {
|
||||||
|
log.Info().Msgf("kernels.toml is not updated")
|
||||||
|
}
|
||||||
|
|
||||||
log.Info().Msgf("updating kernels.toml")
|
log.Info().Msgf("updating kernels.toml")
|
||||||
kcfg := config.KernelConfig{}
|
kcfg := config.KernelConfig{}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user