Index: libexec/rc/rc.d/dumpon =================================================================== --- libexec/rc/rc.d/dumpon +++ 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,10 +63,14 @@ fi while read dev mp type more ; do [ "${type}" = "swap" ] || continue + if expr ${dev} : .*\\.eli$ >/dev/null; then + dumpon_warn_unencrypted + dev=${dev%.eli} + fi [ -c "${dev}" ] || continue dumpon_try "${dev}" 2>/dev/null && return 0 done &2 + warn "No suitable dump device was found." return 1 ;; *)