]> code.ossystems Code Review - openembedded-core.git/commit
initscripts: read-only-rootfs-hook: Use overlay if available
authorJoshua Watt <jpewhacker@gmail.com>
Thu, 11 Oct 2018 18:09:04 +0000 (13:09 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 12 Oct 2018 07:44:05 +0000 (08:44 +0100)
commit370fda1b2e8d5dc011522131bba4106de26bfb19
tree91617a296e6001b7b87bc53880ca390a107b71f4
parent9800daf59d2235bc492d1aeb600e46ad62303510
initscripts: read-only-rootfs-hook: Use overlay if available

Copying files from the read-only /var/lib to tmpfs can be slow and waste
memory. If the kernel supports the overlay file system, use it to mount
a writable tmpfs on top of the read-only /var/lib and avoid the file
copy.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initscripts/initscripts-1.0/read-only-rootfs-hook.sh