aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/autoroot.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-03 20:46:41 +0900
committerOphestra <cat@gensokyo.uk>2025-08-03 21:16:45 +0900
commitc6be82bcf91fc4b6e61d9df40213e80367addbd8 (patch)
treeee245cf214ff845f0d8a3eac0cc1a6064107112d /container/autoroot.go
parent38245559dca0833dc078b982d59490eee53e168c (diff)
container/path: fhs path constants
This increases readability since this can help disambiguate absolute paths from similarly named path segments. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/autoroot.go')
-rw-r--r--container/autoroot.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/container/autoroot.go b/container/autoroot.go
index b6375b8c..5ed9b6c7 100644
--- a/container/autoroot.go
+++ b/container/autoroot.go
@@ -42,7 +42,7 @@ func (r *AutoRootOp) early(params *Params) error {
if IsAutoRootBindable(name) {
op := &BindMountOp{
Source: path.Join(r.Host, name),
- Target: "/" + name,
+ Target: FHSRoot + name,
Flags: r.Flags,
}
if err = op.early(params); err != nil {