aboutsummaryrefslogtreecommitdiff
path: root/sbin/reboot
Commit message (Collapse)AuthorAgeFilesLines
* Add flag to disable inital reboot(8) userland syncSteven Hartland2015-12-152-7/+23
| | | | | | | | | | | | | | | | | | Add -N flag to reboot(8) which bypasses the userland sync(2) during reboot(8) while still allow the kernel sync during the reboot(2) syscall to occur. An example use of this is when rebooting with disconnected iSCSI sessions which would otherwise cause the reboot to hang on BIOs that will never complete. Reviewed by: bjk MFC after: 2 weeks Sponsored by: Multiplay Differential Revision: https://reviews.freebsd.org/D4449 Notes: svn path=/head/; revision=292266
* Userspace part of reroot support. This makes it possible to changeEdward Tomasz Napierala2015-11-082-3/+35
| | | | | | | | | | | | | | | | 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. Reviewed by: kib@, bapt@ MFC after: 1 month Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3693 Notes: svn path=/head/; revision=290548
* It's 2015, and some people are still trying to use fdisk and thenEdward Tomasz Napierala2015-09-021-1/+1
| | | | | | | | | | | | | | | | go asking what debug flags to set for GEOM to make it work. Advice them to use gpart(8) instead. Something similar should probably done with disklabel, but I need to rewrite the disklabel examples first. Reviewed by: wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3315 Notes: svn path=/head/; revision=287396
* Fix a few mandoc warnings.Christian Brueffer2015-08-121-1/+0
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=286660
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-1/+7
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge from head@274682Simon J. Gerraty2014-11-191-2/+8
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * \ Merge head from 7/28Simon J. Gerraty2014-08-192-2/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | | Merge from headSimon J. Gerraty2013-09-051-1/+2
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * \ \ \ sync from headSimon J. Gerraty2013-04-121-4/+3
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | Document that nextboot(8) doesn't work as expected with ZFSAllan Jude2015-03-171-1/+7
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D2087 Submitted by: feld (request) Reviewed by: feld Approved by: bcr (mentor) Sponsored by: ScaleEngine Inc. Notes: svn path=/head/; revision=280191
* | | | | Reference uefi(8) from i386 boot(8)Ed Maste2014-11-141-2/+8
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suggested by trasz. Differential Revision: https://reviews.freebsd.org/D1162 Notes: svn path=/head/; revision=274527
* | | | use .Mt to mark up email addresses consistently (part1)Baptiste Daroussin2014-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267667
* | | | Minor mdoc improvements.Joel Dahl2014-06-061-1/+0
| |_|/ |/| | | | | | | | Notes: svn path=/head/; revision=267182
* | | Add a new gptboot(8) man page. Factor out the redundant informationWarren Block2013-07-011-1/+2
| |/ |/| | | | | | | | | | | | | | | | | in gpart(8) and boot(8), adding references to gptboot(8) in both. Reviewed by: jhb, ae, pjd, Paul Schenkeveld <bsdcan@psconsult.nl>, david_a_bright@dell.com (portions), gjb MFC after: 1 week Notes: svn path=/head/; revision=252492
* | Clarify that overriding the -h/-D flags through flags in device.hintsNick Hibma2013-02-261-4/+3
|/ | | | | | | only works for sio(4) but not for uart(4) which no longer has this flag. Notes: svn path=/head/; revision=247359
* Add BSD copyright notice.Ed Maste2012-02-071-2/+22
| | | | | | | Approved by: gordon@ Notes: svn path=/head/; revision=231129
* Add -e to set arbitrary kernel environment variables.Ed Maste2012-01-312-10/+44
| | | | | | | | | | | Nextboot(8) can now set any combination of kernel name (-k), kernel options (-o), and environment strings (-e). As a result of this change -k also becomes optional. Reviewed by: freebsd-current (Ian Lepore, pluknet@, jhb@) Notes: svn path=/head/; revision=230812
* Spelling fixes for sbin/Ulrich Spörlein2012-01-071-1/+1
| | | | Notes: svn path=/head/; revision=229778
* Let reboot(8) use getprogname() to compare the program name.Ed Schouten2011-12-111-3/+3
| | | | | | | | While there, mark the global variable dohalt static, as reboot(8) only consists of a single C file. Notes: svn path=/head/; revision=228408
* Remove vestiges of disklabel(5).Sergey Kandaurov2011-04-141-3/+1
| | | | | | | | Reviewed by: uqs MFC after: 5 days Notes: svn path=/head/; revision=220617
* Remove stale reference to wtmp(5).Ed Schouten2010-10-111-2/+2
| | | | | | | Reported by: pluknet Notes: svn path=/head/; revision=213697
* nextboot: warn about limitations of /boot/nextboot.conf on ZFSAndriy Gapon2010-09-171-0/+8
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=212789
* Let boot(8) refer to the uart(4) serial driver, which is the replacementBenedict Reuschling2010-07-041-3/+3
| | | | | | | | | | | | for the obsolete sio(4) driver. PR: docs/144498 Submitted by: Bruce Cran (bruce at cran dot org dot uk) Approved by: marcel MFC after: 2 weeks Notes: svn path=/head/; revision=209703
* Remove stale references to utmp(5) and its corresponding filenames.Ed Schouten2010-01-211-3/+2
| | | | | | | I removed utmp and its manpage, but not other manpages referring to it. Notes: svn path=/head/; revision=202756
* Port the remaining apps in sbin/ to utmpx; only reboot(8).Ed Schouten2010-01-132-4/+1
| | | | Notes: svn path=/head/; revision=202195
* Add forgotten `void' keyword. This function has no arguments.Ed Schouten2009-12-291-1/+1
| | | | Notes: svn path=/head/; revision=201182
* Let init(8) and reboot(8) use utmpx to log wtmp entries.Ed Schouten2009-12-052-4/+9
| | | | | | | | | | | 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(). Notes: svn path=/head/; revision=200161
* More rational usage()Dag-Erling Smørgrav2009-11-101-3/+5
| | | | Notes: svn path=/head/; revision=199130
* Switch the default WARNS level for sbin/ to 6.Ruslan Ermilov2009-10-191-1/+0
| | | | | | | Submitted by: Ulrich Spörlein Notes: svn path=/head/; revision=198236
* Remove and unused variable.Bjoern A. Zeeb2009-01-311-2/+1
| | | | | | | | Submitted by: Christoph Mallon christoph.mallon@gmx.de MFC after: 2 weeks Notes: svn path=/head/; revision=187956
* - Sweep the boot(8) man page after addition of boot.config(5).Daniel Gerzo2007-08-181-15/+8
| | | | | | | | Reviewed by: keramida Approved by: re (kensmith) Notes: svn path=/head/; revision=171883
* Cross-reference nextboot(8).Joseph Koshy2006-11-222-0/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=164509
* Block a variety of signals which may afffect reboot(8), before killingBruce M Simpson2006-08-021-2/+15
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=160916
* Block SIGHUP before killing init(8), to avoid a race condition which mayBruce M Simpson2006-08-021-3/+3
| | | | | | | | | | | kill the current process and hang the system when attempting reboot. PR: bin/64664 Reviewed by: ssouhal, phk (historic) MFC after: 30 days Notes: svn path=/head/; revision=160914
* o Describe what actually boot(8) -m mutes.Maxim Konovalov2006-04-181-1/+2
| | | | | | | | | PR: docs/67893 Submitted by: Chris Pepper, Daniel Gerzo MFC after: 2 weeks Notes: svn path=/head/; revision=157847
* Revert previous change, "getopts" (with an 's') is a builtin inWes Peters2006-01-181-23/+8
| | | | | | | /bin/sh. Notes: svn path=/head/; revision=154498
* Remove dependency on getopts because it is on /usr and we want toWes Peters2006-01-161-8/+23
| | | | | | | use 'nextboot -D' in rc. Option parsing cribbed from vgrind.sh. Notes: svn path=/head/; revision=154431
* -mdoc sweep.Ruslan Ermilov2005-11-181-2/+2
| | | | Notes: svn path=/head/; revision=152568
* Do not install boot_i386.8 on all architectures.Ruslan Ermilov2005-11-171-1/+3
| | | | Notes: svn path=/head/; revision=152544
* Add new option `q', which makes second stage loader quiet unless autobootMaxim Sobolev2005-10-161-1/+10
| | | | | | | | | is disabled or fails. MFC after: 1 week Notes: svn path=/head/; revision=151367
* Replace "/etc/make.conf" with references to make.conf(5)Yaroslav Tykhiy2005-10-101-1/+2
| | | | | | | | | | | | where applicable. The main reason for this change is that the location of make.conf is not constant and can be modified via __MAKE_CONF. This change also improves hyper-text linkage in our manpages. MFC after: 2 weeks Notes: svn path=/head/; revision=151202
* Simplified markup.Ruslan Ermilov2005-09-281-10/+3
| | | | Notes: svn path=/head/; revision=150662
* Add the ability to specify the boot2 serial console speed inIan Dowse2005-08-181-4/+22
| | | | | | | | | | | /boot.config or on the "boot:" prompt line via a "-S<speed>" flag, e.g. "-h -S19200". This adds about 50 bytes to the size of boot2 and required a few other small changes to limit the size impact. This changes only affects boot2; there are further loader changes to follow. Notes: svn path=/head/; revision=149212