opnsense-src/libexec/rc/rc.d
Ed Maste 67e751f167 dumpon: use underlying device if encrypted swap is in use
/etc/rc.d/dumpon runs before /etc/rc.d/swap.  When encrypted swap is in
use the .eli or .bde device will not exist at the time dumpon runs.

Even if this is addressed it does not make sense to dump core to
encrypted swap, as the encryption key will not be available after
reboot rendering the dump useless.  Thus, for the case that dumpdev=AUTO
and encrypted swap is in use, strip the extension and use the underlying
device.

Emit a warning if we are using the underlying device and the user has not
configured dump encryption, so that the user knows that the will not be
encrypted.

PR:		238301
Reported by:	Ivan Rozhuk
Reviewed by:	jilles
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D34474
2022-03-09 19:43:14 -05:00
..
accounting Limit access to system accounting files. 2019-07-13 16:07:38 +00:00
adjkerntz
apm
apmd
auditd rc.d/auditd: set pidfile 2021-01-28 17:24:24 +00:00
auditdistd
automount
automountd
autounmountd
bgfsck
blacklistd
bluetooth bluetooth: Remove stray btccc references 2021-09-29 21:58:27 -06:00
bootparams
bridge
bsnmpd
bthidd Revert r346017 pending compiled-in zfs fix 2019-04-10 07:51:13 +00:00
ccd
cfumass Revert r346017 pending compiled-in zfs fix 2019-04-10 07:51:13 +00:00
cleanvar
cleartmp
cron
ctld rc: make ctld depend on NETWORKING 2021-04-05 16:40:54 +01:00
DAEMON
ddb
defaultroute
devd
devfs
devmatch devmatch: Allow devmatch_blocklist to be set in kenv too 2021-11-21 08:54:45 -07:00
dhclient Create dhclient pid directory if it doesn't exist 2021-02-23 13:19:44 +00:00
dmesg
dumpon dumpon: use underlying device if encrypted swap is in use 2022-03-09 19:43:14 -05:00
FILESYSTEMS Add 'tmp' to the list of FILESYSTEMS dependencies. Some scripts that 2021-01-15 12:44:06 -08:00
fsck Add fsck_flags config option 2020-03-18 13:09:47 +00:00
ftp-proxy
ftpd
gbde
geli
geli2
ggated rc.d/ggated: Simplify service script 2022-03-04 17:50:42 +01:00
gptboot
growfs - Fix the growfs rc script to cope with diskid labels. 2021-08-17 21:50:18 +00:00
gssd gssd: Modify /etc/rc.d/gssd so that it starts after NETWORKING 2022-02-15 14:18:23 -08:00
hastd
hcsecd
hostapd hostapd: Fix wlan interfaces not UP/RUNNING 2021-12-14 06:18:37 -08:00
hostid
hostid_save
hostname
inetd
iovctl
ip6addrctl
ipfilter Remove the redundant ipfilter IPv6 rc rules load. 2021-02-22 11:20:18 -08:00
ipfs Follow-up on 51da4b19be. When booting a system with WITHOUT_IPFILTER 2021-01-11 12:36:54 -08:00
ipfw ipfw: reload sysctl.conf variables if needed 2021-05-18 04:03:15 +07:00
ipfw_netflow
ipmon When booting a system with WITHOUT_IPFILTER the following errors 2020-08-11 23:36:38 +00:00
ipnat When booting a system with WITHOUT_IPFILTER the following errors 2020-08-11 23:36:38 +00:00
ippool Load ipfilter, ipnat, and ippool rules, and start ipmon in a vnet jail. 2020-07-23 17:39:45 +00:00
ipropd_master
ipropd_slave
ipsec Add ipsec.ko to required_modules for rc.d/ipsec script. 2019-05-06 08:30:53 +00:00
iscsictl rc: replace NETWORK with NETWORKING 2021-04-12 15:28:48 +01:00
iscsid rc: replace NETWORK with NETWORKING 2021-04-12 15:28:48 +01:00
jail Add support for jail.conf.d 2021-09-10 00:30:04 -05:00
kadmind
kdc
keyserv
kfd rc: replace NETWORK with NETWORKING 2021-04-12 15:28:48 +01:00
kld provide easy way to disable kld_list loading 2021-05-05 15:19:41 -06:00
kldxref rc: kldxref needs mountcritlocal, not root 2021-04-11 15:19:33 +01:00
kpasswdd
ldconfig libsoft: Remove runtime ldconfig support for libsoft 2022-01-06 22:34:18 -07:00
linux rc.d/linux: Attempt to mount only if necessary 2021-11-13 16:15:14 +01:00
local /etc/rc.d/local: Fix typo in description 2019-06-10 13:34:18 +00:00
local_unbound Fix post-start check when unbound.conf has moved. 2021-03-10 15:53:25 +00:00
localpkg Rename etc/rc.d/abi to etc/rc.d/linux; after moving out the SysV IPC stuff 2019-10-02 11:40:40 +00:00
lockd mountd: Delay starting mountd until after mountlate 2022-01-23 14:17:40 -08:00
LOGIN
lpd
Makefile Add ggated rc script 2022-02-27 21:14:52 -07:00
mdconfig Revert r346017 pending compiled-in zfs fix 2019-04-10 07:51:13 +00:00
mdconfig2 Revert r346017 pending compiled-in zfs fix 2019-04-10 07:51:13 +00:00
mixer rc.d/mixer: Use -o flag instead of -s flag to get current mixer state. 2021-09-22 22:09:36 +02:00
motd motd: Generate from template to /var/run 2019-07-20 20:56:31 +00:00
mountcritlocal To avoid breakage for those who build/install without ZFS only 2020-08-26 20:30:00 +00:00
mountcritremote Make mountcritremote dependent upon nfscbd. 2020-12-17 00:20:57 +00:00
mountd mountd: Delay starting mountd until after mountlate 2022-01-23 14:17:40 -08:00
mountlate Remove excess spaces from rc.d scripts 2020-07-13 13:44:54 +00:00
moused
msgs
natd
netif Retire synchronous PPP kernel driver sppp(4). 2021-10-22 11:41:36 -07:00
netoptions Run netoptions startup script in vnet jails. 2020-01-08 23:34:50 +00:00
netwait When booting a system with WITHOUT_IPFILTER the following errors 2020-08-11 23:36:38 +00:00
NETWORKING
newsyslog
nfscbd
nfsclient
nfsd nfsd: Add a new rc variable nfs_server_maxio 2021-11-16 16:02:53 -08:00
nfsuserd
nisdomain
nscd
ntpd rc.d/ntp: Ensure ntpd.leap-seconds.list is readable by ntpd 2022-01-18 06:21:00 -08:00
ntpdate
opensm
os-release os-release: Quote variables as documented in the manual 2021-11-24 16:17:01 +01:00
othermta
pf pf: fallback if $pf_rules fails to load 2021-07-08 14:22:04 +02:00
pflog
pfsync
power_profile
powerd
ppp
pppoed
pwcheck
quota
random rc.d/random: add support for zero harvest_mask 2021-05-26 18:30:24 +07:00
rarpd
rctl rc.d/rctl: unbreak for distinct /usr filesystem 2021-11-20 15:56:43 +07:00
resolv
rfcomm_pppd_server
root
route6d
routed rc: replace NETWORK with NETWORKING 2021-04-12 15:28:48 +01:00
routing Add support for adding default routes for other FIBs 2021-05-12 01:59:10 +00:00
rpcbind
rtadvd
rtsold
rwho
savecore
sdpd
securelevel rc.d: unbreak sysctl lastload 2021-05-19 20:02:31 +07:00
sendmail
serial
SERVERS Rename etc/rc.d/abi to etc/rc.d/linux; after moving out the SysV IPC stuff 2019-10-02 11:40:40 +00:00
sshd sshd: Warn about missing ssh-keygen only when necessary 2020-04-15 14:07:33 +00:00
statd mountd: Delay starting mountd until after mountlate 2022-01-23 14:17:40 -08:00
static_arp
static_ndp
stf
swap
swaplate
syscons rc.d/syscons: remove spaces before tab 2020-10-25 18:27:21 +00:00
sysctl
sysctl_lastload rc.d: unbreak sysctl lastload 2021-05-19 20:02:31 +07:00
syslogd
sysvipc rc: remove the 'archdep' script 2021-04-12 15:18:17 +01:00
tlsclntd nfs-over-tls: add rc scripts for rpc.tlsclntd and rpc.tlsservd 2021-02-18 14:38:01 -08:00
tlsservd nfs-over-tls: add rc scripts for rpc.tlsclntd and rpc.tlsservd 2021-02-18 14:38:01 -08:00
tmp Remove dependency on files in /usr/bin 2021-01-19 12:56:23 +01:00
ubthidhci
ugidfw
utx
var
virecover
watchdogd add ability to set watchdog timeout for a shutdown 2019-10-03 11:23:10 +00:00
wpa_supplicant wpa: Address CTRL-EVENT-SCAN-FAILED 2021-09-08 17:20:52 -07:00
ypbind
ypldap
yppasswdd
ypserv
ypset
ypupdated
ypxfrd
zfs Revert r367291 (KEYWORD: shutdown for rc.d/zfs) 2020-11-20 14:37:07 +00:00
zfsbe loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
zfsd
zfskeys Add zfskeys rc.d script for auto-loading encryption keys 2021-07-28 16:26:45 +00:00
zpool wait for device mounts in zpool and dumpon 2021-04-05 09:25:04 -07:00
zvol Make zpool on GELI work again. 2020-09-04 23:36:43 +00:00