<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/etc/rc, branch releng/11.3</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F11.3</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F11.3'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2018-04-04T16:59:10Z</updated>
<entry>
<title>MFC r307826,r328949: Firstboot fs mount changes</title>
<updated>2018-04-04T16:59:10Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2018-04-04T16:59:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6ad9aa79b92555bfd6223bd1d1bcd4fc5664a1af'/>
<id>urn:sha1:6ad9aa79b92555bfd6223bd1d1bcd4fc5664a1af</id>
<content type='text'>
MFC r307826: Use checkyesno instead of rolling my own..

MFC r328949: Fix firstboot fs mount logic

The firstboot logic has an error which causes the filesystem to be
mounted readonly even though root_rw_mount=YES. This fixes the error to
ensure that the root filesystem is mounted rw as expected after the run
of the firstboot scripts.
</content>
</entry>
<entry>
<title>MFC r307469 (imp):</title>
<updated>2017-05-22T16:07:17Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2017-05-22T16:07:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=be52f88bd37bb13ee162eb5b682448516eec2d90'/>
<id>urn:sha1:be52f88bd37bb13ee162eb5b682448516eec2d90</id>
<content type='text'>
 Allow root_rw_mount to be both lower and upper case. Before, if it was
 upper case, you'd wind up with a read-only filesystem when you should
 sometimes.

PR: 213549
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>Try a little harder to remove firstboot and firstboot-reboot files in</title>
<updated>2016-01-06T17:13:40Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2016-01-06T17:13:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3e972f44093c9fa5f585388920bb1caccbe6ff15'/>
<id>urn:sha1:3e972f44093c9fa5f585388920bb1caccbe6ff15</id>
<content type='text'>
case they accidentally get created as directories or with flags that
prevent their removal. While I wouldn't normally go the extra mile
here and let the normal unix rules prevail, the effects of failure are
large enough that extra care is warranted.
</content>
</entry>
<entry>
<title>Use the more proper -f. Leave /bin/rm in place since that's what</title>
<updated>2016-01-05T21:20:47Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2016-01-05T21:20:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=71b902050d159268fdc5e15c4fc9d143bf72bcaf'/>
<id>urn:sha1:71b902050d159268fdc5e15c4fc9d143bf72bcaf</id>
<content type='text'>
other rc scripts have, though it isn't strictly necessary.
</content>
</entry>
<entry>
<title>Use /bin/rm to remove /firstboot*. Otherwise rm -i alias is picked</title>
<updated>2016-01-03T19:18:48Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2016-01-03T19:18:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d3e4bc1271f6d0df1dc6e728826c4c6423fbd2e5'/>
<id>urn:sha1:d3e4bc1271f6d0df1dc6e728826c4c6423fbd2e5</id>
<content type='text'>
up and can cause issues on boot with the prompts. Fix the read-only
root case with horrible kludge of mounting rw removing the files, then
mounting ro. But since that's no more horrible than the kludge of
using marker files in /. With this change, NanoBSD configs can safely
use /firstboot + growfs to produce minimal images that grow to the
size of the card.
</content>
</entry>
<entry>
<title>The early-late divider was originally set to mountcritlocal.  Since that</title>
<updated>2014-12-01T12:29:59Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2014-12-01T12:29:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cd06771f0c1b1ab57a433c594426b61f124e7ca6'/>
<id>urn:sha1:cd06771f0c1b1ab57a433c594426b61f124e7ca6</id>
<content type='text'>
service does not run in jails, it was necessary to change it to something
else when jailed, and NETWORKING was arbitrarily chosen.  The divider was
later moved to FILESYSTEMS when it was introduced, but the logic to change
it to NETWORKING when jailed remained.  Remove it, as it no longer serves
any purpose.

PR:		194975
MFC after:	1 week
</content>
</entry>
<entry>
<title>The rc system aggressively caches the contents of /etc/rc.conf in order to</title>
<updated>2013-12-03T21:55:57Z</updated>
<author>
<name>Colin Percival</name>
<email>cperciva@FreeBSD.org</email>
</author>
<published>2013-12-03T21:55:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b6ae696fc9d8b84913d50c73ec94c926f5238725'/>
<id>urn:sha1:b6ae696fc9d8b84913d50c73ec94c926f5238725</id>
<content type='text'>
improve boot performance; this produces arguably astonishing (non-)results
if /etc/rc.conf is modified during the boot process.

Since performance considerations make it infeasible to automatically detect
if the cached /etc/rc.conf parameters should be invalidated, provide a
mechanism for explicitly requesting that /etc/rc.conf be reloaded: Catch
SIGALRM and reload /etc/rc.conf if it is received.

Discussed on:	freebsd-rc
MFC after:	3 days
</content>
</entry>
<entry>
<title>Add support for "first boot" rc.d scripts. [1]</title>
<updated>2013-10-19T21:37:06Z</updated>
<author>
<name>Colin Percival</name>
<email>cperciva@FreeBSD.org</email>
</author>
<published>2013-10-19T21:37:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cabad2645377fe097fc53e7403d2c5b3ed95ff9a'/>
<id>urn:sha1:cabad2645377fe097fc53e7403d2c5b3ed95ff9a</id>
<content type='text'>
These scripts, containing
# KEYWORD: firstboot
will only be run if a sentinel file (default: /firstboot, configurable
via the rc.conf ${firstboot_sentinel} variable) exists; this sentinel
file will be deleted at the end of the boot process.

Scripts can request that the system reboot after the first boot by
creating the file ${firstboot_sentinel}-reboot.

This functionality is expected to be useful for embedded systems and
virtual machine images, where it may be desirable to
(a) download and install updates which became available between when
the image was created and when it was "turned on";
(b) download and install packages which may be newer than those
which were available when the image was created;
(c) install packages which run binaries during their install process,
bypassing the problem of cross-architecture installs;
(d) resize filesystems to match the disk onto which a VM image was
installed;
(e) perform initialization tasks relevant to cloud systems (e.g.,
Amazon's Elastic Compute Cloud);
and likely to perform many other one-time initialization functions.

Document this new functionality in rc.conf(5) and rc(8). [2]

Reviewed by:	freebsd-current, freebsd-rc [1]
Reviewed by:	Warren Block [2]
MFC after:	3 days
</content>
</entry>
<entry>
<title>Refine the "nojail" rc keyword, adding "nojailvnet" for files that don't</title>
<updated>2013-05-19T04:10:34Z</updated>
<author>
<name>Jamie Gritton</name>
<email>jamie@FreeBSD.org</email>
</author>
<published>2013-05-19T04:10:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=761d2bb5b9e70cf30f9c2dac62a47a2d2593e83f'/>
<id>urn:sha1:761d2bb5b9e70cf30f9c2dac62a47a2d2593e83f</id>
<content type='text'>
apply to most jails but do apply to vnet jails.  This includes adding
a new sysctl "security.jail.vnet" to identify vnet jails.

PR:		conf/149050
Submitted by:	mdodd
MFC after:	3 days
</content>
</entry>
<entry>
<title>Hide stty(1) errors.</title>
<updated>2012-03-14T16:10:39Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2012-03-14T16:10:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=93bd0cdedd5ef285de4a7540281a0382d759e4fc'/>
<id>urn:sha1:93bd0cdedd5ef285de4a7540281a0382d759e4fc</id>
<content type='text'>
If rc(8) is executed without using a TTY, this error appears at the
beginning:

	stty: stdin isn't a terminal

Because this is to be expected and of course not harmful, it is better
to simply hide the error message.

MFC after:	1 week
</content>
</entry>
</feed>
