From df1827d991f8a86966b4267622da739fb7238362 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Fri, 10 Apr 2020 12:26:00 +0200 Subject: [PATCH] check if /usr/sbin/update-binfmts exists --- mmdebstrap | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mmdebstrap b/mmdebstrap index e5b1437..f3a15ca 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -3312,6 +3312,10 @@ sub main() { if (!exists $deb2qemu->{ $options->{nativearch} }) { warning "no mapping from $options->{nativearch} to" . " qemu-user binary"; + } elsif ( + system('/usr/sbin/update-binfmts --version>/dev/null') + != 0) { + warning "cannot find /usr/sbin/update-binfmts"; } else { my $binfmt_identifier = 'qemu-' . $deb2qemu->{ $options->{nativearch} };