(v0.1.1) Automated packaging of release by Packagr

This commit is contained in:
packagr-io-beta
2020-08-21 06:31:48 +00:00
parent 7a10a7ee63
commit b6ca94f786
1303 changed files with 620126 additions and 109 deletions
+58
View File
@@ -0,0 +1,58 @@
// Use and distribution licensed under the Apache license version 2.
//
// See the COPYING file in the root project directory for full text.
//
package ghw
import (
"path/filepath"
)
func (ctx *context) pathVarLog() string {
return filepath.Join(ctx.chroot, "var", "log")
}
func (ctx *context) pathProcMeminfo() string {
return filepath.Join(ctx.chroot, "proc", "meminfo")
}
func (ctx *context) pathSysKernelMMHugepages() string {
return filepath.Join(ctx.chroot, "sys", "kernel", "mm", "hugepages")
}
func (ctx *context) pathProcCpuinfo() string {
return filepath.Join(ctx.chroot, "proc", "cpuinfo")
}
func (ctx *context) pathEtcMtab() string {
return filepath.Join(ctx.chroot, "etc", "mtab")
}
func (ctx *context) pathSysBlock() string {
return filepath.Join(ctx.chroot, "sys", "block")
}
func (ctx *context) pathSysDevicesSystemNode() string {
return filepath.Join(ctx.chroot, "sys", "devices", "system", "node")
}
func (ctx *context) pathSysBusPciDevices() string {
return filepath.Join(ctx.chroot, "sys", "bus", "pci", "devices")
}
func (ctx *context) pathSysClassDrm() string {
return filepath.Join(ctx.chroot, "sys", "class", "drm")
}
func (ctx *context) pathSysClassDMI() string {
return filepath.Join(ctx.chroot, "sys", "class", "dmi")
}
func (ctx *context) pathSysClassNet() string {
return filepath.Join(ctx.chroot, "sys", "class", "net")
}
func (ctx *context) pathRunUdevData() string {
return filepath.Join(ctx.chroot, "run", "udev", "data")
}