Date: Mon, 02 Nov 2015 09:21:00 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 204215] [patch] [feature-request] make rc.initdiskless more embedded-friendly and support auxiliary NVRAM Message-ID: <bug-204215-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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: freebsd-bugs@FreeBSD.org Reporter: eugen@grosbein.net 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204215-8>