Commit Graph

212 Commits

Author SHA1 Message Date
Jordan K. Hubbard
4d24621b10 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.
1999-04-27 14:33:29 +00:00
Jordan K. Hubbard
c8f07a79f8 Remove the registration stuff; we're redoing this and the emailed
registrations have a high failure rate for various reasons.
1999-04-24 01:53:55 +00:00
Jordan K. Hubbard
3e6a56bb87 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>
1999-04-06 08:25:53 +00:00
Jordan K. Hubbard
1895abde6f Offer an X Kern Developer collection, by user request (it's also more
orthogonal to the other entries).

Clean up X selection code a bit.

Choose proper architecture subdirectories on mirror sites now that we've
gone fully to the new multi-arch directory scheme.
1999-03-19 10:54:38 +00:00
Jordan K. Hubbard
58dd43480c Write changes out to /etc/rc.conf again; rc.conf.site is dead! 1999-02-09 22:18:10 +00:00
Jordan K. Hubbard
b1e7bed4c0 Add one more "escape" for marking internal variables. 1999-02-05 22:25:13 +00:00
Jordan K. Hubbard
63cad5499d 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.
1999-02-05 22:15:52 +00:00
Jordan K. Hubbard
86784dbcd2 Show dependencies in package menu.
PR:		7454
Submitted by:	Stefan Eggers <seggers@semyam.dinoco.de>
1999-02-02 15:57:14 +00:00
Jordan K. Hubbard
24c1db52ef Write changes out to /etc/rc.conf.site now rather than mucking with
rc.conf.  There were many different ways I could have done this, some of
them "cleaner", but this represented the lowest impact.
1999-01-27 02:32:47 +00:00
Jordan K. Hubbard
c80ac74f4b Replace old SAVE_USERCONFIG code with a customized version of Andrzej's
kget code.  Also collapse a redundant case in cdrom code.
1999-01-20 12:31:43 +00:00
Jordan K. Hubbard
8d8f2bab5a Collapse the "get" code substantially by combining common functions.
Also make mountpoint for each media type easier to change.
Also reshuffled some menus for easier usage.
1998-12-22 12:31:26 +00:00
Jordan K. Hubbard
a6de060bb3 Adios version.h / RELEASE_NAME hack. Do this right. 1998-11-24 00:18:57 +00:00
Jordan K. Hubbard
18c434c8f2 o Break fixups into binary fixups and XFree86 based fixups.
o Move fixups into extraction routine so all consumers don't have to duplicate
  the right behavior.
o Make some things more orthogonal (just for asthetics sake)
o Add option to go back and do it again if XF86Setup fails (possibly with
  a different setup - this one has always annoyed me).
1998-11-15 09:06:20 +00:00
Jordan K. Hubbard
c2245054e1 Use properties code. 1998-10-14 11:23:48 +00:00
Jordan K. Hubbard
9bb1c20147 various bits of overdue cleanup. 1998-09-30 11:49:37 +00:00
Jordan K. Hubbard
8eac04a792 MF22: Paul Traina's changes. 1998-07-18 09:42:02 +00:00
Jordan K. Hubbard
515cf34afd Merge updates from 2.2 1998-05-24 20:01:33 +00:00
Kazutaka YOKOTA
6614c78914 - Remove the notice that psm0 must be enabled before using the PS/2 mouse;
the device is enabled by default in the GENERIC kernel.
- Kill the mouse daemon, if any, when the user wants to disable it.
- Minor update on mouse menus.
1998-03-23 06:08:55 +00:00
Jordan K. Hubbard
7f2c35c3f8 Add a mouse configuration menu.
Submitted by:	Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
1998-03-07 08:59:32 +00:00
Jordan K. Hubbard
9addf1c150 Add a new startup variables menu for tweaking rc.conf variables in more
detail (also added more of them to the networking services menu).  Add
new dmenuISetVariable() function for interactive setting of non-boolean
flags.
1997-10-14 18:17:35 +00:00
Jordan K. Hubbard
b09dc169b7 Separate the siamese twins that were the partition and label editor.
Now you can use one without entering the other and it will DTRT.
These changes just allowed me to do the most straight-forward new disk
installation I've ever managed with sysinstall.
1997-10-12 16:21:21 +00:00
Paul Traina
69ac164732 Put all variables in VAR_ #define's to force a single location for all
of these magic knobs.  This is purely cosmetic and a documentation issue
so we don't have to glop through the source code looking for gems.
1997-09-17 16:18:22 +00:00
Jordan K. Hubbard
9f86ac0aa7 Much better dispatch code and scripting support.
Submitted by:	pst
1997-09-16 18:57:18 +00:00
Jordan K. Hubbard
b6aad04900 Make serial console based installs actually work by:
1. Detecting the split /dev/ttyv0 / /dev/console case, e.g. you've
   booted with the -h flag and you have a VGA card also.

