Re: stop "dmesg.boot" from being overwritten on each boot-up

From: Greg 'groggy' Lehey <grog_at_freebsd.org>
Date: Tue, 30 Apr 2024 00:55:43 UTC
[Trimmed, resequenced for clarity]

On Monday, 29 April 2024 at  5:21:51 -0400, Gerard E. Seibert wrote:
> On Mon, 29 Apr 2024 08:46:27 +1000, Greg 'groggy' Lehey <grog@freebsd.org> stated:
>> When replying to this message, please copy the original recipients.
>> If you don't, I may ignore the reply or reply to the original
>> recipients. For more information, see
>> http://www.lemis.com/questions.html Sent from my desktop computer.

You didn't copy questions@ on your last message.

>> On Sunday, 28 April 2024 at 16:42:58 -0400, Gerard E. Seibert wrote:
>>> I want to get a copy of what happens when the system locks up while
>>> booting with the i915ms.ko module. Is there any setting I can use to
>>> stop overwriting that file or perhaps append the output to it?
>>
>> Not that I know of.  But while you're in single user, you can rename
>> the file.  It would be better to copy it elsewhere in case the entire
>> contents of the /var/run directory gets removed.
>
> The problem with moving the file is that it has already been
> overwritten by the new boot-up process.

Not when you're in single user.  The file systems are mounted
read-only, and it's not even sure that /var is accessible.  To rename
the file you first need to mount -u / and maybe mount the file system
on which /var is located.  I assumed you knew that, since you did
other things in single user.

> I might make a suggestion that a mechanism be put in place to allow
> a user to not automatically overwrite that file. Something like
> letsencrypt does with its log files.

Sure, that's what the bugs system is for.  And in that connection,

>> Have you checked the bug reports for your i915ms problem?

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
Sent from my desktop computer.
See complete headers for address and phone numbers.
This message is digitally signed.  If your Microsoft mail program
reports problems, please read http://lemis.com/broken-MUA.php