mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
files: overlayfs-etc: add overlay mount options to preinit
Overlayfs-etc is useful if the rootfs is read-only. One reason to have the rootfs read-only is to allow image based updating. Image based updating will change the underlying root file system, which is unsupported by overlayfs when with some mount options [1]. This disables those options. [1] https://www.kernel.org/doc/html/latest/filesystems/overlayfs.html?highlight=overlayfs#changes-to-underlying-filesystems (From OE-Core rev: 13a057d6ffc3110f891224d7af9455b53581e8a8) Signed-off-by: Claudius Heine <ch@denx.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
3653b9d37a
commit
6dd32f4a3b
@@ -26,6 +26,7 @@ then
|
||||
-o upperdir={OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/upper \
|
||||
-o lowerdir=/etc \
|
||||
-o workdir={OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/work \
|
||||
-o index=off,xino=off,redirect_dir=off,metacopy=off \
|
||||
{OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/upper /etc || \
|
||||
echo "PREINIT: Mounting etc-overlay failed!"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user