forked from josch/mmdebstrap
chmod 0755 on qemu-user-static binary
This commit is contained in:
parent
14d3a4e30f
commit
ca37c4e89e
1 changed files with 5 additions and 0 deletions
|
@ -1509,6 +1509,11 @@ sub setup {
|
||||||
error "cannot find $qemubin";
|
error "cannot find $qemubin";
|
||||||
}
|
}
|
||||||
copy $qemubin, "$options->{root}/$qemubin" or error "cannot copy $qemubin: $!";
|
copy $qemubin, "$options->{root}/$qemubin" or error "cannot copy $qemubin: $!";
|
||||||
|
# File::Copy does not retain permissions but on some
|
||||||
|
# platforms (like Travis CI) the binfmt interpreter must
|
||||||
|
# have the executable bit set or otherwise execve will
|
||||||
|
# fail with EACCES
|
||||||
|
chmod 0755, "$options->{root}/$qemubin" or error "cannot chmod $qemubin: $!";
|
||||||
} else {
|
} else {
|
||||||
error "unknown mode: $options->{mode}";
|
error "unknown mode: $options->{mode}";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue