From 01459e5f7870a3f6575de20367727731ff3bb036 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 5 May 2026 21:33:27 +0900 Subject: [PATCH] cmd/mbf: optional init verbosity This output is generally not needed and only useful when debugging container machinery itself. Signed-off-by: Ophestra --- cmd/mbf/cache.go | 4 ++++ cmd/mbf/main.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cmd/mbf/cache.go b/cmd/mbf/cache.go index 5c89ca10..05fa7070 100644 --- a/cmd/mbf/cache.go +++ b/cmd/mbf/cache.go @@ -21,6 +21,7 @@ type cache struct { cures, jobs int hostAbstract, idle bool + verboseInit bool base string } @@ -45,6 +46,9 @@ func (cache *cache) open() (err error) { if cache.hostAbstract { flags |= pkg.CHostAbstract } + if !cache.verboseInit { + flags |= pkg.CSuppressInit + } done := make(chan struct{}) defer close(done) diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go index 44dd7b32..07772e87 100644 --- a/cmd/mbf/main.go +++ b/cmd/mbf/main.go @@ -108,6 +108,10 @@ func main() { &flagCheck, "check", command.BoolFlag(true), "Run test suites", + ).Flag( + &cm.verboseInit, + "v", command.BoolFlag(false), + "Do not suppress verbose output from init", ).Flag( &cm.cures, "cures", command.IntFlag(0),