Page MenuHomeFreeBSD

nanobsd: Disable dumpdev
Needs ReviewPublic

Authored by senguptaangshuman17_gmail.com on Wed, Aug 19, 10:21 AM.
Tags
None
Referenced Files
F168244283: D58963.id184328.diff
Thu, Aug 27, 3:38 AM
F168174162: D58963.diff
Wed, Aug 26, 5:27 PM
Unknown Object (File)
Wed, Aug 26, 9:45 AM
Unknown Object (File)
Wed, Aug 26, 8:21 AM
Unknown Object (File)
Tue, Aug 25, 9:46 PM
Unknown Object (File)
Tue, Aug 25, 11:50 AM
Unknown Object (File)
Tue, Aug 25, 11:50 AM
Unknown Object (File)
Tue, Aug 25, 10:38 AM
Subscribers

Details

Reviewers
jlduran
jrm
ashish
Summary

Ship by default with a disabled crash dump device.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 76023
Build 72906: arc lint + arc unit

Event Timeline

This revision should be moved to very early in the stack, as this is an option we should already have for NanoBSD.
I fail to understand the "matching the existing entropy settings for the read only root" part in the commit message though.

This revision is now accepted and ready to land.Thu, Aug 20, 4:04 PM
This revision now requires review to proceed.Sun, Aug 23, 11:02 PM

No code changes in this commit. An earlier commit in the stack (D58931) needed a commit-message reword per review feedback, which required a bottom-up arc diff refresh of every commit above it to keep the stack applying cleanly. That refresh is what reset this revision's accepted status, not a content change.

@jlduran, could you re-accept when you get a chance?

No code changes in this commit. An earlier commit in the stack (D58931) needed a commit-message reword per review feedback, which required a bottom-up arc diff refresh of every commit above it to keep the stack applying cleanly. That refresh is what reset this revision's accepted status, not a content change.

@jlduran, could you re-accept when you get a chance?

I fail to understand the "matching the existing entropy settings for the read only root" part in the commit message though.

No code changes in this commit. An earlier commit in the stack (D58931) needed a commit-message reword per review feedback, which required a bottom-up arc diff refresh of every commit above it to keep the stack applying cleanly. That refresh is what reset this revision's accepted status, not a content change.

@jlduran, could you re-accept when you get a chance?

I fail to understand the "matching the existing entropy settings for the read only root" part in the commit message though.

As per my reading and understanding, I thought this was in line with the entropy disabling part, that dump device should also be disabled for that reason.
I looked up now again and maybe found the real reason that nanobsd doesn't ship with a dump device so dumpon should be disabled so that it doesn't try configure a dump device.
If this is the actual reason let me know I will update the message and summary and also move this earlier in the stack.

No code changes in this commit. An earlier commit in the stack (D58931) needed a commit-message reword per review feedback, which required a bottom-up arc diff refresh of every commit above it to keep the stack applying cleanly. That refresh is what reset this revision's accepted status, not a content change.

@jlduran, could you re-accept when you get a chance?

I fail to understand the "matching the existing entropy settings for the read only root" part in the commit message though.

As per my reading and understanding, I thought this was in line with the entropy disabling part, that dump device should also be disabled for that reason.
I looked up now again and maybe found the real reason that nanobsd doesn't ship with a dump device so dumpon should be disabled so that it doesn't try configure a dump device.
If this is the actual reason let me know I will update the message and summary and also move this earlier in the stack.

The way I understand the commit message is that dumpon(8) is somehow related to random(4).

will this be fine as commit message?

nanobsd: Disable dumpdev

Ship by default with a disabled crash dump device, since nanobsd
doesn't configure a dump target for dumpon(8) to use.

Differential Revision:  https://reviews.freebsd.org/D58963

will this be fine as commit message?

nanobsd: Disable dumpdev

Ship by default with a disabled crash dump device, since nanobsd
doesn't configure a dump target for dumpon(8) to use.

Differential Revision:  https://reviews.freebsd.org/D58963

This has a bit of a circular reference---we're saying we disable it because NanoBSD doesn't configure it, but NanoBSD won't configure it because we're disabling it here. Let's update the rationale to explain why NanoBSD shouldn't have a dump device in the first place (e.g., read only file system, resource-constraints, etc.).

will this be fine as commit message?

nanobsd: Disable dumpdev

Ship by default with a disabled crash dump device, since nanobsd
doesn't configure a dump target for dumpon(8) to use.

Differential Revision:  https://reviews.freebsd.org/D58963

This has a bit of a circular reference---we're saying we disable it because NanoBSD doesn't configure it, but NanoBSD won't configure it because we're disabling it here. Let's update the rationale to explain why NanoBSD shouldn't have a dump device in the first place (e.g., read only file system, resource-constraints, etc.).

will this do?

nanobsd: Disable dumpdev

nanobsd targets resource-constrained embedded media, so images ship
without a swap partition by default and cannot spare storage to
persist a crash dump. The root filesystem is also read only.

Differential Revision:  https://reviews.freebsd.org/D58963

Maybe something closer to:

nanobsd: Disable dumpdev

The root filesystem is read-only by default, making crash dumps
non-functional.
Disable dumpdev to prevent dumpon warnings.