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:
@@ -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
|
||||
|
||||
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user