* 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
28 lines
515 B
Go
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")
|
|
}
|