summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/system.c
Commit message (Collapse)AuthorAgeFilesLines
* Sysinstall has been repocopied to src/usr.sbin/sysinstall and everythingjhb2001-01-171-506/+0
| | | | now uses the sources found there.
* 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. :)
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Support the use of the 2nd CDROM as a fixit aid. Also put the EHSjkh1996-12-291-2/+25
| | | | | | | into a submenu in case you need to start it again (or at some other point in the installation). Submitted-By: joerg
* Fix some bogons in my close() handling.jkh1996-12-121-2/+2
|
* Cosmetic tweaks, initialize a few variables, fix a reversed conditional.jkh1996-12-111-2/+11
|
* Add Joerg's user management screen for David Nugent's pw(8) program, somethingjkh1996-12-091-2/+2
| | | | | | | | | which will also need to be brought in before this screen will work. Add some commentary about how the slip startup code is bogus. Steal Joerg's loop for more properly closing all files and graft it into the EHS startup. My loop was functional but more bogus.
* Installation cleanup, round II.jkh1996-10-011-1/+5
|
* Saner screen refresh changes, part I.jkh1996-10-011-4/+1
|
* If we're unable to open /dev/ttyv0, assume that we're on a single tty systempst1996-09-261-2/+6
| | | | | | | | and use /dev/console. I really think the proper test is to determine which device has been configured to be the console (remember the RB_SERIAL flag?) and use it instead of always trying to open /dev/ttyv0 first.
* Close PR#1542. Don't just assume 24 lines, get the tty size.jkh1996-08-011-1/+2
| | | | | | | Some things may still display text on the 24th line, but that's because they've always been screens designed to fit into a minimal real-estate and have hardwired assumptions about the dimensions. They'll be a little harder to make dynamic.
* Better error checking in helpfile expander.jkh1996-07-101-4/+2
| | | | Tart up some of the output a little.
* Whoops! Now that I'm decompressing docs into /tmp, it's important tojkh1996-07-081-1/+3
| | | | | make sure that /tmp is there first! :-) While I'm at it, clean up the somewhat inexplicably bogus Mkdir() function.
OpenPOWER on IntegriCloud