Add support for plain files mounting into chroot 63/75363/1
authorPetr Ospalý <p.ospaly@partner.samsung.com>
Mon, 7 Jan 2019 12:28:57 +0000 (13:28 +0100)
committerPetr Ospalý <p.ospaly@partner.samsung.com>
Mon, 7 Jan 2019 12:37:36 +0000 (13:37 +0100)
commitfb01a659da5c4216ff20007341d789ac9c7df933
tree60a256c7d7456e7015ae1dffdd2d9bce7b508b85
parent7acff5e6275568fccd384cdc1ec7b508a178a571
Add support for plain files mounting into chroot

In this commit I tried to follow a behaviour of docker. If mounted
path does not exist then it will handle it as a directory - it
creates it and the mountpoint is expected to be a directory also.

If the mounted path is a plain file it will do file bind mounting.
The mountpoint must be a plain file.

Change-Id: Ie8b29442c8ebb8da389ba6c9a152a49d8cf6e9be
Issue-ID: OOM-1575
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
ansible/docker/run_chroot.sh
ansible/run_playbook.sh