freebsd-src/libexec
Eugene Grosbein ccc806a049 dumpdev: respect kenv for stable branches
We have somewhat twisted logic to determine actions for dumpdev
considering three sources of information:

* kenv "dumpdev" tunnable supposed to point to specific device;
* /etc/defaults/rc.conf "dumpdev" variable;
* /etc/rc.conf that may be unset or set to "NO", "AUTO" or device name.

For CURRENT without any setting in kenv or /etc/rc.conf
the default is "AUTO". For STABLE branches the default is "NO".

Current implementation breaks for STABLE branches if kenv points
to specific device but /etc/rc.conf does not set "dumpdev" at all.

Let us fix it commenting out "dumpdev" in /etc/defaults/rc.conf
for STABLE branches and making the code to consult kenv
if "dumpdev" is not set elsewhere.

MFC-after:	1 month
2023-07-02 14:54:57 +07:00
..
atf Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
atrun spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
blacklistd-helper DIRDEPS_BUILD: Connect new directories and update dependencies. 2016-06-03 19:25:30 +00:00
bootpd Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
comsat Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
dma dma: install a simple example for the auth.conf file 2023-05-15 09:20:14 +02:00
fingerd Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
flua flua: chown(2) binding, fix bad copy/paste 2022-11-25 09:05:40 +01:00
ftpd Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
getty Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
hyperv pkgbase: Create a FreeBSD-hyperv package 2021-09-07 10:24:54 +02:00
mail.local Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
makewhatis.local makewhatis: do not try to operate on read-only mounted directories 2018-10-27 17:15:58 +00:00
mknetid Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
phttpget spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
pppoed spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
rbootd Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
rc dumpdev: respect kenv for stable branches 2023-07-02 14:54:57 +07:00
revnetgroup Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
rpc.rquotad Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
rpc.rstatd Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
rpc.rusersd Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
rpc.rwalld Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
rpc.sprayd spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD 2023-05-12 10:44:04 -06:00
rtld-elf rtld: Add a stop indicator to rtld_start to satisfy unwinders on x86_64 2023-07-01 10:51:35 +03:00
rtld-elf32 libcompat: Correct rtld MLINKS 2019-11-12 22:31:59 +00:00
save-entropy spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
smrsh Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
talkd spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
tcpd Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
tftp-proxy Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
tftpd spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ulog-helper spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ypxfr Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
Makefile Remove portsnap(8) 2023-04-22 18:12:37 -07:00
Makefile.inc Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00