History log of /freebsd-current/sbin/init/Makefile
Revision Date Author Comments
# 51e16cb8 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

sbin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# c76616f4 13-May-2021 Elliott Mitchell <ehem+freebsd@m5p.com>

etc/ttys: merge ttys file down to single file

The tty lists were already pretty similar and there hadn't been any real
need for them to remain distinct for some time. As such, merge to a
single file.

The RISC-V console is preserved. For systems where it doesn't exist, its
presence in /etc/ttys is harmless. The uncommented version of the
ttyv8/XDM line from ttys.amd64 was the one chosen.

Reviewed by: imp
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D30256


# 0696600c 17-Oct-2018 Bjoern A. Zeeb <bz@FreeBSD.org>

Move the rc framework out of sbin/init into libexec/rc.

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)


# 966f2a6f 04-Sep-2018 Brad Davis <brd@FreeBSD.org>

Move etc/ttys to sbin/init/.

And simplify this a little by flattening the directory structure.

Approved by: re (gjb), will (mentor)
Differential Revision: https://reviews.freebsd.org/D16955


# 76ec4952 28-Jul-2018 Brad Davis <brd@FreeBSD.org>

Switch these to CONFS as well so they work with etcupdate/mergemaster.

Approved by: will (mentor)


# 1135e97b 28-Jul-2018 Brad Davis <brd@FreeBSD.org>

Move rc startup scripts from etc/ to sbin/init/

This keeps most startup scripts as CONFS per discussion on src-committers from
back during BSDCan.

Approved by: will (mentor)
Differential Revision: https://reviews.freebsd.org/D16466


# 22289a8c 04-Mar-2017 Enji Cooper <ngie@FreeBSD.org>

sbin: normalize paths using SRCTOP-relative paths or :H when possible

This simplifies make logic/output

MFC after: 1 month
Sponsored by: Dell EMC Isilon


# 406d87b1 09-Feb-2016 Glen Barber <gjb@FreeBSD.org>

Explicitly add more files to the 'runtime' package.

Sponsored by: The FreeBSD Foundation


# 3f5ac575 08-Nov-2015 Edward Tomasz Napierala <trasz@FreeBSD.org>

Userspace part of reroot support. This makes it possible to change
the root filesystem without full reboot, using "reboot -r". This can
be used to to eg. boot from a temporary md_image preloaded by loader(8),
setup an iSCSI session, and continue booting from rootfs mounted over
iSCSI.

Reviewed by: kib@, bapt@
MFC after: 1 month
Relnotes: yes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3693


# 13eb765f 25-Nov-2014 Baptiste Daroussin <bapt@FreeBSD.org>

Convert sbin/ to LIBADD
Reduce overlinking


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# bb6c7612 13-Jan-2010 Ed Schouten <ed@FreeBSD.org>

Migrate init(8) towards utmpx.

According to a comment, we cannot safely remove utmpx entries here
anymore. This is because the libc routines may block on file locking. In
an ideal world login(1) should just remove the entries, which is why I'm
disabling this code for now. If it turns out we get lots of stale
entries here, we should figure out a way to deal with that.


# 14c69f21 05-Dec-2009 Ed Schouten <ed@FreeBSD.org>

Let init(8) and reboot(8) use utmpx to log wtmp entries.

logwtmp() gets called with the raw strings that are written to disk. For
regular user entries, this isn't too bad, but when booting/shutting
down, the contents get rather cryptic.

Just call the standardized pututxline().


# 106d8391 19-Oct-2009 Ruslan Ermilov <ru@FreeBSD.org>

Switch the default WARNS level for sbin/ to 6.

Submitted by: Ulrich Spörlein


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# fcd7ed0e 01-Jun-2007 Remko Lodder <remko@FreeBSD.org>

I understood the MLINK part incorrectly, it should be the other way around
also remove the init mlink to securelevel.

Discussed with and sharing pointyhat with: brueffer


# cea897b2 28-Feb-2006 Luigi Rizzo <luigi@FreeBSD.org>

use standard mode instead of 500 for /sbin/init.

As discussed on -current, there is no sensitive info in /sbin/init
to prevent reading it from non-privileged users, nor any reason to
remove the 'x' bit as the first thing the program does is check the
uid and exit if it is not run by root.

Instead (and this is why i make the change), mode 500 prevents
operation when exporting the partition without -maproot=0 to diskless
clients.

All previuos releases are affected by the same problem, so a merge
to RELENG_6 at least would be appropriate (after proper re@ approval
of course).


# ab03e6d5 11-Jan-2005 Xin LI <delphij@FreeBSD.org>

Make WARNS=6 happy with our init(8):
- Use more ``const''s where suitable.
- Define strk() as a static function in global scope.
This avoids the "nested extern declaration" warnings.
- Use static initialization of strings, rather than
referring string constants through char *.
- Bump WARNS from 0 to 6.


# 83c7ade9 21-Dec-2004 Ruslan Ermilov <ru@FreeBSD.org>

NOSHARED -> NO_SHARED


# dee651eb 03-Nov-2004 Ruslan Ermilov <ru@FreeBSD.org>

