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

Signed-off-by: Claudius Heine <[email protected]>
---
 meta/files/overlayfs-etc-preinit.sh.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/files/overlayfs-etc-preinit.sh.in 
b/meta/files/overlayfs-etc-preinit.sh.in
index 1daf83513e..51cbdf25a8 100644
--- a/meta/files/overlayfs-etc-preinit.sh.in
+++ b/meta/files/overlayfs-etc-preinit.sh.in
@@ -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
-- 
2.35.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#163006): 
https://lists.openembedded.org/g/openembedded-core/message/163006
Mute This Topic: https://lists.openembedded.org/mt/89683144/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to