summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/media.c
Commit message (Collapse)AuthorAgeFilesLines
* As threatened a while ago, remove support for tape media. Reports varykensmith2008-12-171-55/+0
| | | | but most people believe it stopped working a while ago.
* Remove sysinstall's ability to adjust the tape block size. Installs fromkensmith2008-08-201-4/+4
| | | | | | | | tape have been broken for quite a while, and I'll be removing the rest of sysinstall's knowledge of tapes shortly. I'm doing this piece now because I want to switch from gnu's cpio to bsdcpio being integrated into the installation environment and bsdcpio doesn't seem to handle block sizes at all.
* Be more consistant and use UNZIPPER everywhere.obrien2007-12-091-4/+2
|
* Fix numerous warnings. Aside from menu items in system.c and menu.cjhb2006-02-281-2/+3
| | | | | | | | this now compiles on i386 with WARNS?= 3. Most of the fixes included adding missing 'static' keywords to internal functions, using fully-defined terminators in statically defined arrays of structs, and various signed vs unsigned mismatches. Also G/C'd unused configSecurity() function.
* Add `mediaOpen' function. This function mounts selected media device.jkim2006-01-271-0/+8
| | | | | | | | | | | | | | | For example, you can dynamically generate and load configuration file depending on the hardware configuration with the following template: mediaSetCDROM mediaOpen command='/dist/rescue/sh /dist/scripts/install.sh' system mediaClose configFile=/tmp/generated.cfg loadConfig Now we have full access to files on the media before installation begins.
* - Increase the maximum device name length.jwd2003-02-271-1/+16
| | | | | | | | - Actually check that the entered device name does not exceed the maximum device name length. PR: misc/18466 MFC after: 2 weeks
* debugMsg() should end with "\n".kuriyama2002-11-011-3/+3
|
* Add the ability to use Bzip'ed packages.obrien2002-04-301-8/+12
| | | | | | | Also add the ability to use Bzip'ed distributions -- but this is exclusive of being able to use Gzip'ed distributions. Sponsored by: FreeBSD Mall, Inc.
* Our persistent-state, large temporary file dir is /VAR/tmp, not /USR/tmp.obrien2002-04-011-1/+1
|
* #include <sys/time.h> instead of depending on namespace pollution inbde2002-02-251-0/+1
| | | | <sys/stat.h> for the declaration of struct timeval.
* If we're set to non-interactive, we shouldn't ask the user yes/no questionsjkh2001-07-301-4/+2
| | | | but simply return the default answer instead.
* Fix the type of the NULL arg to execl()brian2001-07-091-6/+6
| | | | Idea from: Theo de Raadt <deraadt@openbsd.org>
* Introduce DEVICE_INIT, DEVICE_GET, and DEVICE_SHUTDOWN macros. As thedd2001-07-021-7/+7
| | | | | | | | | names suggest, they perform methods on Device's. In addition, they check that the pointer passed to them is valid; if it isn't, they pretend that the action failed. This fixes some crashes due to NULL dereferences (e.g., PR 26509). Approved by: jkh (some time ago)
* Various changes to the messages so that they are now appropriate for bothnik2001-06-271-2/+2
| | | | CD and DVD releases of FreeBSD.
* 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).
OpenPOWER on IntegriCloud