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

pull/1/head
parent 1890e22b14
commit 2949691591
Signed by: josch
GPG Key ID: F2CBA5C78FBD83E1

@ -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')) {

Loading…
Cancel
Save