I have a profile which specifies:
terminfo: path: /etc/terminfo readonly: "true" source: /usr/share/terminfo type: disk
So as to make the hosts terminfo, which is far more complete, available to containers. On debian images, there is an
/etc/terminfo/README file which blocks mounting the disk device with the error
Failed to remove old /etc/terminfo: Directory not empty
This prevents the container from starting, entirely.
Is there a way I can run commands which modify the rootfs at provision time, before the container is started? Or is there a way to instruct lxc to bind-mount directly over existing files?