diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-09-28 21:51:10 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-09-28 21:51:10 +0900 |
| commit | e55822c62f7287698a683e6e7e40aa9a992b5585 (patch) | |
| tree | 19f5e8e2614c86c9a79f8264b49a2b48e13fabee /container/initdev.go | |
| parent | 802e6afa34de7f6124157153b0bde4ac25d7b363 (diff) | |
container/init: reduce verbose noise
This makes it possible to optionally omit the identifying verbose message, for when the Op implementation can provide a much more useful message in its case, using information not yet available to the String method.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/initdev.go')
| -rw-r--r-- | container/initdev.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/container/initdev.go b/container/initdev.go index 58e89718..cfb4b8b7 100644 --- a/container/initdev.go +++ b/container/initdev.go @@ -49,7 +49,6 @@ func (d *MountDevOp) apply(state *setupState, k syscallDispatcher) error { toHost(FHSDev+name), targetPath, 0, - true, ); err != nil { return err } @@ -97,7 +96,6 @@ func (d *MountDevOp) apply(state *setupState, k syscallDispatcher) error { toHost(name), consolePath, 0, - false, ); err != nil { return err } @@ -131,7 +129,7 @@ func (d *MountDevOp) Is(op Op) bool { d.Mqueue == vd.Mqueue && d.Write == vd.Write } -func (*MountDevOp) prefix() string { return "mounting" } +func (*MountDevOp) prefix() (string, bool) { return "mounting", true } func (d *MountDevOp) String() string { if d.Mqueue { return fmt.Sprintf("dev on %q with mqueue", d.Target) |
