fix: re-raise subprocess.CalledProcessError when uname -m fails on arm (#2049)

This commit is contained in:
Matthieu Darbois
2024-10-19 23:02:40 -04:00
committed by GitHub
parent 18f54c08e2
commit 1001c837de
+2
View File
@@ -258,6 +258,8 @@ class OCIContainer:
container_machine = call(
*run_cmd, *platform_args, self.image, *ctr_cmd, capture_stdout=True
).strip()
else:
raise
simulate_32_bit = container_machine not in {"i686", "armv7l", "armv8l"}
shell_args = ["linux32", "/bin/bash"] if simulate_32_bit else ["/bin/bash"]