summaryrefslogtreecommitdiff
path: root/libexec/rc/rc.initdiskless
Commit message (Collapse)AuthorAgeFilesLines
* Make mdmfs verbose if diskless boot is verbose.Lev A. Serebryakov2019-04-261-1/+5
| | | | | | | | Approved by: ian@ Differential Revision: D17104 Notes: svn path=/head/; revision=346749
* rc.initdiskless: fix commentary grammar after r339465Eugene Grosbein2018-10-201-1/+1
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=339472
* rc.initdiskless: add support for auxiliary NVRAM.Eugene Grosbein2018-10-201-2/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=339465
* Move the rc framework out of sbin/init into libexec/rc.Bjoern A. Zeeb2018-10-171-0/+382
The reasons for this are forward looking to pkgbase: * /sbin/init is a special binary; try not to replace it with every package update because an rc script was touched. (a follow-up commit will make init its own package) * having rc in its own place will allow more easy replacement of the rc framework with alternatives, such as openrc. Discussed with: brd (during BSDCam), kmoore Requested by: cem, bz PR: 231522 Approved by: re (gjb) Notes: svn path=/head/; revision=339413