Commit Graph

182 Commits

Author SHA1 Message Date
jkh
fe84f006ec Compensate for an underpopulated MFS. 1997-02-17 13:42:21 +00:00
jkh
c084122122 1. Always write out /etc/hosts.
2. Back out my change to ask about UTC/Localtime here.  This *really* needs
   to be done in tzsetup instead since putting it here only handles about
   1/4 of the places where it needs to be.
1997-02-16 23:35:05 +00:00
jkh
6110cab2f7 Replace bogus strncmp() with strcmp(). 1997-02-16 10:20:05 +00:00
jkh
9d2ee4b31d Make configSysconfig() less chatty.
Now that this is becoming (dare I even say it?) more useful for
post-configuration, no longer leave sysinstall.debug files around
by default.  Only do this if environment variable SYSINSTALL_DEBUG
is set.
1997-02-15 15:40:37 +00:00
jkh
5d18469bfe 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
jkh
6645b2e63b Only add interface lines if they're not there already. 1997-02-15 12:24:02 +00:00
jkh
fa0d03af58 Add a safety belt to configSysconfig() that should have been in there
from the beginning.
1997-02-15 11:20:54 +00:00
jkh
adaca398f3 Add better quote elimination (and fix a bug). 1997-02-14 21:17:00 +00:00
jkh
f7c3801a0a 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
jkh
1283f131c4 It's not an error to call configResolv() early. 1997-02-14 02:55:25 +00:00
jkh
ba36da27a6 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
jkh
e58a95f38f Allow both types of XFree86 setup script to be run at user choice. 1997-01-24 20:20:12 +00:00
jkh
aaf59d3509 A couple of cosmetic tweaks to tape install method and fstab file format.
Submitted-By: Flemming Jacobsen <fj@schizo.dk.tfs.com>
1997-01-20 19:36:31 +00:00
jkh
331b576478 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
jkh
59a1d5d7e1 Now that I know which parts of the installation really need it (since
there's no menu display bug to work around now), be far more selective
in my use of DITEM_RECREATE (which is slow and involves much screen I/O).
1997-01-17 08:47:13 +00:00
jkh
cd139127aa 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
jkh
9c0cd3f9df 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
jkh
a4ac17074b 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
jkh
d11f308f20 Add some additional smarts for XFree86 configuration.
Fix a bogon I thought I fixed in the last commit.
1996-12-12 22:38:41 +00:00
jkh
c818c687e0 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
jkh
9cda130bd2 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
jkh
fce8e434f7 Don't run routed by default.
Virtually-Demanded-At-Gunpoint-By: joerg
1996-12-02 05:01:02 +00:00
phk
246209119a Try to impreve DD mode.
Try to make 4Mb floppies work again.
1996-11-27 22:52:34 +00:00
jkh
9611996fee 1. Saner ldconfig path.
2. Choose DIST_XF86_CFG in defaults; XF86Setup isn't happy otherwise.
1996-11-09 19:26:01 +00:00
jkh
1473d960a5 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
jkh
fc3e83d979 1. Eliminate the sendmail.cw bogon again. Peter fixed it correctly.
2. Preload the ldconfig cache before calling X setup.
1996-11-08 05:38:27 +00:00
jkh
7f80914a3e This warning is too annoying now. Kill it. 1996-11-07 16:34:12 +00:00
jkh
bb2546f6aa Complete switch-over to XF86 3.2. 1996-11-07 15:35:48 +00:00
jkh
b296a3317b 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
jkh
8ec7ab2370 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
jkh
30c64c4dbd 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
jkh
a5a5ea9bd9 Remove the now-unusable ports configuration code. Swapping CDs is bogus. 1996-10-14 21:32:39 +00:00
jkh
95a3d863aa Fix the "missing nameserver value" bug. Simplify some unnecessarily
crufty code, here and there.
1996-10-03 07:50:09 +00:00
jkh
3756f2f690 One small policy tweak to something I like better. 1996-10-02 10:44:31 +00:00
jkh
d7457a8968 More strategic screen clears(). 1996-10-02 10:32:28 +00:00
jkh
a150f10760 Try to make screen update more efficient (less flickering) by more
judicious use of dialog_clear_norefresh().
1996-08-03 10:11:56 +00:00
jkh
0012923091 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
jkh
7315939135 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
jkh
5c7fe0a72a 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
jkh
5513142d9c Fix some minor reported bogons from the BETA 1996-07-04 23:12:05 +00:00
jkh
e697fd9fd2 Add an extra /etc/hosts entry per advice of Joerg. 1996-07-02 09:12:34 +00:00
jkh
974442fb7c Put my changes back - Thanks, Peter! Boy, an errant Tag sure can mess
you up! :-)
1996-06-29 03:43:25 +00:00
jkh
d1c5935860 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
jkh
88fec0b679 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
jkh
f76d01b1ee Handle tabs in INDEX files.
Display full, un-truncated version of description in status line.
1996-06-25 04:28:23 +00:00
jkh
63d719dc91 Change default user/group to ones that actually exist in default passwd
file.
1996-06-15 17:58:51 +00:00
jkh
4846cd0a6b Make the editor work again and we're done. 1996-06-13 17:36:28 +00:00
jkh
ac86617459 Some stuff I left out of the last commit - make toggle options toggle
again instead of simply letting you set them and staying that way forever.
1996-06-12 14:20:20 +00:00
jkh
1d0b70fde3 Make CDROMs automagically select as the default media type.
If you're running multi-user, check off items in the packages menu
based on whether or not they're actually installed.
1996-06-08 07:02:21 +00:00
jkh
994c6a9cb1 Sha-ZAM!
The root floppy is now gone.  I shall not mourn its passing.
Everything we need is on boot.flp or the bindist.
1996-05-29 01:35:33 +00:00
jkh
11fb58e39c Have both distribution and package extraction screens display the
transfer speed in KB/sec while fetching stuff; this gives you a better
idea if your link has crashed or is behaving oddly.
1996-05-23 16:34:30 +00:00
jkh
a7e3c5bdcb Fix some long-standing malloc bugs in the package handling code (freeing garbage
in one place, leaking memory in another).

Add a facility to invoke subsystems directly by naming them on
sysinstall's command-line when running post-install.  A replacement
for pkg_manage might, for example, be `/stand/sysinstall configPackages'

Fix bogon where upgrade shell was entered with tty modes spammed.

Fix bug with release name checking in ftp_strat.  Turned a bunch of
bogus exit()s into proper calls to systemShutdown().
1996-05-16 11:47:46 +00:00
jkh
7d018bcad9 Yikes - bogon crept into the NFS setup menu. 1996-04-29 18:06:08 +00:00
jkh
653fe18598 Don't stop /etc/sysconfig if we're `faking'.
More asthetic adjustments to menus.
Improve both the display efficiency and usability of the label
screen - it's now possible to label quite a few disks in the label editor.
1996-04-28 22:54:21 +00:00
jkh
e8a6aab937 Add a new -fake argument to make sysinstall not actually change things while
I'm testing it.
1996-04-28 20:54:11 +00:00
jkh
fd7d53abb8 Fix an ancient index list bug.
Make FTP re-initializion work.
Fix fix fix.
1996-04-28 03:27:26 +00:00
jkh
a082b04410 Move some of functions around in order to make this stuff easier
to work on.
1996-04-28 01:07:27 +00:00
jkh
7aaf24f77d 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!
1996-04-23 01:29:35 +00:00
jkh
d1f2a99932 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.
1996-04-13 13:32:15 +00:00
jkh
2f72deb93b 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.
1996-04-07 03:52:36 +00:00
joerg
d3e8c9a3d9 Rename the usage of private' to private_data' to cope with the
recent libdisk changes.  (sysinstall is guilty of using `private' in
quite more places, but since this ain't in library code, it's not that
important.)

Whenever possible, better not use C++ reserved words...
1996-03-24 18:57:37 +00:00
jkh
408ebf39ff 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.
1996-03-21 09:30:18 +00:00
jkh
e0131c02f6 Use proper path to hostname 1996-03-19 11:51:36 +00:00
jkh
cb7cb19d93 Lots of fixes:
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.
1996-03-18 15:28:10 +00:00
peter
ae9bf15783 Update the -current sources from the 2.1 branch.
Approved (in spirit) by: jkh
1995-12-07 10:34:59 +00:00
peter
1ce8793de0 This mega-commit brings in Jordan's latest sysinstall version..
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...
1995-09-18 16:53:06 +00:00
rgrimes
8f6e1a9b69 Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
rgrimes
53a5a3530d Remove trailing whitespace. 1995-05-30 08:29:07 +00:00
jkh
64c8bb8988 1. Fix a looping bogon in configFstab().
2. Fix the gauge.
3. Don't shut down the media device gratuitously after getting the root
   floppy - it saves work later.
1995-05-29 13:37:43 +00:00
jkh
9f23e6c1ac Sync up my work for the night. This should implement ALL possible
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.
1995-05-29 11:01:42 +00:00
jkh
fc5c1d7854 Fix bogon I introduced into dist extraction code last night.
Update to Poul's latest gripe list fixes.
1995-05-28 20:28:15 +00:00
jkh
a88817064a Sync up with Poul. 1995-05-28 09:31:44 +00:00
jkh
45d0eaf320 Put out variable names in quotes. 1995-05-26 20:55:11 +00:00
jkh
bc2949ac3f Clean up the variable handling code a little.
Write /etc/hosts in the right place.
1995-05-26 20:45:20 +00:00
jkh
6d0e72ef25 Clean up the configuration stuff a bit more - we should now populate
/etc with good things(tm).

Fire off ppp with all the proper initial options set.
1995-05-26 19:28:06 +00:00
jkh
0fff0a0edc Totally revamp the TCP/IP dialog; now network selection makes a bit more sense.
Root floppy (which actually may be able to go completely away at some point
soon!) is now loadable from ftp/nfs/dos as well as CDROM and (of course)
floppy.

Fix more problems on Poul's Gripe List.
1995-05-26 08:41:52 +00:00
jkh
05bf62f1d9 Bring in all my fixes to Poul's gripe list as of last night. 1995-05-25 18:48:33 +00:00
jkh
1376fbad40 Take out configSysconfig() until I get it written. 1995-05-24 18:52:47 +00:00
jkh
d9afdf923c Sync to latest ftp-capable sysinstall. We're getting there! 1995-05-24 09:00:58 +00:00
jkh
e604bf6989 Add a final configuration menu and the beginnings of the backing code
for it.  The ftp installation method is working well enough to test.
Many more bug fixes, says Gary.
1995-05-24 01:27:15 +00:00
jkh
b0a14bd809 Add my first cut at TCP/IP device configuration. If this works, the
ftp installation method should now function.  We'll know as soon as my
make release builds the floppies.  I'm just committing this out of my
release tree now so that it doesn't get clobbered again.
1995-05-23 18:06:16 +00:00
jkh
33555bf10f 1. Bring in the first cut of Poul's ftp routines. We still don't
use them yet, but it's close (we're working on the last wrinkles
   in the CD install for now).
2. Complete the CDROM installation strategy code.
3. Simplify the distribtuion loading code.
4. General error message cleanup.
5. Write the /etc/fstab file now and split those routines into config.c
6. Clean up the menus a little more.
1995-05-23 02:41:18 +00:00