Automated submission of kernel panic reports: sysutils/panicmail

Carlos Jacobo Puga Medina cjpugmed at gmail.com
Wed Nov 6 23:43:18 UTC 2013


At last, I realized how to solved this inconvenient. Digging a bit I found
what I needed. All is summarized in the pr124747 which describes perfectly
this problem and attached a patch to fix it.

I add the modified patch according to current rc.d scripts included.

diff -ur encswap.orig encswap
--- encswap.orig 2013-11-06 23:31:43.000000000 +0100
+++ encswap 2013-11-07 00:14:03.000000000 +0100
@@ -3,8 +3,8 @@
 # $FreeBSD: release/9.2.0/etc/rc.d/encswap 180563 2008-07-16 19:22:48Z
dougb $
 #

-# PROVIDE: disks
-# REQUIRE: initrandom
+# PROVIDE: encswap
+# REQUIRE: initrandom disks
 # KEYWORD: nojail

 . /etc/rc.subr
diff -ur savecore.orig savecore
--- savecore.orig 2013-11-06 23:32:21.000000000 +0100
+++ savecore 2013-11-07 00:14:18.000000000 +0100
@@ -4,7 +4,7 @@
 #

 # PROVIDE: savecore
-# REQUIRE: dumpon ddb syslogd
+# BEFORE: encswap
 # KEYWORD: nojail

 . /etc/rc.subr
diff -ur swap1.orig swap1
--- swap1.orig 2013-11-06 23:32:28.000000000 +0100
+++ swap1 2013-11-07 00:14:29.000000000 +0100
@@ -4,7 +4,7 @@
 #

 # PROVIDE: localswap
-# REQUIRE: disks
+# REQUIRE: encswap disks
 # KEYWORD: nojail shutdown

 . /etc/rc.subr

I tested it and now it works like a charm.


2013/11/5 Carlos Jacobo Puga Medina <cjpugmed at gmail.com>

> Add missing thread related to Pawel's proposal [1]
>
> [1]
> http://lists.freebsd.org/pipermail/freebsd-fs/2010-September/009256.html
>
>
> 2013/11/5 Carlos Jacobo Puga Medina <cjpugmed at gmail.com>
>
>> Seems that rc.d scripts order doesn't allow geli-encrypted swap and
>> dumpdev to cooperate together. For this reason, I wonder what happens in
>> such cases, is not possible to use panicmail unless Pawel's proposal [1]
>> which argued to obtain and save crash info in memory somewhere before we
>> configure swap and copy it to /var/crash/ once we mount it.
>>
>> Is sustainable this proposal or is there yet another alternative to
>> consider for those who use an encrypted GELI swap?
>>
>> --CJPM
>>
>
>


More information about the freebsd-hackers mailing list