freebsd-dev/libexec/rc
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
..
rc.d dumpdev: respect kenv for stable branches 2023-07-02 14:54:57 +07:00
tests spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
Makefile rc.sendmail: remove unused script 2022-11-09 16:55:18 +01:00
netstart Retire synchronous PPP kernel driver sppp(4). 2021-10-22 11:41:36 -07:00
network.subr network.subr: adjust regex for wlans_xxxxx rc.conf entries 2023-04-20 14:30:42 +00:00
pccard_ether
rc rc: ignore .pkgsave files 2023-03-14 20:52:15 -06:00
rc.bsdextended pkgbase: Really move rc.bsdextended 2019-05-22 07:39:59 +00:00
rc.conf dumpdev: respect kenv for stable branches 2023-07-02 14:54:57 +07:00
rc.firewall rc.firewall: Merge two identical conditions into one. 2020-07-23 15:03:28 +00:00
rc.initdiskless rc.initdiskless: Fix a typo in a comment 2023-01-19 14:17:37 +01:00
rc.resume rc.resume: remove obsolete comment 2023-05-23 18:26:56 +03:00
rc.shutdown rc.shutdown: kill shutdown process after logging message 2019-12-07 00:33:08 +00:00
rc.subr rc.subr(8): delete debug cpuset helper 2023-05-12 19:50:00 -07:00
rc.suspend rc.suspend: execute rc-scripts with suspend keyword 2023-05-23 18:11:31 +03:00