Introduce the PRECIOUSPROG knob in bsd.prog.mk, similar
to PRECIOUSLIB from bsd.lib.mk. The side effect of this
is making installing the world under jail(8) possible by
using another knob, NOFSCHG.

Reviewed by: oliver


# 604d24db 23-Feb-2004 Johan Karlsson <johan@FreeBSD.org>

style.Makefile(5):
Use WARNS?= instead of WARNS=.


# dc59303d 19-Nov-2003 Gordon Tetlow <gordon@FreeBSD.org>

Make init statically linked by default. It's not worth the pain of having
a dynamically linked init as recently seen by ia64 woes.

Approved by: re (jhb)


# 2d68bf45 03-Dec-2001 David E. O'Brien <obrien@FreeBSD.org>

Default to WARNS=2.
Binary builds that cannot handle this must explicitly set WARNS=0.

Reviewed by: mike


# 4cf39050 28-May-2001 Ruslan Ermilov <ru@FreeBSD.org>

Use new backup feature of install(1).


# 0a5779d4 26-Mar-2001 Ruslan Ermilov <ru@FreeBSD.org>

- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.


# fe655281 20-Mar-2001 Ruslan Ermilov <ru@FreeBSD.org>

Set the default manual section for sbin/ to 8.


# 623d7cd3 01-Jan-2001 Peter Wemm <peter@FreeBSD.org>

Further tidy up the sbin/init and release builds.


# 8440a010 01-Jan-2001 Poul-Henning Kamp <phk@FreeBSD.org>

This is not necessarily the correct fix, but at least sbin/init compiles
in a sterile environment like "make release"


# aeca5be5 09-Jun-2000 Alexander Langer <alex@FreeBSD.org>

Add MLINK init.8 --> securelevel.8

Requested by: Brett Glass <brett@lariat.org>
PR: 13792
Submitted by: nik


# 21fd828d 29-Feb-2000 Mark Murray <markm@FreeBSD.org>

Change DISTRIBUTION to match new world order.


# 7f3dea24 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# ec3e2c5d 05-Aug-1999 Ruslan Ermilov <ru@FreeBSD.org>

Backup existing init(8) as /sbin/init.bak.

PR: 12976
Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>


# 5d94d8b6 01-Jul-1999 Ruslan Ermilov <ru@FreeBSD.org>

Turn System V command line syntax ``on'' by default.

Requested by: peter
Reviewed by: des, billf


# 1681d659 18-Jun-1999 Ruslan Ermilov <ru@FreeBSD.org>

Bring in System V run-level patches (turned off by default).
While I'm here, fix some typos in the manpage.

Requested by: des


# 87f01287 20-Jan-1998 Bruce Evans <bde@FreeBSD.org>

Removed definition of _NEW_VFSCONF. The new vfsconf interface is now
the default.


# 80f69e57 17-Aug-1997 David Nugent <davidn@FreeBSD.org>

".if exists(${CURDIR}/../../secure)" rather than testing relative to the
object directory.


# 19e00c13 05-Jul-1997 Andrey A. Chernov <ache@FreeBSD.org>

Add -D_NEW_VFSCONF to eliminate compilation warning


# c0ec1f37 22-Feb-1997 Peter Wemm <peter@FreeBSD.org>

Revert $FreeBSD$ to $Id$


# 35c6fcd4 10-Feb-1997 Mark Murray <markm@FreeBSD.org>

Part two of a "fix-and-move". There were some macros declared in ../sbin's
Makefile that were a) broken and b) bogusly placed. This brings the
repeared macros in.

Pointed-out-by: BDE


# 1ef60eb1 19-Jan-1997 David Nugent <davidn@FreeBSD.org>

Impose login_cap resource limits on processes started by init.
/etc/rc started with "daemon" settings.
"window=" started with "default" settings
gettys started with "default" settings.
This should open the way to junk kernel options MAX_{OPEN,CHILD}
and the corresponding sysctl vars.


# 1130b656 14-Jan-1997 Jordan K. Hubbard <jkh@FreeBSD.org>

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 5b963fa1 05-Sep-1996 Bruce Evans <bde@FreeBSD.org>

Fixed DPADD.


# 24136561 04-May-1996 Mark Murray <markm@FreeBSD.org>

Better method of choosing libdescrypt/libscrypt.


# b6729ee0 13-Feb-1996 Joerg Wunsch <joerg@FreeBSD.org>

The DES-based init(8) belongs to the "des" distribution.


# 7d2c66ed 03-Oct-1995 Bruce Evans <bde@FreeBSD.org>

Fix $Id$.


# 090bf93c 01-Oct-1995 Mark Murray <markm@FreeBSD.org>

Make this make work the same way as passwd and xntpd. Here it will allow
secure/sbin/init to be cleaned out, and sbin/Makefile to be tidied up.


# 053b68b9 14-Aug-1994 Garrett Wollman <wollman@FreeBSD.org>

`init' needs crypt() for insecure consoles.


# 404c1a5f 04-Aug-1994 Garrett Wollman <wollman@FreeBSD.org>

Convert to our man installation style. Also fixed long-standing bug
in `fastboot'/`fasthalt' in which the interpreter would hang around
after `reboot' or `halt' is run, causing an irritating ``Killed'' message.


# 8fae3551 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite sbin Sources

Note: XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.