init-live.sh: try to make a union mount when possible
authorChen Qi <Qi.Chen@windriver.com>
Fri, 28 Jun 2013 07:48:53 +0000 (15:48 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 Jun 2013 10:02:40 +0000 (11:02 +0100)
commit5f72fb2f5c7b9ac7f8e56eba403614971b4bfab5
tree6fab42314ed911cffc2637f3a97a79bf70eb14f2
parent0fceca948d84692534363f074a0282008f5b4934
init-live.sh: try to make a union mount when possible

This patch tries to make a union mount in live image. For example,
if aufs is enabled with the aufs-enable.scc configuration fragment,
the init-live.sh script will use aufs to make a union mount.

Although overlayfs is not supported by Yocto kernel yet, this patch
still takes it into consideration with the expect that the related
code should at least serve as a placeholder.

[YOCTO #1487]
[YOCTO #4761]

(From OE-Core rev: 3cd6fedd815688b2f3fd97a56feb5f8696ebeace)

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