]> code.ossystems Code Review - openembedded-core.git/commit
volatile-binds: use overlayfs if available
authorMatt Hoosier <matt.hoosier@garmin.com>
Fri, 19 Oct 2018 16:04:55 +0000 (11:04 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 20 Oct 2018 21:39:25 +0000 (22:39 +0100)
commitb4976f3cf8cd028f165100b67867adb862da4d7f
treec4fe871d51c1664a597ee17b0e145f5a140cfb9a
parente028b4457781f60d8491a99a23011996fa913013
volatile-binds: use overlayfs if available

Copying files from the read-only root filesystem to the tmpfs
providing the volatile directories can be slow and waste memory.
If the kernel supports the overlay filesystem, use it to mount
a writable tmpfs on top of the read-only directory from the
rootfs and avoid copies.

Analogous to the modification made to initscripts's
read-only-rootfs-hook in 370fda1b2e8d5dc011522131bba4106de26bfb19.

Signed-off-by: Matt Hoosier <matt.hoosier@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/volatile-binds/files/mount-copybind