summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/system.c
Commit message (Collapse)AuthorAgeFilesLines
* * Negative #if's are harder to read as they don't tell exactly what archobrien2002-10-111-1/+1
| | | | | | | | | something applies to. So change #ifndef to an explicit list of defines. * Treate sparc64 and ia64 as 64-bit platforms, which means larger roots. * sparc64 should halt back to the firmware, not reset. * sparc64 doesn't need to play MS-DOS/BIOS partition crap games. Reviewed by: jake
* Teach sysinstall that documents on the boot floppy might not be gzipped.jhay2002-08-091-0/+6
| | | | Reviewed by: ru
* MFS: Stop reaping children. It makes evil things happen to the extractionjkh2001-11-011-0/+2
| | | | loop.
* Move the 'type' variable inside the block where it is actually used.jhb2001-10-231-3/+3
|
* DTRT in the restart casejkh2001-10-121-1/+1
|
* Close all open file descriptors before restarting sysinstall.murray2001-09-301-1/+6
| | | | | PR: bin/30737 Submitted by: Alexey V. Neyman <alex.neyman@auriga.ru>
* Silence warnings.murray2001-09-221-1/+2
|
* Add a function to free all of sysinstall's internal variables from themurray2001-09-221-1/+4
| | | | | | | | | environment. This fixes an annoying bug where hitting Ctrl-C and telling sysinstall to 'restart' will do no such thing since many of the options are still set and so you won't be prompted for them again. MFC after: 1 week
* Whitespace change only. Use the same indention level throughout thismurray2001-09-141-11/+12
| | | | | | file and add a blank line after variable declarations. Submitted by: jhb
* If we're running as init, install a signal handler for SIGCHLD.murray2001-09-061-0/+13
| | | | | PR: bin/14729 Submitted by: jhb
* Fix the type of the NULL arg to execl()brian2001-07-091-1/+1
| | | | Idea from: Theo de Raadt <deraadt@openbsd.org>
* Look for help files in /usr/src/usr.sbin/sysinstall instead ofjhb2001-01-171-2/+2
| | | | /usr/src/release/sysinstall.
* Adapt sysinstall to use the new msgNoYes() function which assumesjkh2000-12-141-1/+1
| | | | | | no as a default. Sysinstall should be both less dangerous and less annoying as a result of this change, though that's just my opinion (since they're the defaults which annoy ME the least :).
* Changes have been made to support a concept of VAR_FIXIT_TTY beingjkh2000-10-301-10/+18
| | | | | | | | | | | | | | | | | standard or serial. This change needs to be done to the entire system that depends on this. This way we don't have some code using OnVTY checks and other doing strcmp(variable_get(VAR_FIXIT_TTY), "standard") == 0 checks. Also we need to set VAR_FIXIT_TTY to "serial" if we come up on a serial console. Also fixed a dialog problem in that dialog was used when dialog was disabled causing some troubles such as not letting the cursor keys work when exiting the fixit mode on media (ie. not the fixit shell but for example fixit on a floppy). Submitted by: Doug Ambrisko <ambrisko@whistle.com> PR: 22352
* Teach sysinstall how to restart itself on Ctrl-C (as an addition to its oldeivind2000-10-291-4/+48
| | | | | | tricks of rebooting and continuing where it was.) Reviewed by: jkh, jhb
* Initiate deorbit burn sequence for <machine/console.h>.phk2000-10-081-1/+1
| | | | | | | | | Replace all in-tree uses with necessary subset of <sys/{fb,kb,cons}io.h>. This is also the appropriate fix for exo-tree sources. Put warnings in <machine/console.h> to discourage use. November 15th 2000 the warnings will be converted to errors. January 15th 2001 the <machine/console.h> files will be removed.
* Allow the Fix-it functionality to detect that we are on a serial console,obrien2000-07-181-6/+45
| | | | | | | | and DTRT rather than start the fixit shell on a non-existant vty. PR: 19837 Submitted by: Doug Ambrisko <ambrisko@whistle.com> Approved by: JKH
* Add #includes for sysctlbyname() to quiet a warning.jhb2000-03-251-0/+2
|
* Make sysinstall use the new debug.boothowto OID. It will now gojkh2000-02-251-4/+8
| | | | | | | | straight into debug mode if you boot -v. Also conditionalize some annoying debugging output now that we have this ability. Partially submitted by: msmith Approved by: jkh [to make certain wise-acres happy ;)]
* In retrospect, msgNotify() should leave its contents on the screenjkh1999-12-171-0/+3
| | | | | longer to give the user something to look at while things are happening. Change it to do so and insert the appropriate screen saves elsewhere.
* Completely rip-out and redesign sysinstall's refresh model as welljkh1999-12-141-1/+6
| | | | | | | | | | | | as redoing all the menus to have proper, or at least non-hallucinogenic, keyboard accelerators. This requires my recent update to libdialog to work properly and will probably also exhibit some other "interesting" behavior while the last few missing screen clears are found (which is why I'm not going to MFC immediately). At least now, however, sysinstall does not gratuitously redraw random screens at the drop of a hat and drive serial console installers out of their minds.
* I shouldn't have incremented PART_OFF; it was wrong and broke labeljkh1999-12-121-0/+2
| | | | | display to boot. Also fix some various warning fluff while I'm in here cleaning up.
* o Catch up with pnp changes - kget no longer saves pnp data.jkh1999-09-041-4/+1
| | | | o Catch up with ncurses updates - some internal function names have changed.
* Oh crud, did I ever screw the pooch! Rather than sync this with -stable,jkh1999-09-021-2/+8
| | | | | | | | | | I backed-out the changes in -current and didn't touch stable at all (I thought I had my patch order reversed, not what actually happened). AIEEE! I can't even blame the crack for this one since I broke my crack pipe a few weeks ago. I think sleep deprivation gets the blame for this one. Medal for noticing this one goes to: Jim Bloom <bloom@acm.org>
* MFC: Catch 3.2-stable sysinstall up to 4.0-current level functionality,jkh1999-09-011-8/+2
| | | | | | | bringing in DHCP support. The only thing I left out were Poul-Henning's newfs changes since I'm not sure if he's brought the rest of that support into -stable yet. If it turns out that this is the case, I'll MFC those changes too.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* we only need to declare i if we are building for the alpha.billf1999-07-291-1/+3
|
* More Alpha ifdefage.jkh1999-07-201-1/+3
|
* Another batch of fixes for dhcp support in sysinstall, now draggingjkh1999-07-191-4/+2
| | | | | | | | in some code from C. Stone to parse the lease information. This is still a WIP and this commit is largely intended to allow others to sync up; the dhclient code still only works when doing dhcp configuration post-install and requires a bit more work on the boot floppy before it will truly work in the minimal bootstrapping role.
* Add in a hack to turn off unaligned access warnings for alpha.jkh1999-07-161-2/+6
| | | | Submitted by: msmith
* Unbreak the fixit floppy.jkh1999-02-151-3/+3
| | | | Clean up some of the media handling to use common routines.
* Fix incorrect initial state for two variables.jkh1999-02-141-2/+2
|
* Write changes out to /etc/rc.conf again; rc.conf.site is dead!jkh1999-02-091-2/+2
|
* Totally change the way variables are accounted for in sysinstall.jkh1999-02-051-2/+2
| | | | | | | | Now we know which variables are internal and which need to be backed to /etc/rc.conf.site. rc.conf is not touched now. Also kget kernel change information back properly and set up a loader.rc file to use it.
* close doc race.jkh1999-01-081-8/+16
|
* Adapt sysinstall more fully to the alpha (deal with proper boot signatures,jkh1999-01-081-1/+5
| | | | | | don't present label editor, etc). Submitted by: dfr
* Deal with both foo.hlp and FOO.TXT files.jkh1998-11-031-1/+7
|
* Simplify gunzip usage even more (doh!).jkh1998-09-301-2/+2
|
* Call gunzip correctly.jkh1998-09-301-2/+4
|
* Make serial console based installs actually work by:jkh1997-07-311-5/+26
| | | | | | | | | | | 1. Detecting the split /dev/ttyv0 / /dev/console case, e.g. you've booted with the -h flag and you have a VGA card also. 2. Adding an extra "menu" for selecting terminal type and adding ANSI to the list of compiled-in terms. 3. Opening the proper file descriptors before disowning ourselves. Requested by: pst
* Always write out rc.conf, regardless of status.jkh1997-05-271-3/+2
| | | | PR: 3698
* Adapt to rc.conf file format.jkh1997-04-281-4/+4
|
* Back out mount change here (which is the only branch it should havejkh1997-04-281-5/+1
| | | | occupied in the first place :)
* YAMF22jkh1997-04-281-1/+5
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Save /etc/sysconfig data at the very very end, so that it can bejkh1997-02-101-0/+4
| | | | | | used post-install time as a configuration tool as well. Update comments about a kernel recompile being necessary for PS/2 mice.
* OK, I've got two ideas to file in the "really seemed like a good ideajkh1997-01-241-26/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | at the time, but on further reflection..." bucket with these changes. 1. Checking the media before frobbing the disks was a fine idea, and I wish it could have worked, but that leads to a rather difficult situation when you need to mount the media someplace and you're about to: a) Chroot away from your present root. b) Newfs the root to be. You're basically screwed since there's no place to stick the mount point where it will be found following the newfs/chroot (and eliminating the chroot in favor of just using the "root bias" feature would work great for the distributions but not the pkg_add calls done by the package installer). 2. Automatic timeout handling. I don't know why, but alarm() frequently returns no residual even when the alarm didn't go off, which defies the man page but hey, since when was that so unusual? Take out timeouts but retain the code which temporarily replaces the SIGINT handler in favor of a more media-specific handler. This way, at least, if it's hanging you can at least whap it. I think the timeout code would have been losing over *really slow* links anyway, so it's probably best that it go. This should fix NFS, tape & CDROM installs again (serves me right for getting complacent and using just the FTP installs in my testing).
* Use alarm's return status to more properly denote timeout rather than keepingjkh1997-01-191-6/+3
| | | | an icky global around.
* Add timeout support to sysinstall's general media handling,jkh1997-01-171-0/+29
| | | | allow SIGINT to stand for "time out now!" in certain cases.
* Don't call systemShutdown() from signal handler so that the media devicejkh1997-01-151-2/+2
| | | | | is closed. The FTP library doesn't expect to be called recursively from an interrupt. :)
OpenPOWER on IntegriCloud