【发布时间】:2016-08-04 09:05:45
【问题描述】:
我对 yocto 项目中的“只读 rootfs”功能有一些疑问,不幸的是,文档没有那么有用。
因此,将其添加到 EXTRA_IMAGE_FEATURES 会使 yocto fs 只读,但在:
5.15.3. Areas With Write Access
With the read-only-rootfs feature enabled, any attempt by the target to
write to the root filesystem at runtime fails. Consequently, you must make
sure that you configure processes and applications that attempt these types
of writes do so to directories with write access (e.g. /tmp or /var/run).
他们说可以将某些区域设为 rw,但他们没有提供有关此的额外信息。
我想要实现的是要加载到 RAM 中的所有操作、进程和内容,并且 SD 卡应该保持不变,就好像它是在闪烁之后,而不是在其上写入一个位。但是用户应该有可能在任何时候将sd卡上的特定文件夹(内存区域)打开并写入一些东西,然后再次将系统设置为只读。
有人会这样做吗?你会帮我很多的。
【问题讨论】:
-
您好,安装了 tmpfs rw 的区域本身将被允许,正如他所说的 /tmp、/var/run 和其他为其配置的区域。如果你想使用文件系统来 ro 并最终 rw 可以搜索 UbiFS。
标签: linux arm filesystems yocto cortex-a