feat: flag to skip kernels.toml update
This commit is contained in:
		| @@ -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{} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user