aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/mbf/main.go')
-rw-r--r--cmd/mbf/main.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go
index e4c6af96..4ca86cf2 100644
--- a/cmd/mbf/main.go
+++ b/cmd/mbf/main.go
@@ -1052,6 +1052,13 @@ func main() {
Bind(tempdir, fhs.AbsTmp, std.BindWritable).
Proc(fhs.AbsProc).Dev(fhs.AbsDev, true)
+ if flagArch != "" && flagArch != runtime.GOARCH {
+ if entry, ok := pkg.Arch()[flagArch]; ok {
+ z.InitAsRoot = true
+ z.Binfmt = []container.BinfmtEntry{entry}
+ }
+ }
+
if err := z.Start(); err != nil {
return err
}