summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/media.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix the http proxy fetch code.jkh2000-09-251-7/+8
| | | | | Submitted by: Philipp Mergenthaler <p@i609.hadiko.de> PR: 21449
* Fix HTTP port addresses for the IPv6 case.jkh2000-08-031-11/+13
| | | | Submitted by: pho and Hajimu UMEMOTO
* Fix the HTTP transfer code to correctly parse the port number ifjkh2000-07-301-15/+14
| | | | | | specified. Submitted by: pho
* IPv6 support.ume2000-07-141-13/+37
| | | | | | | | | | | IPv6 configuration is only done by rtsol. Does someone really need manual configuration? :-) You can specify IPv6 DNS server as well. We have only one server ftp7.jp.freebsd.org that speaks IPv6 in this time. ftp7.jp speaks IPv4 as well and also listed as Japan #7. Approved by: jkh
* Installing via an HTTP proxy should not attempt to resolve themurray2000-04-101-1/+5
| | | | | | | | hostname of the FTP server; that is the proxy's job. This temporarily deletes the nameserver variable before calling mediaSetFTP. PR: 17371 Approved by: jkh
* o Fix http proxy code for various extentions and deal with FTP archivejkh2000-01-251-6/+5
| | | | | | | | | format changes. o Make anonymous ftp setup more analy retentive. PR: 16070 Submitted by: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de>
* Add support for FTP installation via HTTP proxies.jkh2000-01-041-0/+43
| | | | | Submitted by: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de> PR: 11316
* In retrospect, msgNotify() should leave its contents on the screenjkh1999-12-171-1/+1
| | | | | 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-27/+19
| | | | | | | | | | | | 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.
* Use sigemptyset rather than sa_mask = 0.peter1999-09-301-1/+1
| | | | Submitted by: "John W. DeBoskey" <jwd@unx.sas.com>
* Oh crud, did I ever screw the pooch! Rather than sync this with -stable,jkh1999-09-021-3/+6
| | | | | | | | | | 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-6/+3
| | | | | | | 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
|
* Quiet some overly chatty debug output, do some minor cleanups tojkh1999-08-211-4/+7
| | | | the DHCP support code.
* Use a more correct filesystem type name if given a "UFS" mountpoint that'sjkh1999-05-071-2/+10
| | | | | | not really UFS. PR: 10711
* Also look under FREEBSD/.. for distribution files; I meant to do thisjkh1999-03-101-1/+4
| | | | for the DOS distro.
* Unbreak the fixit floppy.jkh1999-02-151-1/+3
| | | | Clean up some of the media handling to use common routines.
* Totally change the way variables are accounted for in sysinstall.jkh1999-02-051-16/+16
| | | | | | | | 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.
* Collapse the "get" code substantially by combining common functions.jkh1998-12-221-3/+21
| | | | | Also make mountpoint for each media type easier to change. Also reshuffled some menus for easier usage.
* 1. Increase NFS path length.jkh1998-12-021-2/+2
| | | | 2. Bump to XFree86 3.3.3.
* Remove the "adding default route" message and replace withobrien1998-11-021-1/+2
| | | | | | "Looking up host %s". Suggested by: msmith
* Increase the granularity of the debugging messages.obrien1998-10-291-12/+17
|
* Add some debugging statments (only if DEBUG opt is set), to try pin downobrien1998-10-291-1/+5
| | | | the hangs many of us are experiencing.
* Make floppy media code more generic so that fixit floppy can use it.jkh1998-10-121-1/+3
|
* Add missing newline to debugging output.jkh1998-10-101-2/+2
|
* 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.
OpenPOWER on IntegriCloud