check if /usr/sbin/update-binfmts exists

This commit is contained in:
Johannes 'josch' Schauer 2020-04-10 12:26:00 +02:00
parent a0c393f256
commit df1827d991
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -3312,6 +3312,10 @@ sub main() {
if (!exists $deb2qemu->{ $options->{nativearch} }) { if (!exists $deb2qemu->{ $options->{nativearch} }) {
warning "no mapping from $options->{nativearch} to" warning "no mapping from $options->{nativearch} to"
. " qemu-user binary"; . " qemu-user binary";
} elsif (
system('/usr/sbin/update-binfmts --version>/dev/null')
!= 0) {
warning "cannot find /usr/sbin/update-binfmts";
} else { } else {
my $binfmt_identifier my $binfmt_identifier
= 'qemu-' . $deb2qemu->{ $options->{nativearch} }; = 'qemu-' . $deb2qemu->{ $options->{nativearch} };