]> code.ossystems Code Review - openembedded-core.git/commit
read-only-rootfs-hook.sh: check before bind mounting /var/lib
authorChen Qi <Qi.Chen@windriver.com>
Mon, 26 Aug 2013 06:43:55 +0000 (14:43 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 26 Aug 2013 12:19:36 +0000 (13:19 +0100)
commit86ac10995fd08226f82d87e23fda5d4898c3190f
tree5da87d2e9d43b57579d4956ca79a56e531fdb690
parent1565a0c5a3f245703e280ca90cf11d3f9374788a
read-only-rootfs-hook.sh: check before bind mounting /var/lib

It's possible that /var/lib is on a separate writable partition. In such
situation, we should not bind mount /var/lib with tmpfs, becasue it's
already writable.

This patch fixes this problem by checking whether /var/lib is already
on a writable partition.

[YOCTO #4888]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initscripts/initscripts-1.0/read-only-rootfs-hook.sh