[yocto] readonly rootfs - storing data in separate partition

Joshua Watt jpewhacker at gmail.com
Tue Feb 19 06:36:34 PST 2019


On Tue, 2019-02-19 at 08:36 +0100, Belisko Marek wrote:
> On Mon, Feb 18, 2019 at 6:05 PM Joshua Watt <jpewhacker at gmail.com>
> wrote:
> > On Mon, 2019-02-18 at 17:36 +0100, Belisko Marek wrote:
> > > Hi,
> > > I plan to use readonly rootfs option and store some custom data
> > > in separate partition (like hostname, wpa_supplicant.conf etc). I
> > > have wic file which create rootfs + then rest is for data
> > > storage. I can adjust various recipes to symlink to /data
> > > partition. My question is if there exists some mechanism how to
> > > store some pieces in non-rootfs partition? I know some projects
> > > which put those extra files to deploy dir and then by dd create
> > > dummy storage nd put files there and finally create partition
> > > from that. Thanks a log for any pointers.
> > 
> > We do this a lot using volatiles files. The best documentation is
> > the core volatiles file: 
> > https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-core/initscripts/initscripts-1.0/volatiles
> Can this be used when systemd is init manager? Thanks.

I'm pretty sure systemd processes volatiles as well, although I can't
find the exact code to point to at the moment to confirm it.
> > > BR,
> > > 
> > > marek
> > > 
> > -- 
> > Joshua Watt <JPEWhacker at gmail.com>
> 
> BR,
> 
> /marek
> 
> 
> 
-- 
Joshua Watt <JPEWhacker at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190219/a30dd728/attachment.html>


More information about the yocto mailing list