diff options
author | Claudius Heine <ch@denx.de> | 2022-03-10 14:13:29 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-11 06:56:02 +0000 |
commit | 6dd32f4a3bf29605f7b8fb6e1d801628310fcfd3 (patch) | |
tree | 7c80e6502485d56eeb58f26d549c1ce290b246fd /meta/files | |
parent | 3653b9d37afaee287016df062a975cf9fa696e6b (diff) | |
download | poky-6dd32f4a3bf29605f7b8fb6e1d801628310fcfd3.tar.gz |
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>
Diffstat (limited to 'meta/files')
-rw-r--r-- | meta/files/overlayfs-etc-preinit.sh.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/files/overlayfs-etc-preinit.sh.in b/meta/files/overlayfs-etc-preinit.sh.in index e5f5001a05..43c9b04eb9 100644 --- a/meta/files/overlayfs-etc-preinit.sh.in +++ b/meta/files/overlayfs-etc-preinit.sh.in | |||
@@ -26,6 +26,7 @@ then | |||
26 | -o upperdir={OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/upper \ | 26 | -o upperdir={OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/upper \ |
27 | -o lowerdir=/etc \ | 27 | -o lowerdir=/etc \ |
28 | -o workdir={OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/work \ | 28 | -o workdir={OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/work \ |
29 | -o index=off,xino=off,redirect_dir=off,metacopy=off \ | ||
29 | {OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/upper /etc || \ | 30 | {OVERLAYFS_ETC_MOUNT_POINT}/overlay-etc/upper /etc || \ |
30 | echo "PREINIT: Mounting etc-overlay failed!" | 31 | echo "PREINIT: Mounting etc-overlay failed!" |
31 | else | 32 | else |