copy shim/grub on default profile container change

Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
Christian Goll
2023-07-20 12:17:46 +02:00
committed by Jonathon Anderson
parent 2fe98e5f55
commit 03ef7447e9
8 changed files with 76 additions and 49 deletions

View File

@@ -271,6 +271,10 @@ func ContainerImport(cip *wwapiv1.ContainerImportParameter) (containerName strin
err = errors.Wrap(err, "failed to update profile")
return
}
err = warewulfd.CopyShimGrub()
if err != nil {
wwlog.Warn("couldn't copy shim/grub of default container: %s", err)
}
}
}
// TODO: We need this in a function with a flock around it.