1
0

fix: add check for shutdown request

This commit is contained in:
dump_stack() 2023-06-01 14:18:27 +00:00
parent 7d28549db7
commit 4441e84063
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -316,6 +316,10 @@ func (cmd *KernelGenallCmd) Run(kernelCmd *KernelCmd, g *Globals) (err error) {
kernel.SetSigintHandler(&kernelCmd.shutdown)
for _, dist := range distro.List() {
if kernelCmd.shutdown {
break
}
if distroType != distro.None && distroType != dist.ID {
continue
}