summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/cdrom.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove the bogus check against "none" for release names (whichjkh2000-09-221-5/+7
| | | | | | | | | | really doesn't make any sense, what was I smoking) and allow the more canonical usage of "any" for either side of the comparison for release name or architecture (meaning you can also set CD_VERSION=any in a cdrom.inf file to cause sysinstall to always match it and likewise with the architecture, if specified). Sensibly suggested by: Makoto MATSUSHITA <matusita@jp.FreeBSD.org>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* o Prevent alpha installs from grabbing x86 bits and vice-versa, at leastjkh1999-05-151-22/+43
| | | | | | | | | | | | | | on CDs and FTP sites. o Collapse some redundant code. o Fix typo'd menu. o Restrict searches properly to packages rather than categories. o Small tweaks to signal handling. All RELENG_3 candidates.
* Replace old SAVE_USERCONFIG code with a customized version of Andrzej'sjkh1999-01-201-4/+2
| | | | kget code. Also collapse a redundant case in cdrom code.
* Collapse the "get" code substantially by combining common functions.jkh1998-12-221-25/+6
| | | | | Also make mountpoint for each media type easier to change. Also reshuffled some menus for easier usage.
* Use properties code.jkh1998-10-141-11/+24
|
* Catch more cases where the CDROM has been mounted.jkh1998-08-271-1/+4
|
* MF22: various fixes for new XFree86 dist and cdrom warnings.jkh1998-07-211-11/+17
|
* Adapt to new mount(2) argument syntax.jkh1998-01-161-2/+2
| | | | Submitted by: bde
* Make all this work under -current again.jkh1997-04-031-1/+2
| | | | Submitted-By: Chuck Robey <chuckr@glue.umd.edu>
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* DTRT with a release string of "none" and use the correct (updated)jkh1997-01-271-1/+1
| | | | | mountpoint name for fixit. Submitted-By: joerg
* OK, I've got two ideas to file in the "really seemed like a good ideajkh1997-01-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* Argh! Moving the media initialization to before the disk scribblingjkh1997-01-221-53/+45
| | | | | | | | section was a good thing, since it made it possible to detect media problems *before* the installation started, but it also caused various things to be mounted BEFORE the chroot() call, which definitely messes things up. Fix this by detecting the pre-chroot() case and mounting into a subdir.
* 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.
* Add more protection when running as init and don't do stupid things.jkh1997-01-121-3/+1
| | | | | Fix looping in fixit cdrom selection by adding a missing break. Move unmount of cdrom down to proper place.
* Do a better job of CDROM detection.jkh1997-01-061-13/+19
| | | | | | Use consistent spelling throughout. Remove unmount in fixit_common() since that's bogus in the CDROM case and properly "shut down" the media device instead.
* 1. Correct bogon in cdromInit when running multi-user which took cdrom offlinejkh1997-01-011-3/+5
| | | | | | | | | | if wrong version. 2. Make sure network device is initialized in ftpInit 3. Eliminate bogus size values in the menus. For now, we'll have to admit that nobody's added it up yet. In the future, these menus should be build dynamically anyway, not declared static. 4. Add more debugging to networking code to chase the mystery ppp device problem.
* smart-alec error checking.jkh1996-12-121-2/+8
|
* Undo one of my memory optimization hacks - it actually made things morejkh1996-12-121-3/+2
| | | | complicated.
* Be more efficient in how we use memory (stumbled across while looking forjkh1996-12-111-2/+3
| | | | | | something else) for attributes and variables. Remove stack-stomper in sstrncpy().
* Do a few things I've been threatening to do for a long time:jkh1996-12-111-6/+6
| | | | | | | | | | | | | | | | 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>
* Remove the now-unusable ports configuration code. Swapping CDs is bogus.jkh1996-10-141-5/+3
|
* Ahem. It might be nice if I included /usr/src/contrib in with the otherjkh1996-10-101-3/+4
| | | | | src dists. This alone is a good reason to re-roll the SNAP before putting it on CD.
* DTRT if ESC is hit in a Yes/No dialog.jkh1996-10-091-2/+2
| | | | Noticed-by: jfieber
* Installation cleanup, round II.jkh1996-10-011-4/+6
|
* Conditionalize some annoying debug statements, update the docs.jkh1996-08-231-2/+3
|
* 1. Fix the CD installation bogon for Novice install I mentioned.jkh1996-07-161-5/+1
| | | | 2. Add some code for dealing with a ports collection on the second CD now.
* Make CD version clash non-fatal.jkh1996-07-131-5/+3
|
* Fix EBUSY checking in devices.c - DTRT when it's detected on a CD.jkh1996-07-131-5/+3
|
* Fix something I broke with CDROM installation (well, I knew my firstjkh1996-07-121-7/+8
| | | | test CD would turn at least one bug up :-).
* Whoops! Now that I'm decompressing docs into /tmp, it's important tojkh1996-07-081-2/+2
| | | | | make sure that /tmp is there first! :-) While I'm at it, clean up the somewhat inexplicably bogus Mkdir() function.
* Make the CDROM auto-detection code a little more flexible about acceptingjkh1996-06-141-10/+9
| | | | old CDs.
* Come up with a scheme for stamping the FreeBSD version number on CDs,jkh1996-06-111-4/+36
| | | | | | | allowing sysinstall to automagically detect, mount and select an appropriate FreeBSD CDROM as the installation media. Defining "appropriate" also requires that you check the version numbers since an older FreeBSD CD could be in the drive, which is the purpose of this patch.
* Make CDROMs automagically select as the default media type.jkh1996-06-081-31/+23
| | | | | If you're running multi-user, check off items in the packages menu based on whether or not they're actually installed.
* Bring this into sync.jkh1996-04-231-7/+2
| | | | | | | | | | I still have a _very very annoying_ display bug which occurs when a menu item causes a submenu to be displayed - the screen repaints for the original menu (which is restored upon return from the submenu) are off by about 4 characters. I've tried restoring the screen, the cursor position, you name it - same deal. Grrrr! This commit is my first step in trying to get someone else to help me look into this one since I'm just tearing my hair out at this point!
* 1. Update all the copyrights to delete useless clauses 3 and 4.jkh1996-04-131-8/+1
| | | | | 2. Change more of the menu code over to new system. 3. Streamline label editor.
* Lots of fixes:jkh1996-03-181-8/+16
| | | | | | | | | | | | | | | | 1. Revamp package installer to use new dependency lists and also pkg_add's new `read from stdin' mode to prevent a copy of the package from hitting the disk unnecessarily. 2. More fixes for running "not as init" - don't get upset if CDROM already mounted, do the right thing instead. 3. If running as init, assume first-time install and _don't show the (W)rite option in the fdisk screen. 4. Many other little tweaks, some of which will have to wait for fuller testing until I can create a boot floppy (testing certain system-destroying features of sysinstall can be a royal pain). Expect some more commits.
* Miscellaneous cleanup before big round of menu restructuring (to use newjkh1996-03-021-2/+2
| | | | libdialog features).
* Update the -current sources from the 2.1 branch.peter1995-12-071-15/+33
| | | | Approved (in spirit) by: jkh
* This mega-commit brings in Jordan's latest sysinstall version..peter1995-09-181-4/+4
| | | | | | | This looks like it was developed offline, and is being spammed over the top of the existing. "That's fine by me! I dont really care how you do it, just get it in there..." said Jordan in a conversation a short while ago...
* Merge RELENG_2_0_5 into HEADrgrimes1995-06-111-4/+4
|
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* Sync up my work for the night. This should implement ALL possiblejkh1995-05-291-1/+2
| | | | | | installation methods and provide a fairly robust set of menu options. This should also fix a few more bugs on Poul-Henning's latest gripe list.
* cdrom.c: try "cdrom/%s" then "cdrom/dists/%s"phk1995-05-281-1/+4
| | | | dist.c: fix an error message to make more sense.
* Humanize Poul-Henning's code. Status values should be properlyjkh1995-05-281-11/+8
| | | | respected now.
* Major cleanup. Mediaroutines now get asked about a file. All thephk1995-05-271-30/+5
| | | | | | | multi part stuff centralized. The final check is backwards or something so it always said it failed, even it it didn't. Fixed tcpip address check to not be stupid, 10.0.255.1 is legal.
* Things were getting seriously hard to find. Do a quick reorg pass overjkh1995-05-271-0/+150
the code and split things into more logical groupings.
OpenPOWER on IntegriCloud