Provide guest helper functions for container init scripts

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>