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 /cmd/hpkg/main.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 'cmd/hpkg/main.go')
| -rw-r--r-- | cmd/hpkg/main.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/cmd/hpkg/main.go b/cmd/hpkg/main.go index d808aa01..728ee14e 100644 --- a/cmd/hpkg/main.go +++ b/cmd/hpkg/main.go @@ -11,6 +11,7 @@ import ( "syscall" "hakurei.app/command" + "hakurei.app/container" "hakurei.app/hst" "hakurei.app/internal" "hakurei.app/internal/hlog" @@ -275,12 +276,12 @@ func main() { "path:" + a.NixGL + "#nixVulkanNvidia", }, true, func(config *hst.Config) *hst.Config { config.Container.Filesystem = append(config.Container.Filesystem, []*hst.FilesystemConfig{ - {Src: "/etc/resolv.conf"}, - {Src: "/sys/block"}, - {Src: "/sys/bus"}, - {Src: "/sys/class"}, - {Src: "/sys/dev"}, - {Src: "/sys/devices"}, + {Src: container.FHSEtc + "resolv.conf"}, + {Src: container.FHSSys + "block"}, + {Src: container.FHSSys + "bus"}, + {Src: container.FHSSys + "class"}, + {Src: container.FHSSys + "dev"}, + {Src: container.FHSSys + "devices"}, }...) appendGPUFilesystem(config) return config |
