History log of /freebsd-9.3-release/usr.sbin/sysinstall/options.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 248313 15-Mar-2013 dteske

Add support for installation directly via HTTP.

Submitted by: Rick Miller <vmiller@hostileadmin.com>
Reviewed by: jkh


# 247267 25-Feb-2013 dteske

Oops, r55392 (over 13 years ago) forgot to classify the new HTTP Proxy for the
options dialog (causing "<unknown>" to be displayed for the HTTP media type).
Direct commit to stable/9 (no sysinstall in head).


# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 194931 24-Jun-2009 cperciva

Make sysinstall search for /dev/daXa and register such devices as USB disks.
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


# 188631 15-Feb-2009 imp

Remove vestiges of OLDCARD PC Card support. We haven't needed/used
this since 5.x.


# 186202 17-Dec-2008 kensmith

As threatened a while ago, remove support for tape media. Reports vary
but most people believe it stopped working a while ago.


# 181926 20-Aug-2008 kensmith

Remove sysinstall's ability to adjust the tape block size. Installs from
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.


# 156123 28-Feb-2006 jhb

Fix numerous warnings. Aside from menu items in system.c and menu.c
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.


# 121245 19-Oct-2003 des

Various NFS-related bug fixes (mostly related to using variable_get()
instead of variable_cmp() to test boolean rc.conf variables).

Submitted by: hmp


# 119168 20-Aug-2003 imp

The PCMCIA Standard dictates that those funny cards you insert into
laptops are "PC Cards" and uses said term consistantly. Allow my
foolish hobgoblins to get the better of me and become consistant.


# 119167 20-Aug-2003 imp

Add a new variable 'skipPCCARD'. This variable will cause sysinstall
to ignore all PC Card devices.

Submitted by: Anders Nordby
PR: bin/37650

MFC After: 2 weeks


# 117509 13-Jul-2003 murray

Add a missing DITEM_CONTINUE flag so the options menu returns to the
correct place when you exit it with 'Q'.

PR: misc/47906
MFC after: 3 days


# 87165 01-Dec-2001 matusita

Remove kget() feature, which is removed from 5-current kernel.

Since userconfig feature is implemented by tweaking variables (hint.*)
with loader(8), we can put back an equivalent feature. Maybe the first
step for this is to commit yokota-san's patch (add userconfig command
for loader).

Approved by: jkh


# 83915 24-Sep-2001 murray

Back out rev 1.74. This functionality causes a panic on 4.4-RELEASE
floppies if you try to actually use it. This code will work fine if
you build and use sysinstall on a running system, since you have the
benefit of an installed termcap file. However, this code does not
work on an MFSROOT, where you must set the TERMCAP environment
variable properly. Unfortunately the quick fix of setting the TERMCAP
variable doesn't seem to fix the problem either. olgeni will add this
functionality back once it's been fully implemented (hopefully using
the working code in termcap.c).

PR: bin/30739
Submitted by: Alexey V. Neyman <alex.neyman@auriga.ru>
Discussed with / Pointy hat to: olgeni
MFC after: 3 days


# 83843 22-Sep-2001 murray

Silence warnings.


# 78160 13-Jun-2001 olgeni

Add terminal type configuration to the Options screen. It allows selecting
a monochrome display after booting into sysinstall, if you have any trouble
with the default color scheme.

Approved by: jkh
MFC after: 2 weeks


# 66225 22-Sep-2000 jkh

Remove the bogus check against "none" for release names (which
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>


# 63118 14-Jul-2000 ume

IPv6 support.
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


# 60657 16-May-2000 obrien

Add an option to select the Fix-it tty. The current behavior is utterly
*useless* on serial consoled machines.


# 54839 19-Dec-1999 jkh

D'oh! Inserted a clear() in a *very* wrong place with my last commit.


# 54835 19-Dec-1999 jkh

Bah, I got the MFC and this commit backwards. :)


# 54805 19-Dec-1999 jkh

More cosmetic surgery and a nasty null pointer bug in index.c fixed.


# 54800 19-Dec-1999 jkh

Be paranoid about refreshing after an action.


# 54587 14-Dec-1999 jkh

Completely rip-out and redesign sysinstall's refresh model as well
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.


