forked from josch/mmdebstrap
Only attempt removing qemu-user-static for root or unshare mode
This commit is contained in:
parent
77f2cbee5d
commit
4f2e655ad5
1 changed files with 1 additions and 1 deletions
|
@ -1708,7 +1708,7 @@ sub setup {
|
||||||
rmdir "$options->{root}/var/lib/apt/lists/auxfiles" or die "cannot rmdir /var/lib/apt/lists/auxfiles: $!";
|
rmdir "$options->{root}/var/lib/apt/lists/auxfiles" or die "cannot rmdir /var/lib/apt/lists/auxfiles: $!";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defined $options->{qemu} and $options->{mode} ne 'proot' and $options->{mode} ne 'fakechroot') {
|
if (defined $options->{qemu} and any { $_ eq $options->{mode} } ('root', 'unshare')) {
|
||||||
unlink "$options->{root}/usr/bin/qemu-$options->{qemu}-static" or error "cannot unlink /usr/bin/qemu-$options->{qemu}-static: $!";
|
unlink "$options->{root}/usr/bin/qemu-$options->{qemu}-static" or error "cannot unlink /usr/bin/qemu-$options->{qemu}-static: $!";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue