Remove automatic setting of default container

Since grub support no longer depends on a default container, no longer
automatically set default container on import.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2024-01-17 16:18:19 -07:00
parent 3efa812b5c
commit 1c87ce1367
2 changed files with 1 additions and 8 deletions

View File

@@ -126,17 +126,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Don't panic on malformed passwd #527
- Update iPXE building script
- Send Info, Recv, Send, and Out messages to stdout; and others to stderr
- first container imported container is added to the default profile
- grub in combination can now be set as boot method with `warewulf.grubboot: true` in
`warewulf.conf`. For unknown nodes `grub.efi` and `shim.efi` will be extracted from
the host running warewulf. If node has container it will get these binaries from the
container image.
- Added support for booting nodes with grub. Enable this behavior using
warewulf.grubboot: true in warewulf.conf. For unknown nodes, grub.efi
and shim.efi are extracted from the Warewulf host. If the booted node
has a container these binaries are extracted from the container image.
## [4.4.0] 2023-01-18
### Added

View File

@@ -1,8 +1,6 @@
package imprt
import (
"github.com/hpcng/warewulf/internal/pkg/container"
apicontainer "github.com/hpcng/warewulf/internal/pkg/api/container"
"github.com/hpcng/warewulf/internal/pkg/api/routes/wwapiv1"
"github.com/spf13/cobra"
@@ -15,9 +13,6 @@ func CobraRunE(cmd *cobra.Command, args []string) (err error) {
if len(args) == 2 {
name = args[1]
}
if list, _ := container.ListSources(); len(list) == 0 {
SetDefault = true
}
cip := &wwapiv1.ContainerImportParameter{
Source: args[0],