summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/media.c
Commit message (Collapse)AuthorAgeFilesLines
* Farewall, sysinstall! You served us well for many years, but 10.0 is onenwhitehorn2011-10-031-877/+0
| | | | | | | | digit beyond your time. Various sysinstall dependencies (e.g. libftpio, libdisk, libodialog, etc.) will be cleaned up in coming days. Some will take longer than others due to a few other consumers (tzsetup and sade).
* USB probing often takes a long time and finishes finding devices after initbrucec2010-12-131-1/+1
| | | | | | | | has started. In the case of sysinstall, this means that it has already built its list of devices before probing finishes. Add a hint for users who have booted from a USB stick only to find that sysinstall can't find it. MFC after: 3 days
* Remove support for cpioVerbose=medium because bsdcpio doesn't support thebrucec2010-11-141-4/+0
| | | | | | | | "-V" flag. PR: bin/151821 Submitted by: Devin Teske <dteske at vicor.com> MFC after: 1 week
* Make sysinstall WARNS=2 clean.randi2010-06-111-2/+2
| | | | | Approved by: cperciva (mentor) MFC after: 1 month
* Prevent sysinstall from needlessly waiting for confirmation when using an USBrink2009-08-161-1/+2
| | | | | | | | | | | | | device in non-interactive mode. If there are no USB devices, sysinstall gives an error messages, and if there is >1, it'll ask which one is to be used. This change allows a non-interactive install from USB media to succeed without any user interaction if there is exactly one USB disk device in the system it can use. Submitted by: Daniel O'Connor < doconnorat gsoft dot com dot au > Reviewed by: randi Approved by: re (rwatson)
* Make sysinstall search for /dev/daXa and register such devices as USB disks.cperciva2009-06-241-0/+46
| | | | | | | | | This covers the common case of unsliced USB drives, and makes it possible to select them as installation source media. PR: 61152, 115197, 135016 Submitted by: randi MFC after: 1 month
* 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
OpenPOWER on IntegriCloud