Page MenuHomeFreeBSD

D34474.diff
No OneTemporary

D34474.diff

diff --git a/libexec/rc/rc.d/dumpon b/libexec/rc/rc.d/dumpon
--- a/libexec/rc/rc.d/dumpon
+++ b/libexec/rc/rc.d/dumpon
@@ -33,6 +33,19 @@
return 1
}
+dumpon_warn_unencrypted()
+{
+ if [ -n "${dumppubkey}" ]; then
+ return
+ fi
+ for flag in ${dumpon_flags}; do
+ if [ $flag = -k ]; then
+ return
+ fi
+ done
+ warn "Kernel dumps will be written to the swap partition without encryption."
+}
+
dumpon_start()
{
# Enable dumpdev so that savecore can see it. Enable it
@@ -50,6 +63,12 @@
fi
while read dev mp type more ; do
[ "${type}" = "swap" ] || continue
+ case ${dev} in
+ *.bde|*.eli)
+ dumpon_warn_unencrypted
+ dev=${dev%.*}
+ ;;
+ esac
[ -c "${dev}" ] || continue
dumpon_try "${dev}" 2>/dev/null && return 0
done </etc/fstab

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 3:04 AM (21 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14728713
Default Alt Text
D34474.diff (782 B)

Event Timeline