# 50780 01-Sep-1999 jkh

Oh crud, did I ever screw the pooch! Rather than sync this with -stable,
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>


# 50725 01-Sep-1999 jkh

MFC: Catch 3.2-stable sysinstall up to 4.0-current level functionality,
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.


# 50479 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 49441 05-Aug-1999 phk

Make the newfs parameters a global option.

The default is still "-b 8192 -f 1024" but my experiments show that
"-b 16384 -f 4096 -c 100" is a more sensible value for modern
disksizes.


# 48843 16-Jul-1999 jkh

Re-enable DHCP client support again (but optional and turned off by default
for the time being) for debugging purposes.

Fix bug in options selection.


# 46637 07-May-1999 jkh

Make saving kernel configuration info disable-able (may be useful in certain
situations).


# 46117 27-Apr-1999 jkh

o Make package matching for specific package loading use the Latest/
feature of packages now so that no version info is embedded.

o Add a default X desktop menu offering afterstep, enlightenment, KDE, GNOME
and Windowmaker desktops instead of the boring twm(1) based one if the
user so chooses. This will require a little testing.


# 45371 06-Apr-1999 jkh

Add an option for resetting and rescanning the probed device list, perhaps
to now detect that CD you just remembered to put in the drive or that
pccard NIC that you've inserted (anybody can put pccardd in an mfsroot image
now you know.. :)

Requested by: Annelise Anderson <andrsn@andrsn.Stanford.EDU>


# 43685 05-Feb-1999 jkh

Totally change the way variables are accounted for in sysinstall.
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.


# 27433 16-Jul-1997 jkh

Eliminate Samba configuration. Sorry, but this was another one of
those ideas that, like the Apache server setup, was well-intentioned
but doomed to fail in the face of change. That and the fact that it
shouldn't be part of the installation tool, it should be part of the
post-installation setup tool (which we need to write). Combining the
two utilities into one utility was my first conceptual mistake.

Apologies also to Coranth Gryphon, who worked hard on the Apache
and Samba server setup code. These features were quite useful
for awhile, if that's any consolation, I just simply had the wrong
ideas about where to put them. :-(


# 26717 18-Jun-1997 jkh

1. Add a noWarn flag so that scripts can turn warnings off.
2. If hostname not set from script, bring up interactive dialog anyway.


# 25989 21-May-1997 jkh

Actually, rethink last commit and simply remove the apache configuration
entirely, as promised earlier (it's outdated now and doesn't really belong
in sysinstall).


# 22388 07-Feb-1997 jkh

It's easier to go forwards than backwards with this, and the RELENG_2_1_0
sysinstall was already broken (I think there's a PR for this somewhere).
This will require some additional changes elsewhere, like bringing in pw.


# 21976 24-Jan-1997 jkh

OK, I've got two ideas to file in the "really seemed like a good idea
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).


# 21971 24-Jan-1997 jkh

This is a patch that makes some of the "partitions" --> "slice" to be
more consistant in our use of the terms for differentiation between PC
partitions and traditional BSD partitions.

Submitted-By: obrien@cs.ucdavis.edu (David O'Brien)


# 21897 20-Jan-1997 jkh

Add extra variables for the configuration of all packages, not just
the lynx browser.

Submitted-By: David O'Brien <obrien@cs.ucdavis.edu>


# 21855 18-Jan-1997 jkh

Fix a variety of problems with my timeout handling, make it more
configurable (you can now set the timeout interval), fix a crash-bug
when no network device was attached.


# 21698 15-Jan-1997 jkh

Accept emacs-style editing keys for traversal and ESC as an abort character.


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

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.


# 19577 09-Nov-1996 jkh

1. Take out console setup in options now that Joerg has moved it into
the main menu.
2. Conditionalized a few small things which needed it.
3. Put PC98 X servers in their own menu, there are so many of them now.
4. Rampaged on the menus.c file in general, reformatting and cleaning up.


# 19488 07-Nov-1996 jkh

Joerg's changes to add screen font and screenmap setting.
Some changes of my own to make screen saver configuration a little
more sane, and also make it easier to get to the keyboard/screen
setup from the options menu.


# 18634 01-Oct-1996 jkh

More tweaks to FTP reselection code - allow "none" to stand for
"no specific release - use anything you can find"


# 18619 01-Oct-1996 jkh

Installation cleanup, round II.


# 17404 03-Aug-1996 jkh

Try to make screen update more efficient (less flickering) by more
judicious use of dialog_clear_norefresh().


# 17034 09-Jul-1996 jkh

A number of improvements in the way statistics are printed, add a "chroot"
option for installing distributions and/or packages to somewhere other than /,
say for a case where you're installing to an external disk on some other
machine's behalf. More miscellaneous fixes to various problems I stumbled
across while adding this stuff.


# 17007 08-Jul-1996 jkh

Fix even more lurking bogons - why do I never find these until the last
possible minute? :-)


# 16366 14-Jun-1996 jkh

Don't use some of the low-contrast text attributes I was using before - they
apparently look bad on some LCD screens. While I'm in there, tweak and adjust
a number of other minor interface details which have been bothering me for
awhile.


# 16208 08-Jun-1996 jkh

Implement selective text attributes for the syscons vty / vt100 emulator
selection since an attribute which looks good on a color console doesn't
necessarily look good in an xterm.


# 16204 08-Jun-1996 jkh

Put back some changes I inadvertantly spammed with a cvs update.


# 15695 09-May-1996 jkh

Some cosmetic changes:

Make "selection bar" inverse video white-on-blue on color screens to avoid
it getting muddled up with popup dialogs.

Do disk selection in a more friendly fashion (for one thing, allow a
drive to be de-selected again if you change your mind).

Add a few strategic screen-saves to prevent corruption of screen contents
(thanks, Michael Elbel!).


# 15383 25-Apr-1996 jkh

Quite a few changes:

1. Fix the last display bugs (I hope) by use of dialog rebuilds at stategic
points.
2. Clean up the distributions menus so that everybody (that's reasonable)
has All and Clear options for setting/clearing things en-masse.
3. Various attempts at display optimization.
4. Change the wording of the `Don't use Write!' dialogs to make them more
explicitly define when and when not to use the option.


# 15355 22-Apr-1996 jkh

Bring this into sync.

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!


# 15242 13-Apr-1996 jkh

1. Update all the copyrights to delete useless clauses 3 and 4.
2. Change more of the menu code over to new system.
3. Streamline label editor.


# 15091 07-Apr-1996 jkh

Major surgery.

1. Use new dialog menu hacks (no strings, just arrays of dialogMenuItem structs)
so that I can create composite menus with radio/checkbox/... items in them,
removing some long-standing UI bogons in various menus. This work isn't
finished yet, but will be done in two phases. This is phase one.

2. Remove all the script installation stuff. I never got time to document it,
it was arcane and it just complicated much of the code. There are better
ways of doing this if I want to do auto-driven installations later.

3. Remove much dead code and otherwise attempt to remove as much historical
grot as possible so that this code is easier to hack on. This is also
a two-stage process, phase one of which is now complete.


# 14786 24-Mar-1996 jkh

Clean up the options screen a little bit by shortening it by one line
in the vertical axis.


# 14763 23-Mar-1996 jkh

Make the editor a selectable option. Some people don't care for `ee'!


# 14738 21-Mar-1996 jkh

Major enhancements to the package adder (next step is to use the new dialog
functions to make the menus far less klunky, but one thing at a time).

Fix bug that had debug output spewing uselessly on vty2 when running multiuser.


# 14696 19-Mar-1996 jkh

Small tweaks to the presentation of this stuff.


# 12129 06-Nov-1995 jkh

Some general fixes for the package menu (still need to fix the "more than 10
items checked bug though). Now allow user to specify a PKG_TMPDIR. If
not selected, we try to make one.


# 12025 03-Nov-1995 jkh

Lots-o-cleanup(tm):

1. Fix the bogon I introduced that made some root filesystems fail to be
made with `unable to make filesystem on sd1s1a' or some such error
message.

2. Latest installment in the never-ending chapter on making FTP do the right
thing on a cruel internet.

3. Make `express install' a truly express install and split off what it used
to do into a `novice install' that's even more geared to the novice
by asking questions in order, rather than forcing them through the menu
interface.

4. Make anonymous FTP setup truly DTRT.

5. Build lndir directly into sysinstall and make the novice install offer
to set up the ports tree. Also make the ports setup truly explanatory
about what it's doing, and always link the ports destination to /usr/ports
if necessary so that bsd.port.mk doesn't need to be tweaked.


# 11804 26-Oct-1995 jkh

Sync up for this snapshot.


# 11799 26-Oct-1995 jkh

o Fix installUpgrade to start the holographic shell as well.
o Lots of documentation fixes.
o Rename FTP active to "FTP" and explain passive mode better.
o Make tcpip screen a bit more friendly.
o Literally dozens of nits.


# 11640 21-Oct-1995 jkh

Style police throughout.
Fix the ppp startup code.
Make the disklabel and fdisk screens "automatable"


# 11624 21-Oct-1995 jkh

Make all FTP failures "bounce" the connection properly.


# 11620 21-Oct-1995 jkh

Fix a couple of things I broke while fixing them.


# 11614 21-Oct-1995 jkh

1. Of course, the day after you roll the snapshots is the day you realize
that the FTP install doesn't deal with timeouts and hasn't since it was
written. Fixed.

2. Totally eliminate the OptionFlags. I only had to work harder to
sync them with configuration variables, so why not simply always use
configuration variables? This has actually greatly simplified areas
of the code.


# 11585 20-Oct-1995 jkh

Sync for Westhill build.


# 11584 20-Oct-1995 jkh

Fix fix.


# 11582 20-Oct-1995 jkh

More bug fixing, make debug settable two ways, put more meat into
the upgrade.


# 11579 20-Oct-1995 jkh

Too many bugs fixed to mention. This code just seems to BREED them.
Many interfaces were also simplified or generally cleaned up in an
attempt to curb this problem.


# 11569 19-Oct-1995 jkh

Sync.


# 11567 19-Oct-1995 jkh

Sync with today's sources:

o Implement the 2.0.5->2.1 upgrade procedure (gah).
o Bring in Coranth's support for configuration of anon ftp and Samba
plus some changes of my own.
o More attempts to actually write the documentation in english.
o Update docs to contain more 2.1-centric information.


# 11559 18-Oct-1995 jkh

Some rethinks on the way the attribute interface worked (now that
I'm really, truly using it). Allow distribution fetch to get .info
files from the root.flp OR the distribution in question, allowing us
to add flexibility to the scheme. At some point, perhaps soon, the
cached copy should probably go away entirely!


# 11553 17-Oct-1995 jkh

Almost snapshot time..
Merge today's work.

Now support an attributes file loaded at startup (true front-loaded install).
Add fuller debugging support to all device I/O routines.
Lots-o-bug fixes.


# 11543 17-Oct-1995 jkh

Sync with me in prep for snapshot.


# 11542 16-Oct-1995 jkh

Sync to my current development srcs. I'm about to go off the air here for
awhile wwhile they work on my phone lines.


# 11536 16-Oct-1995 jkh

Fix many more bogons, add some stuff to make the docs folk happy.


# 11470 14-Oct-1995 jkh

Sync with my development sources, smashing an annoying bug and making
the options editor a little less pathological.


# 11421 10-Oct-1995 jkh

Tweak a message to be a bit more clear.
Declare missing fd.
Fix options bug where old text was still weird shades of blue when you came back.


# 11303 07-Oct-1995 jkh

Whole mass of changes from first code review. Eliminate some
long-standing bogons, try to make things more fault tolerant
in general, bring in the first version of my new package installation
menu.


# 11274 06-Oct-1995 jkh

Properly repaint an option in reverse video after changing its value.


# 11258 06-Oct-1995 jkh

Make descriptions stand-out a bit more.


# 11181 04-Oct-1995 jkh

General cleanup - sanitize use of variables.
Do more rational things in a number of other instances.


# 11177 04-Oct-1995 jkh

o Search much more aggressively for distributions in all extraction
methods. This should make the process rather more robust in the face
of entropy.
o Let tape cpio extract guess type of tape format.
o Hide cursor better in options screen.


# 11164 04-Oct-1995 jkh

Make the release name to load a configurable parameter.
Don't gratuitously shutdown network after NFS or FTP install.
Centralize release version string to one location included by everyone.
Bring in new options screen.