Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Oct 2018 18:14:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        rc@FreeBSD.org
Subject:   [Bug 204215] [patch] [feature-request] make rc.initdiskless more embedded-friendly and support auxiliary NVRAM
Message-ID:  <bug-204215-20181-i1Po7ElneL@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-204215-20181@https.bugs.freebsd.org/bugzilla/>
References:  <bug-204215-20181@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204215

--- Comment #4 from commit-hook@freebsd.org ---
A commit references this bug:

Author: eugen
Date: Sat Oct 20 18:13:51 UTC 2018
New revision: 339465
URL: https://svnweb.freebsd.org/changeset/base/339465

Log:
  rc.initdiskless: add support for auxiliary NVRAM.

  Currently, rc.inidiskless assumes that local system configuration
  changes are kept in some mountable file system. For example,
  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
  small flash blocks to keep persistent local configuration overrides.

  This change 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

  bsdcpio command extracts compressed archive from the storage to /etc
  assuming the storage is exposed by the kernel as /dev/map/cfg to userland.

  PR:           204215
  MFC after:    1 month

Changes:
  head/libexec/rc/rc.initdiskless

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204215-20181-i1Po7ElneL>