Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] rootfs overlay best practices
@ 2016-04-21 14:24 Patrick Doyle
  2016-04-21 22:09 ` Arnout Vandecappelle
  0 siblings, 1 reply; 5+ messages in thread
From: Patrick Doyle @ 2016-04-21 14:24 UTC (permalink / raw)
  To: buildroot

Rather than invent my own, I thought I would query the list first.

NOTE: This post does not refer to the root file system overlay one can
use to customize the build process.  I am looking for information
regarding non-volatile storage of configuration data.

So here is the situation.  I have compiled my (very tiny!) rootfs into
my kernel and boot with that as my rootfs.  But I would like to allow
myself the luxury of making changes to the rootfs by overlaying
non-volatile storage over the rootfs, or, perhaps over selected
portions of the rootfs.

How do folks typically manage this?

I could mount my overlay nonvolatile storage right at / (I think... I
haven't actually tried this yet!) and I think that means that any
change I make to the running system will be preserved.  But there are
probably some weird issues with mount points and such.

Or, I could mount my overlay storage someplace like /config, create
symlinks from selected (or all?) files in /etc to /config/etc, and
thus be able to modify e.g. /config/etc/hostname to change the name of
my device.  It seems like it would be pretty straightforward to write
a post-build script that duplicates /etc into /config/etc and replaces
the files in /etc with symlinks.

Or I could overthink this too much and perhaps I should just stop here
and seek the wisdom of the community.  This is the option I have
selected :-)

--wpd

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-04-22 16:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-21 14:24 [Buildroot] rootfs overlay best practices Patrick Doyle
2016-04-21 22:09 ` Arnout Vandecappelle
2016-04-22 13:35   ` Patrick Doyle
2016-04-22 13:50     ` Arnout Vandecappelle
2016-04-22 16:43     ` Steve Calfee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox