Fix permissions and ownership of chroot_hosts and chroot_hostname copied files
In my previous MR, !280 (merged), I have forgotten to check permissions and ownership consistency.
With cp -a
, permissions and ownership are copied, so /etc/hosts file is owned by 1000:1000.
It doesn't create an issue in my case, but it's not clean. A similar work has been done on chroot_resolv, see 10bbb095 and 91d446d9. I take the opportunity to update chroot_hostname too.
This patch drops support for symlink copy. I can add -d
option if you think it's necessary.