make the configuration to be based in warewulf.conf
defaults will be se by the Makefile Signed-off-by: Christian Goll <cgoll@suse.de>
This commit is contained in:
@@ -11,8 +11,8 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/hpcng/warewulf/internal/pkg/buildconfig"
|
||||
"github.com/hpcng/warewulf/internal/pkg/util"
|
||||
"github.com/hpcng/warewulf/internal/pkg/warewulfconf"
|
||||
"github.com/hpcng/warewulf/internal/pkg/wwlog"
|
||||
)
|
||||
|
||||
@@ -28,7 +28,8 @@ var (
|
||||
)
|
||||
|
||||
func KernelImageTopDir() string {
|
||||
return path.Join(buildconfig.WWPROVISIONDIR(), "kernel")
|
||||
conf := warewulfconf.New()
|
||||
return path.Join(conf.WWPROVISIONDIR(), "kernel")
|
||||
}
|
||||
|
||||
func KernelImage(kernelName string) string {
|
||||
|
||||
Reference in New Issue
Block a user