chrootsetup_freebsd.sh: deal with newer cpio versions
commitd9fab4db8c948be9efb5c76977fe75caad428511
authorKyle J. McKay <mackyle@gmail.com>
Thu, 28 Apr 2016 20:59:59 +0000 (28 13:59 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 28 Apr 2016 20:59:59 +0000 (28 13:59 -0700)
tree1096de6c2efe21233527aad0312c61676d0ffe75
parentf64c7014eb64bb8f137b1e30c35561ef96396e67
chrootsetup_freebsd.sh: deal with newer cpio versions

When using newer cpio versions in passthrough mode (-p)
file flags WILL be set on the destination which is a very
bad thing.

Avoid this by piping cpio -o output to cpio -i input to
avoid having the evil schg flag set on jail binaries/libraries.

At the same time add the -L option to cpio -o to make sure
what ends up in the chroot is a usable library rather than
just a symlink to nowhere.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
chrootsetup_freebsd.sh