| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Add missing parameters -N and -l to reroot and halt usage()
Approved by: bapt
Sponsored by: Rubicon Communications (Netgate)
Differential Revision: https://reviews.freebsd.org/D6173
|
|
|
|
|
|
|
|
|
|
|
|
| |
Userspace part of reroot support. This makes it possible to change
the root filesystem without full reboot, using "reboot -r". This can
be used to to eg. boot from a temporary md_image preloaded by loader(8),
setup an iSCSI session, and continue booting from rootfs mounted over
iSCSI.
Relnotes: yes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3693
|
|
|
|
|
|
| |
Add flag to disable inital reboot(8) userland sync
Sponsored by: Multiplay
|
|
|
|
|
| |
While there, mark the global variable dohalt static, as reboot(8) only
consists of a single C file.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
logwtmp() gets called with the raw strings that are written to disk. For
regular user entries, this isn't too bad, but when booting/shutting
down, the contents get rather cryptic.
Just call the standardized pututxline().
|
| |
|
|
|
|
|
| |
Submitted by: Christoph Mallon christoph.mallon@gmx.de
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
|
| |
init(8), to avoid losing a race to them and dying before being able
to call reboot(2).
PR: bin/64664
Submitted by: maxim
Obtained from: NetBSD
MFC after: 30 days
|
|
|
|
|
|
|
|
| |
kill the current process and hang the system when attempting reboot.
PR: bin/64664
Reviewed by: ssouhal, phk (historic)
MFC after: 30 days
|
|
|
|
|
|
| |
Submitted by: Gary Allan <dragonfly@gallan.plus.com>
Obtained from: DragonFlyBSD
MFC after: 3 days
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
with -k option and never be used without kflag. This confuses
gcc because we set "kflag" at the same time with "kernel", but
the logic is not that apparant for gcc.
Since we can initialize "kernel" to NULL then know if "k" option
is set through determining whether it is still NULL, don't try
to have gcc to guess why we are connecting "kflag" with "kernel"
and use "kernel" directly in place of kflag.
Bump WARNS?= from 2 to 6
|
|
|
|
|
|
| |
per letter dated July 22, 1999.
Approved by: core, imp
|
| |
|
|
|
|
|
|
| |
doesn't have a process group, which can occur if you're working with
a custom init that doesn't set up a full tty context. Rather than
refusing to reboot, ignore ESRCH from the kill attempt in reboot(8).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
'-p' is used on the reboot(8) command line.
This is intended for use when you want to attempt a power down
action, but you want the system to reboot (not halt) if the
power down action fails.
This is typically useful when the power-off action performed by
the kernel consists in signalling an uninterrupted power supply
that it should shut down its inverter if mains power has not returned.
The behaviour of shutdown(8) and init(8) is not modified;
only the behaviour of invoking 'reboot -p' manually is
modified, and then only in the case when a power-down action
fails.
Sounded reasonable to: phk
Approved by: roberto (mentor)
|
|
|
|
|
|
| |
nextboot functionality.
Reviewed by: jake (mentor)
|
|
|
|
|
|
|
| |
is a loader configuration file and can be used for more than just a
kernel name.
Submitted by: Gordon Tetlow <gordont@gnf.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
around. If the kernel boots successfully, the record of this kernel
is erased, it is intended to be a one-shot option for testing
kernels.
This could be improved by having the loader remove the record of
the next kernel to boot, it is currently removed in /etc/rc immediately
after disks are mounted r/w.
I'd like to MFC this before the 4.6 freeze unless there is violent
objection.
Reviewed by: Several on IRC
MFC after: 4 days
|
|
|
|
| |
Submitted by: Mike Barcroft <mike@q9media.com>
|
|
|
|
| |
builtins (e.g., exit, strcmp).
|
| |
|
|
|
|
|
|
|
|
|
|
| |
processes and then sends SIGKILLs. If a lot of processes are swapped
out, this delay may not be long enough, so processes such as an X
server may be killed before they have had time to clean up properly.
Make this delay more dynamic by waiting up to 60 seconds for swap
page-in activity to end. While I'm here, ANSIfy and remove a
`register' specifier.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
posix standard on the topic.
|
|
|
|
| |
(the RB_POWEROFF flag)
|
|
|
|
|
| |
This is for "backwards compatibility". Documented these aliases in the
manual page.
|
|
Note: XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.
|