diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-03 20:46:41 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-03 21:16:45 +0900 |
| commit | c6be82bcf91fc4b6e61d9df40213e80367addbd8 (patch) | |
| tree | ee245cf214ff845f0d8a3eac0cc1a6064107112d /container/autoroot.go | |
| parent | 38245559dca0833dc078b982d59490eee53e168c (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.go | 2 |
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 { |
