Rewrite the run_chroot.sh script 41/83041/5
authorMichal Zegan <m.zegan@samsung.com>
Fri, 22 Mar 2019 13:16:04 +0000 (14:16 +0100)
committerMichal Zegan <m.zegan@samsung.com>
Tue, 26 Mar 2019 13:13:55 +0000 (14:13 +0100)
commitbacf0a178e8e52e26b30fadc448f9262643f5392
tree20b8f24016e3bd1bffd74ab1295f9fe318b4beac
parent644d03aeb7e5e68187ab952c752b7d5e818864f7
Rewrite the run_chroot.sh script

This change heavily changes run_chroot.sh script.
Major change is that most of the real script logic is now run in a namespace,
so that all mounts are done in namespace.
Also, all the cleanup code and some checks are removed, also the
shell wrapper is removed.
This change is for simplifying the run_chroot.sh. It will function the same as before
from the user's point of view, except that now the script does not have to explicitly
unmount filesystems that it mounted before, so
no cleanup code isneeded. Also,
all processes run from inside a chroot should be killed immediately
when the chroot command finishes.

Change-Id: I45a3dc7c6583cb9693746cc04f42b7af325724dd
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
Issue-ID: OOM-1744
ansible/docker/run_chroot.sh