prefer fakechroot to proot in auto mode because the latter produces wrong ownership

This commit is contained in:
Johannes 'josch' Schauer 2019-01-24 12:37:44 +01:00
parent a3afe24fc0
commit b9e78796b2
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -1716,10 +1716,10 @@ sub main() {
$options->{mode} = 'root';
} elsif (test_unshare(0)) {
$options->{mode} = 'unshare';
} elsif (system('proot --version>/dev/null') == 0) {
$options->{mode} = 'proot';
} elsif (system('fakechroot --version>/dev/null') == 0) {
$options->{mode} = 'fakechroot';
} elsif (system('proot --version>/dev/null') == 0) {
$options->{mode} = 'proot';
} else {
error "unable to pick chroot mode automatically";
}