We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 69cedb8 + 7a3a1dc commit 93feed9Copy full SHA for 93feed9
1 file changed
cmd/binfmt/main.go
@@ -10,6 +10,7 @@ import (
10
"runtime"
11
"strings"
12
"syscall"
13
+ "time"
14
15
"github.com/containerd/platforms"
16
"github.com/moby/buildkit/util/archutil"
@@ -225,6 +226,14 @@ func run() error {
225
226
installArchs = parseArch(toInstall)
227
}
228
229
+ // best effort workaround for kernels that do not immediately expose new
230
+ // binfmt_misc entries after register writes until the mountpoint is touched:
231
+ // https://github.com/amazonlinux/amazon-linux-2023/issues/479#issuecomment-2707623971
232
+ if len(installArchs) > 0 {
233
+ now := time.Now()
234
+ _ = os.Chtimes(mount, now, now)
235
+ }
236
+
237
for _, name := range installArchs {
238
err := install(name)
239
if err == nil {
0 commit comments