Files
warewulf/internal/pkg/container/config.go
Carter Dodd 379faad51d Refactor of server, logging, building of images, template updates
* Combine provision response handling, add hwaddr and interface to dhcp
* Simplify stage cases, add backward compatible uri parse
* Move control of image compression to client
* Fix kernel search path for ubuntu, buffer template generation
* Implement cpio and gz as functions, add log named functions
* Generalize fs image creation routine
* Combine daemonLogf to generalized wwlog
* Fix template newline insertion, update dhcp and hosts tmpl
* Update IPXE template to handle non-compressed files
* Update DHCP template to set network interfaces and server IP assignment
* Update DHCP/hosts templates to choose a host-name self-consistently
2022-05-13 16:52:59 -05:00

28 lines
515 B
Go

package container
import (
"path"
"github.com/hpcng/warewulf/internal/pkg/buildconfig"
)
func SourceParentDir() string {
return buildconfig.WWCHROOTDIR()
}
func SourceDir(name string) string {
return path.Join(SourceParentDir(), name)
}
func RootFsDir(name string) string {
return path.Join(SourceDir(name), "rootfs")
}
func ImageParentDir() string {
return path.Join(buildconfig.WWPROVISIONDIR(), "container/")
}
func ImageFile(name string) string {
return path.Join(ImageParentDir(), name+".img")
}