https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204215
Bug ID: 204215
Summary: [patch] [feature-request] make rc.initdiskless more
embedded-friendly and support auxiliary NVRAM
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Keywords: patch
Severity: Affects Some People
Priority: ---
Component: conf
Assignee: [email protected]
Reporter: [email protected]
Keywords: patch
Created attachment 162691
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=162691&action=edit
support for auxiliary NVRAM
/etc/rc.initdiskless makes excellent job for initial configuration for diskless
systems and systems with read-only boot media. It is used, for example, with
nanobsd(8).
Currently, rc.inidiskless assumes that local system configuration changes are
kept in some mountable file system. Nanobsd uses dedicated partition mounted as
/cfg for this. However, small embedded devices like MIPS routers may have no
enough flash space to keep full-blown file system but have only one or couple
of small flash blocks for persistent configuration.
The following patch extends rc.initdiskless and introduces ability to run
auxiliary command /conf/T/M/extract that is supposed to extract configuration
overrides from such local storage.
For example, the command /conf/default/etc/extract may contain something like:
'cd "$1" && bsdcpio --quiet -idu < /dev/map/cfg'
Assuming the storage is exposed by a kernel as /dev/map/cfg to userland,
bsdcpio command extracts compressed archive from the storage to /etc.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"