jmcneill
4b542cfeea
Allow getty to exit quickly a few times before deciding that it is exiting
...
too quickly. Based on a FreeBSD change from 1994.
2021-10-11 20:23:25 +00:00
msaitoh
9007cd7213
s/successfuly/successfully/ in comment. No functional change.
2020-06-22 07:50:53 +00:00
mrg
de11d87641
introduce some common variables for use in GCC warning disables:
...
GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)
use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.
we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
2019-10-13 07:28:04 +00:00
wiz
7c8c4d229e
Remove superfluous Pp.
2019-09-01 19:13:18 +00:00
sevan
fe6b8268b9
grammar
2019-09-01 18:51:27 +00:00
sevan
480937e0df
init first appeared in V1 UNIX
...
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/init.s
Replace contraction.
Bump date.
2016-09-11 22:22:57 +00:00
christos
fec59bb419
these are syslog-like
2015-10-14 15:53:24 +00:00
christos
d3037dba83
fix error messages containing \n
2015-06-16 23:18:54 +00:00
apb
86fd64c325
The "-s" flag is passed to init by the kernel, not by the boot loader.
2013-10-02 22:07:56 +00:00
apb
06dcf00819
Document that the kernel may try several paths for init.
...
XXX: This should be in the kernel documentation, not in the init(8) man page.
2013-10-02 22:01:47 +00:00
khorben
257dd81b98
Let init be built easily with the CHROOT capability enabled.
...
This allows the ramdisk used in the incoming support for full-disk encryption to contain crunched binaries (much like sysinst) while booting a regular system (unlike sysinst).
2013-07-15 00:18:03 +00:00
msaitoh
b6620403e7
Add missing free() in error path.
2012-11-09 06:27:17 +00:00
christos
e3f7c883f9
include the needed headers
2012-11-04 22:20:03 +00:00
matt
cf7ed4c9cc
Convert to C89 function definitions
2012-03-20 18:50:30 +00:00
christos
694c2250cf
make it compile with SMALLPROG
2011-08-28 10:13:03 +00:00
joerg
d2ac3967fe
Be more static
2011-08-27 17:43:42 +00:00
elad
34edb026e5
Keep an internal variable indicating whether securelevel is present, and
...
don't blindly try to get/set it. Prevents error messages that don't make
sense if securelevel isn't supported by the kernel.
2009-12-29 17:07:17 +00:00
mbalmer
124961627e
s/the the/the/
2009-11-22 18:40:26 +00:00
wiz
983cc93f85
Sort SEE ALSO.
2009-05-18 14:11:30 +00:00
apb
a194a42669
If MAKEDEV exits non-zero, but was nevertheless able to create
...
/dev/console, then have init(8) just print a warning instead of
exiting.
2009-04-12 09:31:32 +00:00
lukem
ef685eeea9
Enable WARNS=4 by default except for:
...
dump dump_lfs fsck_ffs fsck_lfs fsdb mount_smbfs
newfs_ext2fs newfs_lfs resize_lfs setkey
2009-04-11 07:58:11 +00:00
joerg
c7348fe221
Remove physical markup.
2009-04-08 14:21:55 +00:00
lukem
c6144e484f
fix -Wsign-compare issues
2009-01-18 00:24:29 +00:00
wiz
2ca1f539aa
Add backslash (minus is "\-").
2008-11-11 06:28:30 +00:00
reed
68f20c24d9
Add some details about init's role with securelevel.
...
Add references to other manual pages for more details.
2008-11-11 00:14:55 +00:00
lukem
ddd1724f86
xref rescue(8)
2008-10-21 02:32:37 +00:00
lukem
6543a91fea
Remove the \n and tabs from the __COPYRIGHT() strings.
...
(Tweak some to use a consistent format.)
2008-07-20 01:20:21 +00:00
christos
fb30984e82
un-bitrot #if 0 testing code.
2008-03-18 15:38:57 +00:00
dholland
2069154485
Mention utmpx/wtmpx as well as utmp/wtmp. Suggested by the patches in
...
PR bin/36551 by Greg A. Woods. Also, while I'm here, fix a miscapitalized
word.
2008-02-09 04:50:57 +00:00
snj
5a1d0f0133
Sort xrefs.
2007-12-15 21:44:15 +00:00
apb
824c1f08d4
Update for the fact that MAKEDEV uses either tmpfs or mfs.
2007-12-15 21:33:49 +00:00
apb
d9024ddf4b
* init calls "MAKEDEV -MM init", not "MAKEDEV -M init"
...
* s/filesystem/file system/
* one typo and one markup fix
* bump date
2007-12-09 09:24:55 +00:00
apb
edf9f9968b
No need to pass "-ppax" to MAKEDEV now that MAKEDEV internally defaults
...
to using pax.
2007-12-09 09:16:28 +00:00
hubertf
47665376cc
backout previous.
2007-03-24 00:17:34 +00:00
hubertf
137520cdea
Call the pivot root by it's name.
2007-03-23 16:42:27 +00:00
dyoung
7663f13790
KNF.
2007-03-21 03:51:30 +00:00
apb
7c0e506d3c
Adapt to the new MAKEDEV interpretation of -M by passing -MM.
...
Also pass "-ppax" in an attempt to get improved performance,
but this doesn't really work in the typical case, because the
install ramdisk image contains a version of pax(1) that doesn't
support the -M flag. (MAKEDEV detects the failure and falls back
to using mknod(8) as usual.)
2007-03-11 19:02:04 +00:00
dsl
19a3aab826
Update info about running MAKEDEV to note that MAKEDEV itself now creates
...
the mfs filesystem.
2007-03-03 07:54:15 +00:00
apb
1478a06a86
Remove all reference to MAKEDEV.subr. Add a reference to MAKEDEV.local.
2007-03-03 06:56:25 +00:00
dsl
1d350026de
Instead of creating the mfs /dev here, get MAKEDEV to do it.
...
Removes a load of code that is easier done as a script.
Whenever init exits, use a different error number. Since it is difficult
for init to output messages when /dev/console is absent, having the exit
code reported by the kernel panic gives a chance of identifying the fault.
Also exit if MAKEDEV fails to create /dev/console.
2007-03-02 22:43:24 +00:00
wiz
73dcdfe648
Bump date for previous.
2007-03-02 20:46:23 +00:00
apb
c3bbc70fa0
When calculating the size of the MFS /dev file system, round file sizes
...
up to a multiple of 512. (Not doing this before was wrong but probably
asymptomatic, because there was enough slack space to cope with the
error).
2007-03-01 18:25:58 +00:00
apb
c654f7abce
When creating /dev in a memory file system, include all three of
...
MAKEDEV, MAKEDEV.subr and MAKEDEV.local in the set of files that are
copied if they exist.
Now booting an INSTALL kernel with an embedded ramdisk correctly creates
/dev again, fixing a problem introduced when MAKEDEV.subr was created a
few days ago.
2007-03-01 07:18:07 +00:00
tron
e3f6d993ed
Increase the numbers of inodes available on the "/dev" MFS to 1280.
...
This should fix the "sysinst" problems caused by adding more devices
node to resolve PR port-amd64/35532.
2007-02-15 22:39:12 +00:00
cbiere
033e1229b9
Revert previous commit.
2007-02-06 20:24:19 +00:00
cbiere
21f5afe6b9
* 0/1 -> EXIT_{SUCCESS,FAILURE}
...
* make_utmpx(): Added comment and slightly simpler construct.
* alrm_handler(): Suppress "unused parameter" warning.
* mapfile():
* Handle st.st_size correctly.
* Avoid unnecessary return statements.
* Removed unnecessary MAP_FILE flag.
* Use S_ISLNK() and check S_ISREG() too.
* Add the terminating NUL rather after readlink() than
before, just in case.
* writefile():
* Avoid unnecessary return statements.
* read_ttys():
* Check S_ISREG() as well.
* Check for st.st_size > 0 rather than != 0.
2007-02-05 22:36:18 +00:00
njoly
e2ca295958
Fix compilation on 64bit platforms.
...
ok by elad.
2007-02-05 15:37:20 +00:00
christos
847a4f4ee5
warns=4
2007-02-04 20:54:02 +00:00
christos
6a075814d9
- close the utmpx file.
...
- sprinkle void
- use size_t consistently.
2007-02-04 20:53:19 +00:00
isaki
d4ba865188
Make it compile without SUPPORT_UTMP nor SUPPORT_UTMPX.
2007-01-20 13:25:28 +00:00