Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sbin/init



Module Name:    src
Committed By:   salo
Date:           Tue Apr 18 11:40:27 UTC 2006

Modified Files:
        src/sbin/init: Makefile NOTES init.8 init.c

Log Message:
Add support for running multi-user in a chroot() environment.

How it works:

- after successful execution of /etc/rc, check the value of "init.root"
  sysctl node, if it's different than "/", chroot() into its value and run
  /etc/rc inside the chroot(),

- in single-user, return back to the original / file system.

Allows running with / file system on e.g., cgd(4), vnd(4) or ccd(4) volumes.

Idea first discussed with Matt Thomas, implemented by Jachym Holecek <freza
(at) liberouter.org> with some nitpicks by me.  Successfully used by me for
almost a year with / on a cgd(4) volume (for more information about the setup
check ftp://ftp.NetBSD.org/pub/NetBSD/misc/salo/init-chroot/ ).


To generate a diff of this commit:
cvs rdiff -r1.35 -r1.36 src/sbin/init/Makefile
cvs rdiff -r1.2 -r1.3 src/sbin/init/NOTES
cvs rdiff -r1.37 -r1.38 src/sbin/init/init.8
cvs rdiff -r1.72 -r1.73 src/sbin/init/init.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index