When packaging the tarball with proot, exclude /host-rootfs
This commit is contained in:
parent
1890e22b14
commit
2949691591
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue