summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/globals.c
Commit message (Collapse)AuthorAgeFilesLines
* Farewall, sysinstall! You served us well for many years, but 10.0 is onenwhitehorn2011-10-031-93/+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).
* To restart, sysinstall calls execl. Since it will create a new process, webrucec2010-08-171-3/+0
| | | | | | | | | | | can't check to see if sysinstall is running as init just by checking if the PID is 0. Introduce a new option that sets the RunningAsInit flag, and update the code to check RunningAsInit intstead of getpid(). PR: bin/38854 Submitted by: Peter Sedeffow <peter at trumanbrewery.com> Approved by: rrs (mentor) MFC after: 1 month
* Package installation is handled by starting off with the list of packageskensmith2008-10-151-0/+3
| | | | | | | | | | | | | | | | | | the user selected and then recursively installing their dependencies, finally installing the ones the user selected after the recursion unwinds. Since users often select "high-level" packages that are on a higher numbered disc for the multi-volume release CDROMS this resulted in excessive disc swapping while installing things like kde, gnome, etc. Cut down on disc swapping by iterating through the disc volumes one at a time if we notice the package set is on multiple volumes. If a package is on a higher volume don't install it yet, but still "process it" so we get its dependencies installed. Because of the way the package sets for releases get assembled we're guaranteed dependencies will be on the same volume or lower. Reviewed by: jhb MFC after: 1 week
* o Save pointers to the chunks for root, home, swap, usr, var and tmp inmarcel2004-08-071-0/+20
| | | | | | | | | | | | | | | global variables. On ia64, save a pointer to the efi chunk as well. o At the same time, change checkLabels() to define these globals instead of having the caller of checkLabels() pass addresses to variables for these. Change the two callers correspondingly. o Spent a bit more time adjusting try_auto_label() to prepate for having the EFI partition created on ia64. o Remove efi_mountpoint(). The EFI chunk is now available without having to iterate over the disks and chunks to find it every time we need it. o On ia64, now that the root chunk is globally available, set the vfs.root.mountfrom tunable in loader.conf. This avoids that one cannot boot into FreeBSD after an install. The kernel cannot find the root device without a little help...
* DTRT in the restart casejkh2001-10-121-0/+2
|
* Terminate, with extreme prejudice, the USAResident hack whichjkh2000-07-241-2/+0
| | | | | | does bad things to /etc/make.conf in certain situations. Also soften the "don't install crypto from the USA!" messages since, except for RSA (which is still noted), that's not so true anymore.
* Remove PkgInteractive hack - it won't work like this.jkh2000-03-121-2/+0
|
* Do the right thing with USA_RESIDENTjkh2000-03-101-1/+1
|
* o Add support for loading the rsaref or rsaintl packages, dependingjkh2000-02-291-0/+2
| | | | | | | | | | on locale. o Allow use of "G" in label editor to stand for gigabytes. This is actually an unrelated patch which I meant to commit separately but what the heck, it's late. Partially submitted by: phk
* If user says they're in the USA, record that fact in /etc/make.confjkh2000-02-191-0/+2
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Sync with 2.2 and clean up some tortured english that was added.jkh1997-04-201-1/+2
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* OK, I've got two ideas to file in the "really seemed like a good ideajkh1997-01-241-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0/+2
| | | | | | | | 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.
* Close PR#1542. Don't just assume 24 lines, get the tty size.jkh1996-08-011-1/+2
| | | | | | | Some things may still display text on the 24th line, but that's because they've always been screens designed to fit into a minimal real-estate and have hardwired assumptions about the dimensions. They'll be a little harder to make dynamic.
* Add a new -fake argument to make sysinstall not actually change things whilejkh1996-04-281-7/+9
| | | | I'm testing it.
* 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.
* Update the -current sources from the 2.1 branch.peter1995-12-071-5/+1
| | | | Approved (in spirit) by: jkh
* Merge RELENG_2_0_5 into HEADrgrimes1995-06-111-7/+6
|
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* Bring in all my fixes to Poul's gripe list as of last night.jkh1995-05-251-3/+3
|
* 1. Spawn a shell on VTY4 and leave it lying around.jkh1995-05-241-1/+3
| | | | | 2. Bring in Gary's prompt stuff in extractGeneric. 3. Add another global for telling when we're running as init.
* This doesn't work - the extract code is half-baked. I commit it onlyjkh1995-05-201-2/+3
| | | | so that Gary can sync to it before I go to bed.. :)
* This will now compile and even scribble helpfully on your disks.jkh1995-05-161-3/+1
| | | | | | | | | It remains to be seen how successfully. The distribution loading code is still not here yet, but the partition/newfs/mount/cpio-extract cycle is as complete as it's ever going to get, modulo possible bug fixes. The TCP/IP setup screen is also sort of here, albeit in a highly-changing state due to the fact that per-interface information isn't being kept right now but is being added (thanks, Gary!).
* This does _not yet compile_; I'm simply bringing in my changes fromjkh1995-05-161-3/+1
| | | | | this weekend in order to more easily sync with my CVS tree at home. Another commit relative to these changes will follow shortly.
* Sync these up so that they'll get into my CVS tree at home, where I'll continuejkh1995-05-081-1/+5
| | | | working on the distribution extract stuff.
* Some fairly serious cleanup. The proper offset should now be used injkh1995-05-061-1/+5
| | | | | creating partitions. Still need to get the mount points displaying carefully, but I need to get this into my tree on time so that I can work on that.
* Here is my first "framework" commit of the new sysinstall. There is a LOTjkh1995-04-271-0/+72
more to come in the next 24 hours, this is just the first stable result of 8 hours of hacking so far. The specification format for menus is pretty much hammered out and the beginnings (very humble) of the doc hierarchy are present for an example. It should be quite easy to add a lot more menus quickly to this since I did go somewhat out of my way to make the framework easy to work with. This is NOT the glorious semi-graphical sysinstall (or whatever its name will be) that the install-geeks are working on, this is simply the "son of sysinstall" I've been promising to write in the interim for 2.0.5 and 2.1R (super install doesn't come until 2.2R).
OpenPOWER on IntegriCloud