init-live.sh: avoid duplicate mount points for the same filesystem
authorChen Qi <Qi.Chen@windriver.com>
Mon, 31 Dec 2012 07:55:20 +0000 (15:55 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Jan 2013 11:09:40 +0000 (11:09 +0000)
commit36cef1c706e4600bffa975d38f410d4061f327f9
tree1ad5ea820eaa86658057104d5bf8e131a68b981b
parent34b2f6868456ab50b56a218d348540a8f43086b2
init-live.sh: avoid duplicate mount points for the same filesystem

A live system had duplicate mount points for the same filesystem
in the output of 'mount' command. That was because we didn't handle
the temporary mounts properly before switch_root.

This patch fixes this problem by moving the mount points of some
filesystems to the corresponding directories in the real root filesystem.

[YOCTO #3155]

(From OE-Core rev: 050a745413f8bb26212b84da391e0f7665f77728)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/files/init-live.sh