Got it going, with a horrible hack.
In the container config:
lxc.hook.start-host = /usr/local/bin/fuse.hook
/usr/local/bin/fuse.hook:
at now + 1 minute <<END 2>>/var/lib/lxc/rh-wptest2/hook.error
/usr/local/bin/fuse.hook.s2
END
/usr/local/bin/fuse.hook.s2:
lxc-device -n rh-wptest2 add /dev/fuse
lxc-attach -n rh-wptest2 mount /home/richard/testsite/doc_root
I hate almost everything about this solution.
But in the absence of
- A hook that runs after the container init has started
- understanding how lxc-device actually works
- understanding how to make lxc.hook.autodev work
- Anybody who knows this stuff reading this thread and/or caring
… it seems to be the best I can manage for now.
Cheers,
Richard