2. Adding an extra "menu" for selecting terminal type and adding ANSI
   to the list of compiled-in terms.

3. Opening the proper file descriptors before disowning ourselves.
Requested by:	pst
1997-07-31 11:08:47 +00:00
Jordan K. Hubbard
5028762fea 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. :-(
1997-07-16 05:22:42 +00:00
Jordan K. Hubbard
b4cfcc4383 Adjust my installation script to more closely match reality.
Add a system command to script mechanism (so you can call things like
tzsetup from scripts).

Add noError variable for causing script errors to be ignored.
1997-06-22 09:45:41 +00:00
Jordan K. Hubbard
31377e1f1f Change the way that X configuration method is selected. 1997-06-21 15:45:15 +00:00
Jordan K. Hubbard
2233edf577 1. Add a noWarn flag so that scripts can turn warnings off.
2. If hostname not set from script, bring up interactive dialog anyway.
1997-06-18 05:11:37 +00:00
Jordan K. Hubbard
17c5409baf YAMF22 1997-06-13 17:55:32 +00:00
Jordan K. Hubbard
08e6881746 YAMF22 1997-06-13 14:21:22 +00:00
Jordan K. Hubbard
d67262d269 1. Make it possible to set up all the TCP/IP values from a script.
2. Update to XFree86 3.3
1997-06-09 01:19:44 +00:00
Jordan K. Hubbard
8e45ec2c8c Resurrect / implement some of the more esoteric scripting features,
such as partitioning a disk or overriding an interactive prompt.
1997-06-05 09:48:03 +00:00
Jordan K. Hubbard
53f741779c Adjust config variables to more closely match rc.conf 1997-05-22 21:26:11 +00:00
Jordan K. Hubbard
dc6995f3e1 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).
1997-05-22 00:17:11 +00:00
Jordan K. Hubbard
e27779fc61 Update version of apache. 1997-05-22 00:13:58 +00:00
Jordan K. Hubbard
00137300da Adapt routing configuration glue to rc.conf format. 1997-05-05 06:32:44 +00:00
Paul Traina
eeb3219eef Add in some more config file support -- add variables to shut up
sysinstall about the dangerously dedicated message, and other
variables to allow pre-configuring the distribution sets.

Still todo: add a variable to define an initial set of packages that
should be loaded.
Reviewed by:	jkh
1997-05-05 05:16:03 +00:00
Jordan K. Hubbard
3de5b08eda Adapt to rc.conf file format. 1997-04-28 10:31:14 +00:00
Jordan K. Hubbard
0aa615d28d Sync with 2.2 and clean up some tortured english that was added. 1997-04-20 16:46:36 +00:00
Jordan K. Hubbard
45dbe89080 Sync up to current state of development. 1997-04-02 12:07:39 +00:00
Jordan K. Hubbard
eefc5acdc5 Some of my pending merge changes, Paul Traina's more flexible config
file loading code.
Submitted by:	pst
1997-03-19 10:09:28 +00:00
Jordan K. Hubbard
fd27ec2d05 Increase the size of the email address field.
Requested-By: joerg
1997-03-15 16:24:32 +00:00
Jordan K. Hubbard
7c8f98f5b7 Add a registration screen so we can finally start counting our little user
puppies.
1997-03-09 22:25:49 +00:00
Jordan K. Hubbard
af1353594f YAMF22 1997-03-08 11:06:50 +00:00
Peter Wemm
b97fa2ef50 Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
Jordan K. Hubbard
70f8c15560 Finally DTRT with tcpOpenDialog(); it should have never diddled
mediaDevice directly.
1997-02-17 13:29:47 +00:00
Jordan K. Hubbard
e33c24a2d2 Read /etc/resolv.conf information as well as /etc/sysconfig info, making
this a little more robust.
1997-02-15 15:24:14 +00:00
Jordan K. Hubbard
9f5472632c Correct bogus msg dialog.
Update to Lynx 2.7 (need to build 2.1/2.2 versions of this package).
1997-02-15 13:18:19 +00:00
Jordan K. Hubbard
c5566bcff7 o Try to be more aggressive about reading in old configuration data
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.
1997-02-14 20:59:07 +00:00
Jordan K. Hubbard
89972e50e4 Allow user to delete as well as install packages from the package
installer menu.

