Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159643 - Baselayout support for enabling and saving kernel's core dumps
Summary: Baselayout support for enabling and saving kernel's core dumps
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL: http://farragut.flameeyes.is-a-geek.o...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2007-01-01 13:24 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2007-01-13 14:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
localmount patch (localmount-fbsd-core.patch,1.63 KB, patch)
2007-01-01 13:24 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
conf.d/localmount (localmount,1.22 KB, text/plain)
2007-01-01 13:25 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2007-01-01 13:24:17 UTC
As I wrote on my blog (in URL), to be able to get kernel's core dumps and save them to file, localmount has to handle it between the mounting of local filesystems and the activation of swap, and has to enable the dump support after the swap.

I'm attaching a patch for localmount, and a conf.d/localmount file only relevant on FreeBSD, that allows to set up dump support for the kernel and to save the generated cores. I've tested it myself and it works quite nicely.

I made it a function to avoid 4 levels ifs clauses, but it can be easily unrolled if needed.

HTH,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-01-01 13:24:45 UTC
Created attachment 105096 [details, diff]
localmount patch
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-01-01 13:25:45 UTC
Created attachment 105097 [details]
conf.d/localmount
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-01-03 08:05:21 UTC
In SVN, will be in alpha11
Comment 4 Roy Marples (RETIRED) gentoo-dev 2007-01-13 14:19:20 UTC
alpha11 is out