Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Dmesg for Previous Boot?
Date: Tue, 18 Oct 2005 03:33:21
Message-Id: 43546C10.4030601@asmallpond.org
In Reply to: Re: [gentoo-user] Dmesg for Previous Boot? by Jerry McBride
1 Jerry McBride wrote:
2
3 >On Monday 17 October 2005 14:18, Richard Fish wrote:
4 >
5 >
6 >>Jerry McBride wrote:
7 >>
8 >>
9 >>>No. Once the kernel reboots, the dmesg data is lost. Unless ofcourse you
10 >>>put this in /etc/conf.d/local.start:
11 >>>
12 >>>#!/bin/bash
13 >>># /etc/conf.d/local.start
14 >>>/bin/dmesg > /var/log/dmesg
15 >>>
16 >>>
17 >>FYI, the bootmisc init script already does this for you, or at least it
18 >>does with the ~x86 baselayout. Just "rc-update -a bootmisc boot" if it
19 >>isn't already turned on.
20 >>
21 >>
22 >>
23 >
24 >Richard, where is this documented? I've missed it entirely....
25 >
26 >
27
28 Well, the authoritative document is "less /etc/init.d/bootmisc". ;-> I
29 don't know if it is documented somewhere else. You should find:
30
31 # Create an 'after-boot' dmesg log
32 #
33 touch /var/log/dmesg
34 chmod 640 /var/log/dmesg
35 dmesg > /var/log/dmesg
36
37 I just checked the stable baselayout (1.11.13-r1), and it seems to be there.
38
39 -Richard
40
41 --
42 gentoo-user@g.o mailing list