summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/media.c
Commit message (Collapse)AuthorAgeFilesLines
* Make some changes to the way the label editor reads script variablesjkh1997-08-111-1/+26
| | | | | | | | | | | | | | | so you don't need to re-enter it for each and every filesystem. Heads up! This change is incompatible with the previous scripting format, so those folks (all 2 of you) using config files should take a look at the changes to the sample install.cfg file for the diskLabelEditor's new calling syntax. Finally write a man page for this thing, documenting all of the above and more. I can't drive a stake through this thing's heart without properly documenting it first, so please consider this step #1 in that process (to be honest, sysinstall will also live on for some time in the 2.2. branch since it's unlikely that the new install tools will ever make it over there - they're strictly 3.0 material).
* Back out the changes to set the resolver timeout. All they seem to dojkh1997-08-011-25/+0
| | | | | | | is _break_ dns lookups entirely, and since reading the relevant docs and source code does not enlighten for now, I'll remove this until more basic research has been done into controlling the resolver's timeout values.
* Fiddle with DNS options so that queries are also controlled byjkh1997-07-311-1/+26
| | | | | | | the MEDIA_TIMEOUT variable. Just -current for now on this one as I'm still wanting to play with this a bit and see what the ramifications of doing this are. Requested by: pst
* Resurrect / implement some of the more esoteric scripting features,jkh1997-06-051-3/+4
| | | | such as partitioning a disk or overriding an interactive prompt.
* Some of my pending merge changes, Paul Traina's more flexible configjkh1997-03-191-2/+2
| | | | | file loading code. Submitted by: pst
* YAMF22jkh1997-03-111-11/+12
|
* YAMF22jkh1997-03-071-10/+4
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Finally DTRT with tcpOpenDialog(); it should have never diddledjkh1997-02-171-17/+12
| | | | mediaDevice directly.
* o Try to be more aggressive about reading in old configuration datajkh1997-02-141-18/+42
| | | | | | | | | | | | | | | | | so that we're more useful in multi-user mode. This is still not 100%, but it pulls in a lot more than it used to. Some of the "composite" variables in /etc/sysconfig are going to take more work. o Always write /etc/resolv.conf and /etc/hosts if it makes sense to do so. o Reset media properly when reselecting. Longstanding bogon. o Pull SIGPIPE handling out of package.c; I'm actually hoping to handle this differently shortly. o Fix bug where cancel in TCP setup dialog still checked data fields. I think this closes a PR, but I will have to go look.
* OK, I've got two ideas to file in the "really seemed like a good ideajkh1997-01-241-27/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-3/+2
| | | | an icky global around.
* Fix a variety of problems with my timeout handling, make it morejkh1997-01-181-17/+32
| | | | | configurable (you can now set the timeout interval), fix a crash-bug when no network device was attached.
* Be more aggressive about timeouts.jkh1997-01-171-2/+2
|
* Add timeout support to sysinstall's general media handling,jkh1997-01-171-0/+22
| | | | allow SIGINT to stand for "time out now!" in certain cases.
* Now that I know which parts of the installation really need it (sincejkh1997-01-171-11/+11
| | | | | there's no menu display bug to work around now), be far more selective in my use of DITEM_RECREATE (which is slow and involves much screen I/O).
* 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.
* Do something I've wanted to do for quite some time - collapse all thejkh1997-01-031-5/+2
| | | | | common layout code into some work functions and make all the layout-using routine adopt them. Also reorganize includes and generally clean up.
* Now that I've got my source tree sorted out, bring all the thingsjkh1996-12-141-10/+44
| | | | I've been committing into 2.2 directly all this time.
* Whups, remove relic from close method going away.jkh1996-12-121-2/+1
|
* Do a few things I've been threatening to do for a long time:jkh1996-12-111-7/+5
| | | | | | | | | | | | | | | | 1. Don't use the MSDOSFS code for accessing FreeBSD distribution data. Use Robert Nordier's stand-alone DOS I/O library for the purpose. It this works as well as Robert says it does, it should drastically reduce (or even eliminate) our "I can't install from my DOS partition!" calls. 2. As a result of the above, go to stdio file descriptors for all media types. 3. Taking advantage of #2, start using libftpio for FTP transfers instead of maintaining our own parallel version of the FTP transfer code. Yay! I ripped something out for a change! #1 Submitted-By: Robert Nordier <rnordier@iafrica.com>
* As Paul has just pointed out, much of my strncpy() usage was eitherjkh1996-12-091-3/+3
| | | | | | | bogus or overly complex and really needed to be done more consistently and sanely throughout - no question about it. Done. Suggested-By: Paul Traina <pst@Shockwave.COM>
* Properly clear FTP site selection info when network init fails; thejkh1996-11-071-1/+2
| | | | site name may have been wrong, or need to be specified by IP.
* Make it clearer that DNS has succeeded for your host choice.jkh1996-11-041-3/+6
|
* Fix a bogus decent into the network setup screen when runningjkh1996-11-021-3/+4
| | | | | | | multi-user. Don't clear media on dist failure - this was one of those "seemed like a good idea at the time" sorts of features.
* Don't casually blow away FTP site settings now that it's easy for userjkh1996-10-141-5/+4
| | | | to override them.
* Some cosmetic tweaks, attempt to fix package wait problem by checkingjkh1996-10-121-3/+7
| | | | | for error return as well (not sure if this is it, but it's one possible explanation).
* DTRT if ESC is hit in a Yes/No dialog.jkh1996-10-091-2/+2
| | | | Noticed-by: jfieber
* Be more paranoid about clearing the FTP path when we have the slightestjkh1996-10-061-3/+10
| | | | reason to doubt its authenticity.
* Fixes and a place-holder for future work.jkh1996-10-021-2/+2
|
* Don't annoyingly reconfigure the network when you don't have to.jkh1996-10-021-7/+16
|
* Make FTP site reselection work the way it always should have.jkh1996-10-021-18/+1
|
* Round 2.5jkh1996-10-011-8/+20
|
* Installation cleanup, round II.jkh1996-10-011-16/+23
|
* If we're running through the FTP setup dialog the *first* time, skippst1996-09-261-5/+11
| | | | | the FTP path if we've already configured one (this allows preconfigured ftp servers).
* Try to make screen update more efficient (less flickering) by morejkh1996-08-031-3/+3
| | | | judicious use of dialog_clear_norefresh().
* Don't query DNS if we haven't got it configured.jkh1996-08-011-12/+16
|
* Purely cosmetic tweaks.jkh1996-08-011-3/+3
|
* Update the documentation here and there.jkh1996-07-081-2/+2
|
* Same tweak.jkh1996-07-081-1/+2
|
* Fix even more lurking bogons - why do I never find these until the lastjkh1996-07-081-22/+2
| | | | possible minute? :-)
* Whoops! Now that I'm decompressing docs into /tmp, it's important tojkh1996-07-081-3/+3
| | | | | make sure that /tmp is there first! :-) While I'm at it, clean up the somewhat inexplicably bogus Mkdir() function.
* Support compressed doc files again.jkh1996-07-051-18/+18
| | | | | | | | Add a few strategic screen clears. Do a lot less wasted screen I/O in restoring screen contents that don't need restoring. Use tar instead of cp to back up /etc in installUpdate. Don't panic when upgrade shell exits.
* Make it plainer how to exit.jkh1996-07-021-7/+7
|
* Handle tabs in INDEX files.jkh1996-06-251-1/+2
| | | | Display full, un-truncated version of description in status line.
* ack - left in a typo. Time for bed!jkh1996-06-171-2/+2
|
* Init network at proper time.jkh1996-06-171-2/+12
|
* Check network status earlier in FTP/NFS installs in order to reducejkh1996-06-161-4/+46
| | | | user frustration.
* Make CDROMs automagically select as the default media type.jkh1996-06-081-6/+7
| | | | | If you're running multi-user, check off items in the packages menu based on whether or not they're actually installed.
* Fix an ancient index list bug.jkh1996-04-281-14/+24
| | | | | Make FTP re-initializion work. Fix fix fix.
OpenPOWER on IntegriCloud