From d7f7f8cb3469ac59d811be8727c4c8ac580734f0 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Tue, 14 Apr 2020 18:25:02 +0200 Subject: [PATCH] skip the emulation check in chrootless mode Whenever the selected architecture differs from the native architecture of the system that runs mmdebstrap, mmdebstrap checks whether it can run the selected architecture. In the majority of cases, this is good and helps avoid difficult to diagnose issues. However when running in chrootless mode, we don't actually want to run any binaries from the target system. For that reason, the emulation check should be skipped in chrootless mode. --- mmdebstrap | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index 99b32d1..989af62 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -3234,7 +3234,9 @@ sub main() { sparc => 'sparc', sparc64 => 'sparc64', }; - if ($hostarch ne $options->{nativearch}) { + if ($options->{mode} eq "chrootless") { + info "skipping emulation check in chrootless mode"; + } elsif ($hostarch ne $options->{nativearch}) { if (system('arch-test --version>/dev/null') != 0) { error "install arch-test for foreign architecture support"; }