container/path: fhs path constants
All checks were successful
Test / Create distribution (push) Successful in 33s
Test / Sandbox (push) Successful in 2m6s
Test / Hakurei (push) Successful in 3m6s
Test / Sandbox (race detector) (push) Successful in 4m14s
Test / Hpkg (push) Successful in 4m11s
Test / Hakurei (race detector) (push) Successful in 4m40s
Test / Flake checks (push) Successful in 1m18s
All checks were successful
Test / Create distribution (push) Successful in 33s
Test / Sandbox (push) Successful in 2m6s
Test / Hakurei (push) Successful in 3m6s
Test / Sandbox (race detector) (push) Successful in 4m14s
Test / Hpkg (push) Successful in 4m11s
Test / Hakurei (race detector) (push) Successful in 4m40s
Test / Flake checks (push) Successful in 1m18s
This increases readability since this can help disambiguate absolute paths from similarly named path segments. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -14,6 +14,7 @@ import (
|
||||
"time"
|
||||
|
||||
"hakurei.app/command"
|
||||
"hakurei.app/container"
|
||||
"hakurei.app/hst"
|
||||
"hakurei.app/internal"
|
||||
"hakurei.app/internal/app"
|
||||
@@ -94,7 +95,7 @@ func buildCommand(out io.Writer) command.Command {
|
||||
Gid: us,
|
||||
Username: "chronos",
|
||||
Name: "Hakurei Permissive Default",
|
||||
HomeDir: "/var/empty",
|
||||
HomeDir: container.FHSVarEmpty,
|
||||
}
|
||||
} else {
|
||||
passwd = u
|
||||
|
||||
@@ -43,12 +43,12 @@ func Test_printShowInstance(t *testing.T) {
|
||||
Hostname: localhost
|
||||
Flags: userns devel net device tty mapuid autoetc
|
||||
Root: /var/lib/hakurei/base/org.debian (2)
|
||||
Etc: /etc
|
||||
Etc: /etc/
|
||||
Path: /run/current-system/sw/bin/chromium
|
||||
Arguments: chromium --ignore-gpu-blocklist --disable-smooth-scrolling --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||
|
||||
Filesystem
|
||||
w+tmpfs:/tmp
|
||||
w+tmpfs:/tmp/
|
||||
+/nix/store
|
||||
+/run/current-system
|
||||
+/run/opengl-driver
|
||||
@@ -123,12 +123,12 @@ App
|
||||
Hostname: localhost
|
||||
Flags: userns devel net device tty mapuid autoetc
|
||||
Root: /var/lib/hakurei/base/org.debian (2)
|
||||
Etc: /etc
|
||||
Etc: /etc/
|
||||
Path: /run/current-system/sw/bin/chromium
|
||||
Arguments: chromium --ignore-gpu-blocklist --disable-smooth-scrolling --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||
|
||||
Filesystem
|
||||
w+tmpfs:/tmp
|
||||
w+tmpfs:/tmp/
|
||||
+/nix/store
|
||||
+/run/current-system
|
||||
+/run/opengl-driver
|
||||
@@ -276,7 +276,7 @@ App
|
||||
"device": true,
|
||||
"filesystem": [
|
||||
{
|
||||
"dst": "/tmp",
|
||||
"dst": "/tmp/",
|
||||
"src": "tmpfs",
|
||||
"write": true
|
||||
},
|
||||
@@ -311,7 +311,7 @@ App
|
||||
],
|
||||
"auto_root": "/var/lib/hakurei/base/org.debian",
|
||||
"root_flags": 2,
|
||||
"etc": "/etc",
|
||||
"etc": "/etc/",
|
||||
"auto_etc": true
|
||||
}
|
||||
},
|
||||
@@ -408,7 +408,7 @@ App
|
||||
"device": true,
|
||||
"filesystem": [
|
||||
{
|
||||
"dst": "/tmp",
|
||||
"dst": "/tmp/",
|
||||
"src": "tmpfs",
|
||||
"write": true
|
||||
},
|
||||
@@ -443,7 +443,7 @@ App
|
||||
],
|
||||
"auto_root": "/var/lib/hakurei/base/org.debian",
|
||||
"root_flags": 2,
|
||||
"etc": "/etc",
|
||||
"etc": "/etc/",
|
||||
"auto_etc": true
|
||||
}
|
||||
}
|
||||
@@ -594,7 +594,7 @@ func Test_printPs(t *testing.T) {
|
||||
"device": true,
|
||||
"filesystem": [
|
||||
{
|
||||
"dst": "/tmp",
|
||||
"dst": "/tmp/",
|
||||
"src": "tmpfs",
|
||||
"write": true
|
||||
},
|
||||
@@ -629,7 +629,7 @@ func Test_printPs(t *testing.T) {
|
||||
],
|
||||
"auto_root": "/var/lib/hakurei/base/org.debian",
|
||||
"root_flags": 2,
|
||||
"etc": "/etc",
|
||||
"etc": "/etc/",
|
||||
"auto_etc": true
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user