aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-06-21 00:48:18 +0900
committerOphestra <cat@gensokyo.uk>2026-06-21 00:48:18 +0900
commitcd493fd95f78b023c159c10571a0de8d701c4b27 (patch)
treec7dcd78471f62326005b896a5d3a577ff351523f /cmd
parent9db70c83e3edf5bc65aaf09e4024b44efd3cae52 (diff)
cmd/app: centralise workdir
This makes the directory structure significantly more manageable. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/app/app.go2
-rw-r--r--cmd/app/app_test.go2
-rw-r--r--cmd/app/main.go4
3 files changed, 4 insertions, 4 deletions
diff --git a/cmd/app/app.go b/cmd/app/app.go
index d702215e..9fa49696 100644
--- a/cmd/app/app.go
+++ b/cmd/app/app.go
@@ -100,7 +100,7 @@ func parse(id string, base *check.Absolute, r io.Reader) (*hst.Config, error) {
return nil, err
} else {
c.Identity = v
- root.Upper = base.Append("template", template, "upper")
+ root.Upper = base.Append("template", template)
}
if err := scanOnce(); err != nil {
diff --git a/cmd/app/app_test.go b/cmd/app/app_test.go
index f5e94789..f4811801 100644
--- a/cmd/app/app_test.go
+++ b/cmd/app/app_test.go
@@ -76,7 +76,7 @@ talk com.canonical.Unity
Lower: []*check.Absolute{
base.Append("initial"),
},
- Upper: base.Append("template", "nonfree", "upper"),
+ Upper: base.Append("template", "nonfree"),
}},
{FilesystemConfig: &hst.FSBind{
Target: hst.AbsPrivateTmp.Append("home"),
diff --git a/cmd/app/main.go b/cmd/app/main.go
index b911e7dd..c9331e39 100644
--- a/cmd/app/main.go
+++ b/cmd/app/main.go
@@ -93,8 +93,8 @@ func main() {
{FilesystemConfig: &hst.FSOverlay{
Target: fhs.AbsRoot,
Lower: []*check.Absolute{initial},
- Upper: template.Append(args[0], "upper"),
- Work: template.Append(args[0], "work"),
+ Upper: template.Append(args[0]),
+ Work: base.Append("work", args[0]),
}},
{FilesystemConfig: &hst.FSEphemeral{
Target: fhs.AbsTmp,