Bug 70536 - reboot(8) -dp tries to dump when powering off
Summary: reboot(8) -dp tries to dump when powering off
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 5.2-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-16 13:40 UTC by Giorgos Keramidas
Modified: 2018-01-03 05:14 UTC (History)
0 users

See Also:


Attachments
file.diff (609 bytes, patch)
2004-08-16 13:40 UTC, Giorgos Keramidas
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Giorgos Keramidas 2004-08-16 13:40:10 UTC
The reboot command when called as "halt" does not allow kernel dumps.
The message printed is:

    halt: cannot dump (-d) when halting; must reboot instead

The same command allows the user to specify both -d and -p options
though, which attempt to generate a kernel dump and then promptly power
off the machine using ACPI.

I've marked this as a change-request since it's not a real *bug*; it's
more something that seems "natural" to me and I have in my local src
tree for a while now.

Fix: The following minor patch makes RB_HALT and RB_POWEROFF equivalent
regarding kernel dumps.

%%%
How-To-Repeat: 
        # halt -d
        # reboot -dp
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-01-29 12:55:49 UTC
Responsible Changed
From-To: freebsd-bugs->edwin

I'll handle with mentor.
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2008-02-14 10:34:20 UTC
Responsible Changed
From-To: edwin->freebsd-bugs


Give back into the pool until later.
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:11 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped