1
0

feat: flag to skip kernels.toml update

This commit is contained in:
dump_stack() 2024-02-21 09:28:49 +00:00
parent edfaf68b11
commit 438f7f7386
Signed by: dump_stack
GPG Key ID: C9905BA72B5E02BB

View File

@ -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{}