aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/rosa.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rosa/rosa.go')
-rw-r--r--internal/rosa/rosa.go16
1 files changed, 7 insertions, 9 deletions
diff --git a/internal/rosa/rosa.go b/internal/rosa/rosa.go
index 22dbcd6d..3d4914f2 100644
--- a/internal/rosa/rosa.go
+++ b/internal/rosa/rosa.go
@@ -53,11 +53,13 @@ const (
)
var (
- // AbsUsrSrc is the conventional directory to place source code under.
- AbsUsrSrc = fhs.AbsUsr.Append("src")
-
// AbsSystem is the Rosa OS installation prefix.
AbsSystem = fhs.AbsRoot.Append(prefixR)
+
+ // AbsSource is the directory to place source code under.
+ AbsSource = fhs.AbsRoot.Append("source")
+ // AbsExtra holds extra files provided to a packaging container.
+ AbsExtra = fhs.AbsRoot.Append("extra")
)
// TargetError is an unsupported target architecture name.
@@ -631,9 +633,7 @@ func (t Toolchain) New(
dir == "" ||
attr.ScriptEarly != "" ||
helperScriptEarly != "" {
- scriptEarly += `
-cd '/usr/src/` + name + `/'
-`
+ scriptEarly += "\ncd /source/\n"
}
scriptEarly += attr.ScriptEarly + helperScriptEarly
if dir != "" && dir != helperInPlace {
@@ -648,9 +648,7 @@ cd '/usr/src/` + name + `/'
paths := attr.Paths
if source != nil {
paths = slices.Concat(attr.Paths, []pkg.ExecPath{
- pkg.Path(AbsUsrSrc.Append(
- name,
- ), attr.Writable || wantsWrite, t.NewPatchedSource(
+ pkg.Path(AbsSource, attr.Writable || wantsWrite, t.NewPatchedSource(
rn, source, !attr.Chmod && !wantsChmod, attr.Patches...,
)),
})