When packaging the tarball with proot, exclude /host-rootfs

This commit is contained in:
Johannes 'josch' Schauer 2018-11-04 20:39:11 +01:00
parent 1890e22b14
commit 2949691591
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -1760,6 +1760,7 @@ sub main() {
my @qemuopt = ();
if (defined $options->{qemu}) {
push @qemuopt, "--qemu=qemu-$options->{qemu}";
push @taropts, "--exclude=./host-rootfs"
}
0 == system('proot', '--root-id', "--rootfs=$options->{root}", '--cwd=/', @qemuopt, 'tar', @taropts, '-C', '/', '.') or die "tar failed: $?";
} elsif (any { $_ eq $options->{mode} } ('root', 'chrootless')) {