Add kernel config-regen command
This commit is contained in:
parent
34f3692d01
commit
3329dc4c24
@ -33,6 +33,7 @@ type KernelCmd struct {
|
|||||||
Autogen KernelAutogenCmd `cmd:"" help:"generate kernels based on the current config"`
|
Autogen KernelAutogenCmd `cmd:"" help:"generate kernels based on the current config"`
|
||||||
Genall KernelGenallCmd `cmd:"" help:"generate all kernels for distro"`
|
Genall KernelGenallCmd `cmd:"" help:"generate all kernels for distro"`
|
||||||
Install KernelInstallCmd `cmd:"" help:"install specific kernel"`
|
Install KernelInstallCmd `cmd:"" help:"install specific kernel"`
|
||||||
|
ConfigRegen KernelConfigRegenCmd `cmd:"" help:"regenerate config"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type KernelListCmd struct{}
|
type KernelListCmd struct{}
|
||||||
@ -140,6 +141,12 @@ func (cmd *KernelInstallCmd) Run(kernelCmd *KernelCmd, g *Globals) (err error) {
|
|||||||
return updateKernelsCfg(kernelCmd.UseHost, !kernelCmd.NoDownload)
|
return updateKernelsCfg(kernelCmd.UseHost, !kernelCmd.NoDownload)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type KernelConfigRegenCmd struct{}
|
||||||
|
|
||||||
|
func (cmd *KernelConfigRegenCmd) Run(kernelCmd *KernelCmd, g *Globals) (err error) {
|
||||||
|
return updateKernelsCfg(kernelCmd.UseHost, !kernelCmd.NoDownload)
|
||||||
|
}
|
||||||
|
|
||||||
func matchDebianHeadersPkg(container, mask string, generic bool) (
|
func matchDebianHeadersPkg(container, mask string, generic bool) (
|
||||||
pkgs []string, err error) {
|
pkgs []string, err error) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user