Skip to content

Fix permissions and ownership of chroot_hosts and chroot_hostname copied files

Olivier BLIN requested to merge Phaem/live-build:update_copy_permissions into master

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.

Merge request reports

Loading