summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Farewall, sysinstall! You served us well for many years, but 10.0 is onenwhitehorn2011-10-031-224/+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-19/+39
| | | | | | | | | | | 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
* Remove vestiges of OLDCARD PC Card support. We haven't needed/usedimp2009-02-151-10/+0
| | | | this since 5.x.
* Don't tell the user to remove the media until its actually possible forkensmith2008-12-151-2/+1
| | | | | them to remove the media. CDs need to be unmounted before they can be removed.
* Clean out the remaining alpha-isms.kensmith2008-12-141-1/+1
|
* Better to just statically set the name vs. determine at run time.obrien2008-05-111-0/+1
|
* Adjust the some error messages as suggested during re@ review, andkensmith2007-12-291-3/+10
| | | | adjust a comment that won't be true shortly.
* The limit on datasize in the install environment is 128M. That's a bitkensmith2007-12-281-0/+10
| | | | | | | | | | | | | | | too small for today's standards. While loading packages sysinstall blows past this by a LOT but I think (hope...) that's caused by other bugs. I'll look more into why sysinstall's memory use has gotten so out of control as it loads packages but independent of that there really is no reason to leave the limits on datasize and stacksize in place. And they can cause problems for some of the things "modern packages" might be doing via pkg_add which gets run by sysinstall and would inherit the limits. Another insta-MFC probably coming, this is holding up 6.3-RC2. Sysinstall's memory use is so out of control it blows past the current limit before it finishes loading either of the meta-packages kde or gnome...
* Significantly reduce the memory leak as noted in BUGS section forscf2007-07-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value. Convert all calls to POSIX from historic BSD API: - unsetenv returns an int. - putenv takes a char * instead of const char *. - putenv no longer makes a copy of the input string. - errno is set appropriately for POSIX. Exceptions involve bad environ variable and internal initialization code. These both set errno to EFAULT. Several patches to base utilities to handle the POSIX changes from Andrey Chernov's previous commit. A few I re-wrote to use setenv() instead of putenv(). New regression module for tools/regression/environ to test these functions. It also can be used to test the performance. Bump __FreeBSD_version to 700050 due to API change. PR: kern/99826 Approved by: wes Approved by: re (kensmith)
* Back out all POSIXified *env() changes.ache2007-05-011-1/+1
| | | | | | | | | Not because I admit they are technically wrong and not because of bug reports (I receive nothing). But because I surprisingly meets so strong opposition and resistance so lost any desire to continue that. Anyone who interested in POSIX can dig out what changes and how through cvs diffs.
* Preparing for upcoming POSIXed putenv() rewrite:ache2007-04-301-1/+1
| | | | don't allow const as putenv() arg, dup it
* Add FreeBSD version information to the menu title so it's possible tosimon2006-07-151-0/+12
| | | | | | | | | | see which release you are installing (really which FreeBSD version the installer is running, but that shouldn't matter in all normal cases). PR: bin/100309 Submitted by: Joao Barros <joao.barros@gmail.com> (original version) Idea from: FreeBSD ideas page MFC after: 1 week
* - Autogenerate a menu containing a list of countries and keymaps supportedjhb2006-02-281-0/+4
| | | | | | | | | | | | | | | by syscons. - If we are running as init, popup the country menu before the main menu. If a non-default country is chosen, then a second menu is brought up to let the user choose a keymap. By default the default keymap for the country that was selected is highlighted. If the user chooses the default country, then the default keymap is just assumed and the user is not presented with the keymap menu. Currently the default country is set to "United States" except for PC98 which assumes "Japan". PR: bin/93853 Submitted by: Seth Kingsley sethk at magnesium dot net MFC after: 3 days
* Remove usbd(8) and all references to it. It is no longer necessaryiedowse2005-12-151-6/+0
| | | | | | since devd(8) now provides the same functionality. Submitted by: Anish Mistry
* The PCMCIA Standard dictates that those funny cards you insert intoimp2003-08-201-1/+1
| | | | | laptops are "PC Cards" and uses said term consistantly. Allow my foolish hobgoblins to get the better of me and become consistant.
* Add a new variable 'skipPCCARD'. This variable will cause sysinstallimp2003-08-201-1/+3
| | | | | | | | | to ignore all PC Card devices. Submitted by: Anders Nordby PR: bin/37650 MFC After: 2 weeks
* Add a function driverFloppyCheck() that asks the user if they would like tojhb2003-01-151-0/+6
| | | | | | | | | load drivers from the driver floppy if the "driver_floppy" variable is set in the kernel environment and call this function after probing devices but before displaying the main menu. X-MFC after: as soon as I finish committing to current Approved by: re@ (blanket)
* * Negative #if's are harder to read as they don't tell exactly what archobrien2002-10-111-1/+1
| | | | | | | | | something applies to. So change #ifndef to an explicit list of defines. * Treate sparc64 and ia64 as 64-bit platforms, which means larger roots. * sparc64 should halt back to the firmware, not reset. * sparc64 doesn't need to play MS-DOS/BIOS partition crap games. Reviewed by: jake
* Only build and link the pccard module on architectures that support it (andmurray2002-03-291-0/+2
| | | | that have room for pccardd on mfsroot.flp).
* DTRT in the restart casejkh2001-10-121-1/+3
|
* Add a couple of functions to create persistent variables that willmurray2001-09-241-6/+16
| | | | | | | | | | | survive a sysinstall Ctrl-C -> 'Restart'. This fixes another annoying bug where restarting sysinstall will try to reload kernel modules and do other external things that have already been done. For now, use these persistent variables to keep track of module, usbd, and pccardd initialization. Bug found by: rwatson MFC after: 1 week
* Various changes to the messages so that they are now appropriate for bothnik2001-06-271-1/+1
| | | | CD and DVD releases of FreeBSD.
* Correct message to say "shutting down" rather than just "shutting"jkh2001-03-291-3/+3
| | | | Noticed by: Joachim Strömbergson <watchman@ludd.luth.se>
* Adapt sysinstall to use the new msgNoYes() function which assumesjkh2000-12-141-2/+2
| | | | | | no as a default. Sysinstall should be both less dangerous and less annoying as a result of this change, though that's just my opinion (since they're the defaults which annoy ME the least :).
* Moved driver modules for some PCI NICs and PCCARD-only NICs to mfsroot.flp.hosokawa2000-10-311-0/+3
| | | | | | http://people.freebsd.org/~hosokawa/driver-floppy/ for details. Reviewed by: current@FreeBSD.org
* Teach sysinstall how to restart itself on Ctrl-C (as an addition to its oldeivind2000-10-291-0/+5
| | | | | | tricks of rebooting and continuing where it was.) Reviewed by: jkh, jhb
* - Remove obsolete PC-card boot.flp hack. It was for making both PC-cardnyan2000-06-051-0/+9
| | | | | | | | | | | | | | boot.flp and plain boot.flp. - Clean up crunchgen related routine. - Add PC-98 support. TODO: o Documentation o Fix some messages for PC-98 o Decrease the size of fixit.flp to 1.2MB o I18N (See: http://www.jp.FreeBSD.org/BootAsia/index.html) No response from jkh
* Add support for USB to sysinstall. This includes running usbd andjhb2000-05-121-0/+3
| | | | | | setting 'usbd_enable' in rc.conf during nwe installs if USB is detected. Also, since usbd already handles USB mice automatically, note that the mouse setup section in sysinstall only applies to non-USB mice.
* Include CDs in the list of things to remove before rebooting.jkh2000-02-111-1/+1
|
* Eliminate PC-card installation floppy and add PC-card support forhosokawa2000-01-141-3/+0
| | | | generic installation floppy.
* Ignore SIGPIPE by default.jkh2000-01-041-0/+1
| | | | | Submitted by: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de> PR: 13900
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Use #include <pccard_conf.h> instead of -DPCCARD.hosokawa1999-07-061-1/+2
| | | | Now we don't have to make clean before make boot.flp's.
* Add bits of PAO that are non-controversial.markm1999-06-171-1/+6
| | | | Submitted by: Tatsumi HOSOKAWA
* Totally change the way variables are accounted for in sysinstall.jkh1999-02-051-2/+2
| | | | | | | | 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.
* Adapt sysinstall more fully to the alpha (deal with proper boot signatures,jkh1999-01-081-3/+9
| | | | | | don't present label editor, etc). Submitted by: dfr
* MF22: installEnvironment() fix, reshuffle, vidcontrol on correct vty.jkh1998-03-101-2/+4
|
* Edit a message so that people stop sending me weird emails. :)jkh1998-02-221-5/+4
|
* Much better dispatch code and scripting support.jkh1997-09-161-19/+3
| | | | Submitted by: pst
* Resurrect / implement some of the more esoteric scripting features,jkh1997-06-051-1/+3
| | | | such as partitioning a disk or overriding an interactive prompt.
* Sync with 2.2 and clean up some tortured english that was added.jkh1997-04-201-3/+14
|
* Some of my pending merge changes, Paul Traina's more flexible configjkh1997-03-191-27/+1
| | | | | file loading code. Submitted by: pst
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Change handling of bad signals; there are reasons why this is actuallyjkh1997-02-201-5/+1
| | | | not such a great idea.
* Read /etc/resolv.conf information as well as /etc/sysconfig info, makingjkh1997-02-151-3/+1
| | | | this a little more robust.
* o Try to be more aggressive about reading in old configuration datajkh1997-02-141-0/+3
| | | | | | | | | | | | | | | | | 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.
* Cosmetic tweaks.jkh1997-01-291-3/+3
| | | | Also redirect stderr to Debug when running multiuser.
* Death to another bad idea: Don't auto-mount CDROM on startup.jkh1997-01-291-7/+0
|
* Implement compiled-in config file handling a little better - nowjkh1997-01-181-1/+1
| | | | | that there's no filesystem on the boot.flp image we need to prompt for the configuration floppy.
* Pass LOAD_CONFIG_FILE variable through, if set (makes Paul Traina's lifejkh1997-01-171-2/+1
| | | | | easier). Only run install.cfg if running as init. It's something of a security hole otherwise. :)
OpenPOWER on IntegriCloud