From cb618093d5a2156e6c5a03eaf8ca7d370bf33740 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 19 Jun 2026 23:41:36 +0900 Subject: hst: optionally disable file placement This works around stubborn package managers. Signed-off-by: Ophestra --- internal/outcome/spaccount_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'internal/outcome/spaccount_test.go') diff --git a/internal/outcome/spaccount_test.go b/internal/outcome/spaccount_test.go index f94e4591..fb20d8df 100644 --- a/internal/outcome/spaccount_test.go +++ b/internal/outcome/spaccount_test.go @@ -38,6 +38,7 @@ func TestSpAccountOp(t *testing.T) { {"success fallback username", func(bool, bool) outcomeOp { return spAccountOp{} }, func() *hst.Config { c := hst.Template() c.Container.Username = "" + c.Container.Flags = hst.FMapRealUID return c }, nil, []stub.Call{ // this op performs basic validation and does not make calls during toSystem @@ -60,9 +61,7 @@ func TestSpAccountOp(t *testing.T) { // this op configures the container state and does not make calls during toContainer }, &container.Params{ Dir: config.Container.Home, - Ops: new(container.Ops). - Place(m("/etc/passwd"), []byte("chronos:x:1000:100:Hakurei:/data/data/org.chromium.Chromium:/run/current-system/sw/bin/zsh\n")). - Place(m("/etc/group"), []byte("hakurei:x:100:\n")), + Ops: new(container.Ops), }, paramsWantEnv(config, map[string]string{ "HOME": config.Container.Home.String(), "USER": config.Container.Username, -- cgit v1.3.1