Fix status line code so informationals show up properly again.
1997-01-29 22:35:05 +00:00
Jordan K. Hubbard
431285ea2b Fix broken layout help (this is what broke the TCP help screen).
Allow DITEM_NO_ECHO to be encoded in layout field types and make
user.c use it for the password item.
1997-01-29 21:16:07 +00:00
Jordan K. Hubbard
7ce6b270fd Allow both types of XFree86 setup script to be run at user choice. 1997-01-24 20:20:12 +00:00
Jordan K. Hubbard
5214787fd5 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).
1997-01-24 19:24:51 +00:00
Jordan K. Hubbard
76d01c999a 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)
1997-01-24 07:47:17 +00:00
Jordan K. Hubbard
898f607a63 Argh! Moving the media initialization to before the disk scribbling
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.
1997-01-22 00:15:51 +00:00
Jordan K. Hubbard
0f18f7f84e Add extra variables for the configuration of all packages, not just
the lynx browser.

Submitted-By: David O'Brien <obrien@cs.ucdavis.edu>
1997-01-20 16:13:43 +00:00
Jordan K. Hubbard
0ebf0addab Use alarm's return status to more properly denote timeout rather than keeping
an icky global around.
1997-01-19 09:55:37 +00:00
Jordan K. Hubbard
a0e47058d0 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.
1997-01-18 19:18:26 +00:00
Jordan K. Hubbard
135c95a582 Add timeout support to sysinstall's general media handling,
allow SIGINT to stand for "time out now!" in certain cases.
1997-01-17 15:58:58 +00:00
Jordan K. Hubbard
b449e9a83e Damn! Forgot to update lynx also. 1997-01-16 10:51:53 +00:00
Jordan K. Hubbard
2bd4114e2a Minor cleanup, adjust for latest version of apache web server. 1997-01-16 10:48:00 +00:00
Jordan K. Hubbard
d42e16a0d6 Keep our serial ports distinct so that first device is not found for
all (closes PR#2296).
Print better FTP failure diagnostics
Do better media failure checking in install.
1997-01-15 16:21:10 +00:00
Jordan K. Hubbard
9b1696b002 Fix several problems:
1. Bus mouse selection didn't show up properly in mouse menu.
2. U&G management screen didn't respect cancel properly.
3. Novice not prompted to add users or set root password during installation.
4. Username length changes screw up user management form.
1997-01-15 03:57:50 +00:00
Jordan K. Hubbard
1130b656e5 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.
1997-01-14 07:20:47 +00:00
Jordan K. Hubbard
719de2bced Clean up device handling WRT slip and ppp devices. An incomplete transition
from one convention to another had things pretty fouled up in here.
1997-01-04 13:29:10 +00:00
Jordan K. Hubbard
e5b09b7d10 Do something I've wanted to do for quite some time - collapse all the
common layout code into some work functions and make all the layout-using
routine adopt them.  Also reorganize includes and generally clean up.
1997-01-03 06:32:39 +00:00
Jordan K. Hubbard
18926d84a6 Support the use of the 2nd CDROM as a fixit aid. Also put the EHS
into a submenu in case you need to start it again (or at some other point
in the installation).

Submitted-By: joerg
1996-12-29 05:51:40 +00:00
Jordan K. Hubbard
3cce01a416 1. Engage brain. 2. Write macro. Previous commit attempted to perform
2 before 1.
1996-12-17 00:00:15 +00:00
Jordan K. Hubbard
507372af02 Now that I've got my source tree sorted out, bring all the things
I've been committing into 2.2 directly all this time.
1996-12-14 23:09:10 +00:00
Jordan K. Hubbard
0da9521b5a Undo one of my memory optimization hacks - it actually made things more
complicated.
1996-12-12 08:33:38 +00:00
Jordan K. Hubbard
86767547be Be more efficient in how we use memory (stumbled across while looking for
something else) for attributes and variables.

Remove stack-stomper in sstrncpy().
1996-12-11 18:23:19 +00:00
Jordan K. Hubbard
0fd6d431cf Do a few things I've been threatening to do for a long time:
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>
1996-12-11 09:35:06 +00:00
Jordan K. Hubbard
00b69db338 As Paul has just pointed out, much of my strncpy() usage was either
bogus or overly complex and really needed to be done more consistently
and sanely throughout - no question about it.  Done.

Suggested-By: Paul Traina <pst@Shockwave.COM>
1996-12-09 08:22:19 +00:00
Jordan K. Hubbard
5153026dfc Eliminate great evil in the networking code. That's all I'm gonna say. 1996-12-09 06:37:46 +00:00
Jordan K. Hubbard
325403f959 Add Joerg's user management screen for David Nugent's pw(8) program, something
which will also need to be brought in before this screen will work.

Add some commentary about how the slip startup code is bogus.

Steal Joerg's loop for more properly closing all files and graft it into
the EHS startup.  My loop was functional but more bogus.
1996-12-09 06:02:36 +00:00
Jordan K. Hubbard
2ce9c19184 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.
1996-11-09 18:12:17 +00:00
Joerg Wunsch
9b23ef93f3 Sysinstall now offers the installation of a keymap early in the game!
Not all mappings are supported, most languages come only with one
encoding since this should be sufficient to get up & running in using
sysinstall, and we are already pretty tight on space.  (My previous
commit has already bumped the boot MFS size by another 50 KB for
this.)

This feature requires the `kbdcontrol -L' i've just committed.  Plain
text keymaps and the entire scanner are overkill for sysinstall.

Also updated the list of available keymaps while i was at it.

Reviewed by:	jkh
1996-11-09 16:47:08 +00:00
Jordan K. Hubbard
663b45cb90 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.
1996-11-07 08:03:29 +00:00
Jordan K. Hubbard
d57b472224 Placate Joerg some more by making screen savers get a reasonable default
timeout.
2.2-RELEASE candidate, like all the work here in release/sysinstall.
1996-11-04 17:42:22 +00:00
Jordan K. Hubbard
5def50038a Use macros for package names so it's easier to update them in one
place (sysinstall.h) when packages change rev.

Change the way that the routing daemon is configured entirely, to
placate Joerg.  Also auto-load gated if it's specified, while we're at it.
1996-11-04 12:56:33 +00:00
Jordan K. Hubbard
e738250b89 Remove the now-unusable ports configuration code. Swapping CDs is bogus. 1996-10-14 21:32:39 +00:00
Jordan K. Hubbard
f5e8e60f1f Make the save_userconfig() stuff conditional and turned off by default
(for now - still a few more wrinkles here).  Add more debugging code
and some cosmetic tweaks.
1996-10-05 16:33:05 +00:00
Jordan K. Hubbard
46a7b8131d Syncronize my tree so Eric can access the latest code. 1996-10-04 13:33:49 +00:00
Jordan K. Hubbard
23c0fda959 Installation cleanup, round II. 1996-10-01 12:13:29 +00:00
Jordan K. Hubbard
a19596c5a8 Close PR#1542. Don't just assume 24 lines, get the tty size.
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.
1996-08-01 10:58:54 +00:00
Jordan K. Hubbard
e8ebf53742 Don't munge keystrokes. 1996-07-31 09:29:35 +00:00
Jordan K. Hubbard
e5034f83b0 Detect which partitions have already been created with `auto' so as not to create them
twice.

Various cosmetic tweaks.
1996-07-31 06:20:59 +00:00
Jordan K. Hubbard
94dfd13efe 1. Fix the CD installation bogon for Novice install I mentioned.
2. Add some code for dealing with a ports collection on the second CD now.
1996-07-16 17:11:45 +00:00
Jordan K. Hubbard
8658743f95 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.
1996-07-09 14:28:22 +00:00
Jordan K. Hubbard
de4342fa44 Fix even more lurking bogons - why do I never find these until the last
possible minute? :-)
1996-07-08 10:08:22 +00:00
Jordan K. Hubbard
cf1647cd2f Whoops! Now that I'm decompressing docs into /tmp, it's important to
make sure that /tmp is there first! :-)  While I'm at it, clean up the
somewhat inexplicably bogus Mkdir() function.
1996-07-08 08:54:36 +00:00
Jordan K. Hubbard
2dc1c61598 Support compressed doc files again.
Add a few strategic screen clears.
Do a lot less wasted screen I/O in restoring screen contents that don't need
restoring.
Use tar instead of cp to back up /etc in installUpdate.
Don't panic when upgrade shell exits.
1996-07-05 08:36:02 +00:00
Jordan K. Hubbard
b95fc60906 Fix some minor reported bogons from the BETA 1996-07-04 23:12:05 +00:00
Jordan K. Hubbard
fdc0e7826c Document shortcuts.
Fix a bug which prevented variables from working properly
1996-07-02 10:57:58 +00:00
Jordan K. Hubbard
3b307053cb Make it plainer how to exit. 1996-07-02 01:03:55 +00:00
Jordan K. Hubbard
210b37a437 Put my changes back - Thanks, Peter! Boy, an errant Tag sure can mess
you up! :-)
1996-06-29 03:43:25 +00:00
Jordan K. Hubbard
d08b90a2c6 Sync with 2.1-stable (I commited my changes there first by mistake due to
an errant CVS tag file).
1996-06-29 02:53:09 +00:00
Jordan K. Hubbard
16805608c8 Copy the documentation files up into the release area - I've been doing
this by hand all along.  Silly.
1996-06-29 02:22:48 +00:00
Jordan K. Hubbard
ce4e6b1773 Init network at proper time. 1996-06-17 21:48:33 +00:00
Jordan K. Hubbard
e5ce154ce5 Add a top level function index. 1996-06-16 23:17:35 +00:00