From: Claudius Heine Date: Thu, 10 Mar 2022 13:13:29 +0000 (+0100) Subject: files: overlayfs-etc: add overlay mount options to preinit X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~4855 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13a057d6ffc3110f891224d7af9455b53581e8a8;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Claudius Heine Signed-off-by: Richard Purdie --- diff --git a/meta/files/overlayfs-etc-preinit.sh.in b/meta/files/overlayfs-etc-preinit.sh.in index e5f5001a058..43c9b04eb9c 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