Commit Graph

1918 Commits

Author SHA1 Message Date
Jordan K. Hubbard
a9ae218af3 Also set PKG_PATH when adding from media types other than FTP. 1995-11-10 15:10:07 +00:00
Jordan K. Hubbard
cf01259085 Leave hints for pkg_add so that it can do dependency over FTP. This
was formerly impossible due to the way pkg_add was insulated from where
a package actually came from.
1995-11-10 06:49:03 +00:00
Jordan K. Hubbard
56d73bb085 Tweaks to anon ftp setup.
Submitted by:	coranth
1995-11-10 04:43:47 +00:00
Jordan K. Hubbard
4652247a48 o Now that Coranth has made the anonymous FTP configuration not use adduser,
bring it back.
o Simplify the vsystem() call by ripping out a good deal of the extraneous grot.
1995-11-09 02:32:05 +00:00
Jordan K. Hubbard
98617a9131 o Use correct device for Wangtek tapes.
o Caution against use of `W' options in label/partition screens (dangerous!)
o Make various types of debugging dreck conditionalize on DEBUG flag
o Make a fake /var/db/mountdbtab file so new system doesn't complain
o Apply uniform permissions to entire /usr/X11R6 tree.
o Set erase character to ^H for all interactive commands.
o Don't panic if user exits upgrade shell, reboot.
o Document dangers of `W' options in help screens also.
1995-11-08 07:09:36 +00:00
Jordan K. Hubbard
df1f3c7374 Fix a really stooopid bug that was clobbering the package menu.
Pointed-out-by:	ache
1995-11-06 22:26:28 +00:00
Jordan K. Hubbard
593ecf888e 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.
1995-11-06 12:49:27 +00:00
Jordan K. Hubbard
76fe20f0be Correct some *serious* brain-o's in the upgrade procedure. Thanks for
your patience, Julian!
1995-11-06 08:28:12 +00:00
Jordan K. Hubbard
cf17f935f1 Move MBR selection to write/quite stage of disk editor for a more logical
grouping.

Don't print geometry warning in "all disk" case.

Clean up some unnecessary newlines in confirmation messages.
1995-11-04 11:09:16 +00:00
Jordan K. Hubbard
79a8460110 Various tweaks to adjust things more to my liking. Also bring in Rich's
changes to update XFree86 to 3.1.2-S.
1995-11-04 08:47:33 +00:00
Jordan K. Hubbard
1babea36ca 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.
1995-11-03 12:02:45 +00:00
Jordan K. Hubbard
8260a8caf0 Be more aggressive about writing out configuration files. 1995-10-27 03:59:38 +00:00
Jordan K. Hubbard
bc32adf3b0 Last minute nits. 1995-10-27 03:07:14 +00:00
Jordan K. Hubbard
fa31ce4fab Clean up some last bogons with the WEB server setup (now that I'm far
enough along to worry about such things!).
1995-10-27 02:12:58 +00:00
Jordan K. Hubbard
2f41233295 Fix the bug I introduced with /etc/sysconfig not being updated
properly.
Make some cosmetic doc changes here and there in response to user
feedback.
1995-10-27 01:22:58 +00:00
Jordan K. Hubbard
05bbe72676 Sync up for this snapshot. 1995-10-26 08:56:18 +00:00
Jordan K. Hubbard
4ea85d4592 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.
1995-10-26 08:11:24 +00:00
Jordan K. Hubbard
6094230b54 Make upgrades actually work (thanks, Julian).
Many other bug fixes.
1995-10-24 02:18:23 +00:00
Jordan K. Hubbard
f064a971a1 Reshuffle the network config code a little so that it's actually
usable.  Also fix the package extraction code.
1995-10-23 13:19:51 +00:00
Jordan K. Hubbard
9e08ad4bbe Don't use tar to add packages, use cpio in tar mode. Works better.
Make the apache setup try to load the package first..
1995-10-22 23:20:45 +00:00
Jordan K. Hubbard
0b518254c0 1. Add Coranth Gryphon's Apache WWW server setup screen.
2. Fix an infinite recursion bug in FTP retry.  Tricky, this FTP install!
3. Add messaging routines for scripts.
4. Fix yet more bogons.  I think I'm fixing them faster than they're growing,
   but it's hard to say.  I'm really glad we're throwing this code away for
   2.2!
1995-10-22 20:15:07 +00:00
Jordan K. Hubbard
61029f8291 Second round of screen update changes. Now handle the yes/no dialogs
as well as the confirmation dialogs.
1995-10-22 17:39:29 +00:00
Jordan K. Hubbard
b462d27c89 Style changes. Clear the screen before a lot of error dialogs so that they
don't bogusly restore the screen to the message that was the cause of the
abort.  That resulted in lots of weird flickering dialog boxes that appeared
to be displayed out of sequence.
1995-10-22 17:18:36 +00:00
Jordan K. Hubbard
c731441db2 Fix a bug in dist extraction when a dist was missing.
Allow instrumentation for adding packages from scripts.
1995-10-22 11:32:58 +00:00
Jordan K. Hubbard
2c4c63e4c9 Style police throughout.
Fix the ppp startup code.
Make the disklabel and fdisk screens "automatable"
1995-10-22 01:33:02 +00:00
Jordan K. Hubbard
a2df9ce22c Error message reform. Make an unnecessarily fatal error a warning. 1995-10-21 20:03:07 +00:00
Jordan K. Hubbard
2de56abd58 Fix a couple of things I broke while fixing them. 1995-10-21 16:44:24 +00:00
Jordan K. Hubbard
7dace4c581 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.
1995-10-21 14:07:02 +00:00
Jordan K. Hubbard
263f40b52b Change the pkg_info check back - it was correct before! 1995-10-20 22:36:06 +00:00
Jordan K. Hubbard
e266bc3386 Slip some fixes under the wire. Mostly cosmetic cleanup and
an attempt to make the package installer a little more robust (it's
still a little shakey, but will improve between now and the release)..
1995-10-20 20:10:49 +00:00
Jordan K. Hubbard
95d12914c4 Sync for Westhill build. 1995-10-20 14:26:15 +00:00
Jordan K. Hubbard
29dd7e5407 Fix fix. 1995-10-20 10:38:49 +00:00
Jordan K. Hubbard
2a190b59f2 More bug fixing, make debug settable two ways, put more meat into
the upgrade.
1995-10-20 10:01:26 +00:00
Jordan K. Hubbard
a4228a80e9 Finally split this off from system.c, as intended. 1995-10-20 07:03:40 +00:00
Jordan K. Hubbard
f9c6cb18e3 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.
1995-10-20 07:02:53 +00:00
Jordan K. Hubbard
c2cb0dfbf0 Sync. 1995-10-19 18:37:50 +00:00
Jordan K. Hubbard
6430d4acf6 Drat! Forgot the adds.. 1995-10-19 16:15:43 +00:00
Jordan K. Hubbard
8ca961b3b4 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.
1995-10-19 15:57:23 +00:00
Jordan K. Hubbard
adfab64be5 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!
1995-10-18 05:02:02 +00:00
Jordan K. Hubbard
3b9d53b13a 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.
1995-10-18 00:12:55 +00:00
Jordan K. Hubbard
c8cd425122 Sync with me in prep for snapshot. 1995-10-17 02:57:11 +00:00
Jordan K. Hubbard
34fea4ae3c Sync to my current development srcs. I'm about to go off the air here for
awhile wwhile they work on my phone lines.
1995-10-16 23:02:35 +00:00
Jordan K. Hubbard
3cc7679dca Fix many more bogons, add some stuff to make the docs folk happy. 1995-10-16 15:14:28 +00:00
Jordan K. Hubbard
e998cbfd51 Switch to fds from FILE *'s. Fix a problem with FTP media device
and INDEX file.
1995-10-16 09:25:22 +00:00
Jordan K. Hubbard
884d2ca172 Sync up to today's development snapshot for the other folks working on this. 1995-10-16 07:31:11 +00:00
Jordan K. Hubbard
551cde2d52 Fix the selection routine. 1995-10-15 17:22:24 +00:00
Jordan K. Hubbard
e0e95a6911 Sync. Split into more rational package support functions and clients
of those functions.
1995-10-15 12:41:09 +00:00
Jordan K. Hubbard
5ebaccdf62 Substantially simplify the package install code by running pkg_add in
slave mode.
1995-10-15 04:37:07 +00:00
Jordan K. Hubbard
f1de0e9196 Sync up to today's cleanup work. 1995-10-14 19:13:35 +00:00
Jordan K. Hubbard
9447b0e107 Sync with my development sources, smashing an annoying bug and making
the options editor a little less pathological.
1995-10-14 09:30:53 +00:00
Jordan K. Hubbard
9d163c66d0 Fix a couple of doc or appearance nits.
Remove the ATAPI kernel hack.
Remove the now-unnecessary work-around for booting root off a slice; it
appears to work just fine now and will confuse a lot fewer folks.
1995-10-11 09:57:30 +00:00
Jordan K. Hubbard
8e693cb7b4 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.
1995-10-11 00:54:01 +00:00
Jordan K. Hubbard
3950ae8dce Syncronize with my current sources. pkg installer not quite in final
form yet, but close.
1995-10-09 11:14:56 +00:00
Jordan K. Hubbard
4db84b4d1e 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.
1995-10-07 11:55:37 +00:00
Jordan K. Hubbard
50f5714bab Properly repaint an option in reverse video after changing its value. 1995-10-06 11:14:43 +00:00
Jordan K. Hubbard
2139a13026 Make descriptions stand-out a bit more. 1995-10-06 08:47:40 +00:00
Jordan K. Hubbard
83bd9af30f General cleanup - sanitize use of variables.
Do more rational things in a number of other instances.
1995-10-04 12:08:27 +00:00
Jordan K. Hubbard
5b8015dad2 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.
1995-10-04 10:34:08 +00:00
Jordan K. Hubbard
9040e32d5e 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.
1995-10-04 07:55:05 +00:00
Peter Wemm
5326bef3de 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
Rodney W. Grimes
d3628763db Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
Rodney W. Grimes
e5370bd7fe Remove trailing whitespace. 1995-05-30 08:29:07 +00:00
Jordan K. Hubbard
a2f0036ac4 Whoops! Fix things so that the root.flp also comes over NFS, not just
the distfiles.
1995-05-30 05:50:53 +00:00
Jordan K. Hubbard
e34d8f08ab NFS installation was broken - try to fix it. 1995-05-30 05:13:24 +00:00
Jordan K. Hubbard
a0ea7d345e Some floating-point trickery to make the gauge come out right. Also
make it a little longer.
1995-05-29 14:38:31 +00:00
Jordan K. Hubbard
f11ff9b1cc 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
Jordan K. Hubbard
62cdf450b8 A small tweak to layout. 1995-05-29 12:32:41 +00:00
Jordan K. Hubbard
f1a7e35683 Add a bunch of missing help files. 1995-05-29 11:58:16 +00:00
Jordan K. Hubbard
8fdde019ad 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
Poul-Henning Kamp
de42a94e4b Get help files form /stand/help.tgz 1995-05-29 02:13:31 +00:00
Jordan K. Hubbard
1f71f6055b Make the emergency holographic shell (on VTY4) actually work with job
control and signals and such.  Thanks, Gary!

Clean up some miscellaneous bogons for Poul.
1995-05-29 01:43:20 +00:00
Jordan K. Hubbard
fdb4b4b383 Shrink the boot floppy by removing all extraneous stuff. Also increase
number of inodes.

Fix various bugs reported by Poul.  Implement VTY switching.
1995-05-29 00:50:05 +00:00
Jordan K. Hubbard
15671a7ba8 Add various missing seat belts. 1995-05-28 23:12:09 +00:00
Jordan K. Hubbard
0d65268039 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
Jordan K. Hubbard
34375f5af0 Remove a needless complication - parent directory already has a trailing /. 1995-05-28 09:43:36 +00:00
Jordan K. Hubbard
adc0fd37fc Try again to redirect the console back before rebooting. 1995-05-28 09:36:06 +00:00
Jordan K. Hubbard
87b9e01a01 Sync up with Poul. 1995-05-28 09:31:44 +00:00
Poul-Henning Kamp
e9f7e74946 cdrom.c: try "cdrom/%s" then "cdrom/dists/%s"
dist.c: fix an error message to make more sense.
1995-05-28 07:05:21 +00:00
Jordan K. Hubbard
337bd0b846 Humanize Poul-Henning's code. Status values should be properly
respected now.
1995-05-28 03:05:06 +00:00
Jordan K. Hubbard
ae71ab7fd4 1. Make this compile again after Poul's changes to the get() strategy
routine.

2. Improve the tcpip menu slightly.
1995-05-27 23:52:55 +00:00
Poul-Henning Kamp
25fce75ee4 Major cleanup. Mediaroutines now get asked about a file. All the
multi part stuff centralized.
The final check is backwards or something so it always said it failed,
even it it didn't.
Fixed tcpip address check to not be stupid, 10.0.255.1 is legal.
1995-05-27 23:39:35 +00:00
Jordan K. Hubbard
8e98d776c0 Commit parts of reorg that were diffs. Substantially re-engineer the
extraction and mediaGetFTP() handshaking to solve some unexpected complexities.
1995-05-27 10:47:44 +00:00
Jordan K. Hubbard
ba5d6a864b Things were getting seriously hard to find. Do a quick reorg pass over
the code and split things into more logical groupings.
1995-05-27 10:39:04 +00:00
Poul-Henning Kamp
3e28322bd6 Add a little more debugging to the lowlevel ftp stuff. 1995-05-27 06:19:59 +00:00
Jordan K. Hubbard
c7c644a181 Change XFree86 dist names to upper case again. 1995-05-26 22:22:20 +00:00
Jordan K. Hubbard
a2e871cc98 Netmask is unused now - we can delete it. 1995-05-26 22:08:59 +00:00
Jordan K. Hubbard
11033b2a7f Don't add the default route in ppp - we'll only add it again later. 1995-05-26 21:37:53 +00:00
Jordan K. Hubbard
c2192cfe88 Fix a few bogons. 1995-05-26 21:16:02 +00:00
Jordan K. Hubbard
24f0a9980d Put the console back on ttyv0 before rebooting. 1995-05-26 21:00:43 +00:00
Jordan K. Hubbard
fea7a60b7b Put out variable names in quotes. 1995-05-26 20:55:11 +00:00
Jordan K. Hubbard
395dda4194 Clean up the variable handling code a little.
Write /etc/hosts in the right place.
1995-05-26 20:45:20 +00:00
Jordan K. Hubbard
a7f54e2e75 Ask name of "other" ftp site in correct place.
Make TIOCCONS redirection for console messages work properly; we no longer
open /dev/console for all I/O - we use the VTYs directly.
1995-05-26 20:31:02 +00:00
Jordan K. Hubbard
2d7d54b2b4 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
Jordan K. Hubbard
b9643b6695 This should fix the last of the ftp path problems.
It was all a bit more complex than it first looked.
1995-05-26 11:21:53 +00:00
Jordan K. Hubbard
dc38f8c8da This should enable use to find the info files properly over ftp. 1995-05-26 10:58:51 +00:00
Jordan K. Hubbard
f284246288 Swap args to deviceGet(). Whoops! 1995-05-26 10:34:44 +00:00
Jordan K. Hubbard
ad98a5f52b be nice and tell the user when the installation has completed successfully
so they don't just come back to a menu again 2 hours later with no idea
what happened with the operation(s) they had in progress.
1995-05-26 10:32:28 +00:00
Jordan K. Hubbard
5662f32138 Fix a bug in the /etc populating copy.
Change root.flp from a new format CPIO archive to a tar archive.
Unless we're willing to change the main tarballs from tar format to
"newc" (or, even better, "crc") cpio format, we need to use one common
one for all and that's tar for now.  Install will now grab "root floppy"
from an ftp site if that's what you've got set.

Fix even more gripes from Poul's list.

P.S.  As soon as I get the distfiles copied over to freefall tomorrow
morning, those of you wishing to test minimal installs over ftp should
be able to do so by grabbing the boot floppy and nothing else.  Keep
your eyes open for my announcement.
1995-05-26 10:20:47 +00:00
Jordan K. Hubbard
3c4d1d3edb Tighten up the TCP/IP dialog a little.
Simply install procedure a bit.
1995-05-26 08:58:35 +00:00
Jordan K. Hubbard
223705ba7e 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
Jordan K. Hubbard
655f249eaa Add CRC checking to sysinstall.
Submitted by:	gpalmer
1995-05-25 18:49:58 +00:00
Jordan K. Hubbard
4537793804 Bring in all my fixes to Poul's gripe list as of last night. 1995-05-25 18:48:33 +00:00
Poul-Henning Kamp
32812b6ea5 media_strategy.c: Add explanation for URL.
ftp.c: Clean up debug, improve error handling.
1995-05-25 06:15:38 +00:00
Jordan K. Hubbard
a3028ab123 Cleanup. 1995-05-25 01:52:04 +00:00
Jordan K. Hubbard
903463ef42 Put back some changes that were smashed in yesterday's release tree
shoot-down.
1995-05-25 01:22:20 +00:00
Jordan K. Hubbard
34753e5aee Invoke the _right_ shell. Sigh. 1995-05-24 23:43:59 +00:00
Jordan K. Hubbard
795b392ce3 Whoops - that last feature I committed to put a diagnostic shell in
ttyv3 would work a lot better if I actually exec'd a shell! :-)
Reviewed by:
1995-05-24 23:36:50 +00:00
Jordan K. Hubbard
e336d945a8 1. Spawn a shell on VTY4 and leave it lying around.
2. Bring in Gary's prompt stuff in extractGeneric.
3. Add another global for telling when we're running as init.
1995-05-24 22:37:44 +00:00
Poul-Henning Kamp
eaca002785 Never commit before breakfast: A typo. Sorry Gary. 1995-05-24 19:31:26 +00:00
Jordan K. Hubbard
9576fbf44c Take out configSysconfig() until I get it written. 1995-05-24 18:52:47 +00:00
Poul-Henning Kamp
e7b2fe43e0 Close the transfer socket. 1995-05-24 18:35:10 +00:00
Jordan K. Hubbard
0b81ddd0c2 "Bring out your dead!" Always try to reap the children we leave around. 1995-05-24 18:21:49 +00:00
Jordan K. Hubbard
a098749d6b Bring everybody up to date on my morning's work.
1. Fix a few bugs in the ftp installation code and implement proper
   ftp and network shutdown routines.

2. Clean up the menus a fair bit - add a FreeBSD configuration menu.

3. Eliminate the last of the "chaining" - the installation now does
   the most obvious thing in the most obvious cases and doesn't present
   you with more menus than you were expecting.  This makes it necessary to be
   a little more explicit in places, but it's still less confusing.

4. Add a few more safety nets for the user.  Change a few hard-and-fast
   limits to warnings (it now runs as non-root, Bruce).

5. Add descriptions for all the supported ethernet cards.

6. Make the cpio floppy extract put up a menu requesting the drive you wish
   to use if you have more than one; don't just always assume drive A.
1995-05-24 17:49:20 +00:00
Gary Palmer
b2687efa65 Makefile:
Add testftp: target
ftp.c:
  add more debugging output and fix a few more problems
media_strategy:
  make the ftp system actually do something resembling common sense.
  it now works after a fashion, although it soon falls over for some
  reason.
1995-05-24 11:19:11 +00:00
Jordan K. Hubbard
bef6490904 Sync to latest ftp-capable sysinstall. We're getting there! 1995-05-24 09:00:58 +00:00
Jordan K. Hubbard
9b03310b0c 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
Jordan K. Hubbard
7b61dc31a2 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
Jordan K. Hubbard
7ccad8a96a 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
Jordan K. Hubbard
c49678020c Implement most of the CD extract code.
Clean up a few last display bugs.
Add sanity checking that makes sure user creates root and swap partitions.
Add swap partitions with swapon().
1995-05-22 14:10:25 +00:00
Jordan K. Hubbard
c420fc79ed Check status of the device init routine properly. 1995-05-21 19:28:05 +00:00
Jordan K. Hubbard
19d7c5761e Try AGAIN to get the disklabel editor to do the right thing.
This is getting ridiculous.  I may have to put the clear() back
and take the performance penalty, Poul.

Tweak the TCP/IP setup menu to look a little nicer.

Add lp0 to the list of available network devices (it was found before
but simply not described properly).
1995-05-21 18:24:34 +00:00
Jordan K. Hubbard
c824c08b3c Stick in another strategic clear(). 1995-05-21 17:53:27 +00:00
Jordan K. Hubbard
23cb914708 1. Start syncing up the network strategy code so that folks like Poul and
Justin can see it.

2. Attempt to fix the redisplay problems in label.c some more.  Not clearing
   the screen each time is certainly faster, but it's causing all sorts of
   problems.
1995-05-21 15:40:54 +00:00
Jordan K. Hubbard
7ef31df267 Correct a display bug that Poul introduced with his last round
of optimizations.  Add a check to make sure that root filesystems
are at least 20MB in size (this is just a thumbnail approximation,
and we can revise it later if necessary).
1995-05-21 10:16:10 +00:00
Jordan K. Hubbard
f7ef77e04f Reverse a boolean condition that prevented the user from disabling
a distribution fetch.
1995-05-21 10:05:17 +00:00
Poul-Henning Kamp
6285c26802 The latest batch from me. Still some screen anomalies (One could consider
the entire libdialog one such :-( ) but functionally ok I think.
1995-05-21 06:12:44 +00:00
Poul-Henning Kamp
d553eefb52 label.c: wizard mode now returns;
disks.c: clrtobot() so that deleted stuff disappears.
disks.c: offset is signed (for OnTrack diskmanager)
system.c: don't setbuf(stdout,0), it's too slow.
1995-05-21 04:34:12 +00:00
Poul-Henning Kamp
e841846b60 Make a fixit.flp target too.
Improve the search code for the -u # argument to newfs.
1995-05-21 03:20:05 +00:00
Poul-Henning Kamp
0cee912e58 Make newfs options work on rootfs.
Add size argument to new_part, so it can come up with a good default for newfs.
Fix (possibly) a dialog botch after label.c's wizard mode.
Make vsystem even smarter abour crunched binaries (what a speedup!)
(You need to recompile crunchgen !)
1995-05-21 01:56:03 +00:00
Poul-Henning Kamp
3525074d14 Now cpio works for me. (it was Mostly confusion about when the chroot
happened)
Make vsystem crunch aware in an intelligent fashion.
make the boot.flp target more specific (and faster).
1995-05-20 23:33:14 +00:00
Gary Palmer
96fe1684f2 #if 0 out PHK's code until we can find a way of making it crunchgen
dependant so that standalone builds aren't hosed.
1995-05-20 22:47:43 +00:00
Jordan K. Hubbard
6593420ad1 1. Add MBR type menu to take it off of Poul's "gripe sheet".
2. Syntax correction from Andrey.

Good night! :-)
1995-05-20 20:30:12 +00:00
Jordan K. Hubbard
cc1f1b8814 Don't clear the screen for every redraw in the disklabel and
partition editors (ugh).  Fix an utterly bogus message (no arguments :)
in dist.c.  This should all make Poul a little happier and slide in
before the next CTM update window.
1995-05-20 19:22:21 +00:00
Poul-Henning Kamp
9f857b511d Change vsystem to know that the shell is crunched in.
Sanitize a couple of messages.
1995-05-20 19:12:13 +00:00
Jordan K. Hubbard
f5f9a92b2f Fix a few message bogons. 1995-05-20 18:37:03 +00:00
Jordan K. Hubbard
71502538f6 Misc cpio evil. I think I'm going to start working locally and just deal
with the diff/CVS hassles - this represents far too many CVS commit
messages for you folks, and trying to document each and every iteration
of the code is a hassle (and not very useful at that).
1995-05-20 16:22:42 +00:00
Jordan K. Hubbard
c2948a7b51 Hmmm. Try the raw floppy device! This failure mode is a bit strange. 1995-05-20 15:49:53 +00:00
Jordan K. Hubbard
88c97d3785 Whoops - copy_self() was going to the wrong place!
Use proper floppy device names.
1995-05-20 15:47:19 +00:00
Jordan K. Hubbard
e6684cda7a Use ppp0 for all serial devices. It's somewhat kludge, but at
least accurate (we only have one ppp device on the floppy).
1995-05-20 14:36:39 +00:00
Jordan K. Hubbard
7fe566d31b Try again to get cpio_extract() to work. Also fix the bogon
I introduced with msgNotify() again.  Sigh.  I'll get it looking
correct someday!
1995-05-20 14:05:31 +00:00
Jordan K. Hubbard
519501fed0 Correct the name of the release notes file. 1995-05-20 13:36:44 +00:00
Jordan K. Hubbard
6387e9b058 Clear the screen on msgNotifys.
Don't notify in vsystem() - it obscures the original message.
Put some debugging code into cpio_extract() so that I can see
why it doesn't work now. :(
1995-05-20 13:24:35 +00:00
Jordan K. Hubbard
8568ba4e73 Don't call mediaVerify() in quite so many places. 1995-05-20 11:13:58 +00:00
Jordan K. Hubbard
8f1fd59b90 Fix the DOS discovery code to now re-allocate another virtual device if
it's called multiple times in a row.  Add a new device type "DEVICE_TYPE_DOS"
so that we can look up an previous results.
1995-05-20 11:10:35 +00:00
Jordan K. Hubbard
f10eb488f6 1. Fix a pathological bug I introduced in msgInfo(). Right idea, wrong
implementation.

2. Totally rework device registration.  It's about half the size and
   more powerful now.

3. Add DOS discovery.

4. Start filling in some of the strategy routines.

5. Another clean-up pass over the menus.

6. Make wizard code use Disk typedef.

If I can get the first strategy routine finished tonite, we should have a working
install (from ftp, at least) this weekend.
1995-05-20 10:33:14 +00:00
Jordan K. Hubbard
2cf252e087 Totally re-work cpio_extract.
Erase the annoying "Command output is on debugging screen" message
when it's time to switch back.
1995-05-20 08:31:43 +00:00
Jordan K. Hubbard
dad012f2c6 Correct a few wording bogons in the menus.
Make notify NOT wipe the dialog off right after putting
it up.  Whoops.  Kinda defeated the purpose! :-)
1995-05-20 07:50:20 +00:00
Gary Palmer
e61618782b Make Jordan's ``half baked'' code compile so that make release's aren't
stopped dead in their tracks. Also add the beginnings of my
distribution extraction code in media_strategy.c
1995-05-20 03:49:10 +00:00
Jordan K. Hubbard
7ab5b08b2c This doesn't work - the extract code is half-baked. I commit it only
so that Gary can sync to it before I go to bed.. :)
1995-05-20 00:13:14 +00:00
Jordan K. Hubbard
c7c32addb2 More assorted verbosity. Also don't log informational messages. 1995-05-19 21:30:35 +00:00
Jordan K. Hubbard
1c1834210c Make _DIST_USER use the right flag. 1995-05-19 18:50:59 +00:00
Jordan K. Hubbard
2512487c92 Be more verbose now that we're getting ready to actually extract. 1995-05-19 17:19:39 +00:00
Jordan K. Hubbard
ce4e04980d XF86VGA16 -> XF86VG16 1995-05-19 17:11:07 +00:00
Jordan K. Hubbard
c10caaad51 1. Incorporate Nickolay's ammended patches for Russian screenmap support
as per Andrey's letter.  Make a few modifications for correctness.

2. Add Language menu back to first menu - it was too buried in the
   Options menu.

3. Add size information to all distributions.

4. Add a compat20 distribution (we need to make one of these!!  Any takers?  Please?)

Submitted by:	Nickolay N. Dudorov <nnd@gw.itfs.nsk.su> & jkh
1995-05-19 16:58:58 +00:00
Jordan K. Hubbard
87b47edc82 1. Copy the boot floppy into /stand before extracting the CPIO floppy.
2. On Justin's advice, remind the user when they should switch back
   from the debugging screen, if they're looking over there.
1995-05-19 15:56:02 +00:00
Jordan K. Hubbard
ec9b92d133 Whoops! Put the helpful message telling you to look at the second
screen on the first screen, and not the second.. :-)
1995-05-19 04:17:38 +00:00
Jordan K. Hubbard
977a407e1d Include serial ports as possible network candidates. 1995-05-19 02:31:13 +00:00
Jordan K. Hubbard
a1bfde73e4 Big Sigh. Both A_BOLD and A_UNDERLINE do not appear to work with
syscons (and/or cons25) at all.  This code looked just fine running
on an xterm, but on a console the attributes are all wrong.  I
now have to sacrifice some screen real-estate to pring cheesy
`-' characters to accomplish the same thing.
1995-05-19 02:19:15 +00:00
Jordan K. Hubbard
f8230b2f5f Switch to bold on the header line - the A_UNDERLINE handling appears to be
broken in syscons, or at least in the cons25 termcap entry! :-(  A_BOLD
won't show up on monochrome adapters (I don't think) but they'd be screwed
anyway since I don't have an attribute to use for them now at all.
1995-05-19 02:09:02 +00:00
Gary Palmer
9675b32c2f You want to be in /mnt when extracting the cpio floppy, not in the read
only root filesystem.....
1995-05-19 01:49:57 +00:00
Gary Palmer
aff014ff20 Sigh. Add a ++ which was causing the newfs'ing of non-root filesystems to
fail :-(
1995-05-18 23:36:21 +00:00
Poul-Henning Kamp
18f4c72169 Run bad144 on raw-devs. 1995-05-18 22:00:01 +00:00
Poul-Henning Kamp
b8458cd586 A couple of tweaks to make bad144 scan run. 1995-05-18 21:58:33 +00:00
Jordan K. Hubbard
561e0b4c76 Use raw devices for newfs.
Write and wizard mode only on enabled disks.
1995-05-18 18:02:31 +00:00
Jordan K. Hubbard
9786c33e55 Poul says that setting fonts on monocrome displays is useless
as most mono displays aren't that intelligent anyway.  Disable it in this
case.
1995-05-18 17:49:09 +00:00
Jordan K. Hubbard
fcddc1c2bc Use CHUNK_BSD_COMPAT as God and Poul intended it be used. 1995-05-18 17:38:02 +00:00
Jordan K. Hubbard
a0b7a5f865 Fix quoting error. 1995-05-18 16:57:52 +00:00
Jordan K. Hubbard
8cdff502c9 I had the arguments to Mount() backwards. Argh. 1995-05-18 16:53:53 +00:00
Gary Palmer
a3bbb2ff49 Dispose of old, #if 0'd, out code which has been proved to be no longer needed. 1995-05-18 16:44:41 +00:00
Gary Palmer
3890483652 Correct a conditional which could cause a off-by-one error in certain
circumstances.
1995-05-18 16:36:14 +00:00
Jordan K. Hubbard
0e8441fc1a Clear the screen after changing the font. 1995-05-18 15:58:32 +00:00
Jordan K. Hubbard
ae1d347651 Whoops! I forgot how uudecode works.. Make it really work here. 1995-05-18 15:46:18 +00:00
Jordan K. Hubbard
a2b4e70705 1. Use 8x16 fonts.
2. Don't use russian screenmap - apparently not necessary with right font.
3. Dequote bogusly quoted font name in english language setting.
4. Use setterm() and hack around an undesirable side-effect (cbreak is unset).
5. be smarter about setting OnVTY, and use it in cases where it makes sense.
Submitted by:	Nickolay N. Dudorov <nnd@gw.itfs.nsk.su>
1995-05-18 15:29:47 +00:00
Jordan K. Hubbard
36678611e6 Add some more debugging information and fix a few missing newlines. 1995-05-18 14:11:16 +00:00
Jordan K. Hubbard
def8bcf342 Fix a very embarassing typo. No wonder this thing was looping! :-) 1995-05-18 13:20:53 +00:00
Jordan K. Hubbard
690e60d830 1. Add serial devices to list of possible network device candidates.
2. Rework tcpip.c a bit so that devices which have been configured also
   have the enabled flag set.
1995-05-18 13:18:35 +00:00
Jordan K. Hubbard
ab9357a910 Also log all user interactions to debugging log. 1995-05-18 12:57:54 +00:00
Jordan K. Hubbard
6aebdd7df9 Do more proper bad144 handling. Thanks, Rod. 1995-05-18 10:43:51 +00:00
Jordan K. Hubbard
4d7b3c6f96 1. Primitive bad144 support (I believe an additional command is needed, but
won't know until Poul wakes up again).
2. Make vsystem() put its output on the debugging fd.
3. DTRT with root filesystem placement - now I see how this has to work
   (thanks, Poul).
4. Many miscellaneous spelling errors fixed and general cleanup.
1995-05-18 09:02:06 +00:00
Jordan K. Hubbard
0b30383382 Use my own version of system() everywhere - it knows where to find the
shell!
1995-05-18 02:42:33 +00:00
Jordan K. Hubbard
4da5212097 1. Set a path to /stand by default.
2. Don't clear() when I can dialog_clear().
1995-05-17 16:16:10 +00:00
Jordan K. Hubbard
498e6d5df3 Remove the seat-belts from the root partition creation code; for some
reason I'm *always* getting CHUNK_PAST_1024 set now, even when it's
definitely not! :-(  Poul, can you perhaps take a look?  Thanks!
1995-05-17 15:41:52 +00:00
Jordan K. Hubbard
d0eeafc570 Commit my latest so that Gary can sync up - this version should also
be the grounds for our first round of testing in the release I'm rolling.
It doesn't load the distributions yet, but it should do everything else.
1995-05-17 14:40:00 +00:00
Gary Palmer
dfa4c76f74 Hopefully the last version of this file. Add a lot more comments, and
actually give the data back to sysinstall in a coherent fashion now.
1995-05-17 12:09:11 +00:00
Gary Palmer
4ea606879a Oops - Jordan managed to grab my ``work in progress file'' which
doesn't even come close to compiling. This file compiles, and should
work.
1995-05-16 20:00:51 +00:00
Jordan K. Hubbard
b2d228d3d7 This will now compile and even scribble helpfully on your disks.
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!).
1995-05-16 11:37:27 +00:00
Jordan K. Hubbard
3dee6615c7 This does _not yet compile_; I'm simply bringing in my changes from
this weekend in order to more easily sync with my CVS tree at home.
Another commit relative to these changes will follow shortly.
1995-05-16 02:53:31 +00:00
Jordan K. Hubbard
59927d47cf 1. Don't check CHUNK_BSD_COMPAT for now; it always returns "no" and is
getting in the way of testing right now.
2. Call system() on commands, not vsystem().  No need for vsystem() here.
3. Add a path for the shell.
1995-05-11 09:01:35 +00:00
Jordan K. Hubbard
e0d3af579f Clean this up a bit - add more documentation to the documentation menu. 1995-05-11 06:47:46 +00:00
Jordan K. Hubbard
dae062c15f First round of changes after testing this on actual systems. Clean up
some of the badly displayed menus, use the proper notification box for
messages, make proceed work.
1995-05-11 06:10:56 +00:00
Jordan K. Hubbard
42206c90f4 Don't use curses routines until that part of the system is initialized. 1995-05-10 18:59:51 +00:00
Jordan K. Hubbard
8e3bb099bf Sync up to Poul - use his new Create_Chunk_DWIM() function and use the pointer
it passes back.  Thanks, Poul!
1995-05-10 09:25:49 +00:00
Jordan K. Hubbard
b34c876a61 Make sure that mountpoints start with a /. 1995-05-10 08:03:21 +00:00
Jordan K. Hubbard
4ec1f4bcf2 Whoops - dispatch() takes multiple args now. 1995-05-10 08:00:47 +00:00
Jordan K. Hubbard
351669d743 Fold in all my recent changes.
Do another clean-up pass over this, making the generic menu handler much
more powerful (now handles multiple dispatch).  A few more menus fleshed
out and the beginnings of the distribution handler committed.  Should
be transfering full distributions over in the next commit.
1995-05-10 07:45:00 +00:00
Jordan K. Hubbard
f9a1c2dee2 Sync these up so that they'll get into my CVS tree at home, where I'll continue
working on the distribution extract stuff.
1995-05-08 21:39:40 +00:00
Jordan K. Hubbard
9e572e47e5 Whoops! Uncomment Write_Disk() again. 1995-05-08 18:41:37 +00:00
Jordan K. Hubbard
4d66a82366 Perform a much needed tidying-up pass over this code. Sleep for now,
more tomorrow.
1995-05-08 10:20:56 +00:00
Jordan K. Hubbard
69bbb06233 Add the sorted command executor code. 1995-05-08 06:08:27 +00:00
Jordan K. Hubbard
7f197a5448 Ok, we should now create all filesystems, mount them and extract the
cpio floppy at this point.
1995-05-08 06:06:30 +00:00
Jordan K. Hubbard
83b74c37e4 Implement the geometry command. Clean up the help a little. 1995-05-08 01:27:07 +00:00
Jordan K. Hubbard
65a27a9ba4 Add a wizard button for Poul. 1995-05-08 00:56:28 +00:00
Jordan K. Hubbard
0881c9c4a1 Fix a bug in multi-column output. 1995-05-08 00:38:02 +00:00
Jordan K. Hubbard
27e3eb523c Another sync up for Poul. Added a lot more error checking. 1995-05-07 23:37:34 +00:00
Jordan K. Hubbard
51f0ec8415 Implement a work-around for Create_Chunk providing no pointer to the
new chunk.  The partition editor now works as well as the underlying
libdisk can support it - have at it, Poul!
1995-05-07 22:07:53 +00:00
Jordan K. Hubbard
2b0e7dfa13 Make this compile again. Poul and I need to sync up again. 1995-05-07 05:58:57 +00:00
Jordan K. Hubbard
133231e4aa Correct a few ordering errors in how the partitions were being displayed. 1995-05-07 03:38:03 +00:00
Jordan K. Hubbard
64330cc768 Print sizes of partitions now. 1995-05-07 02:04:29 +00:00
Jordan K. Hubbard
4c88964f89 Some fairly serious cleanup. The proper offset should now be used in
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.
1995-05-06 09:34:24 +00:00
Jordan K. Hubbard
e4d731b693 All the editors are finished. Now if I can just get a problem with libdisk
fixed, we should be able to fully set up the user's disk.  Still to come
with next commit:  filesystem setup, distribution extraction, final
configuration.
1995-05-05 23:47:47 +00:00
Jordan K. Hubbard
a2e3498a3c Everything but the partition editor is done. This commit is for MBR testing. 1995-05-04 23:36:23 +00:00
Jordan K. Hubbard
7c56cfd441 This will now write MBR entries - should be enough for testing. 1995-05-04 19:48:19 +00:00
Jordan K. Hubbard
2e363cad34 My latest round of changes - make the "slices" editor work. 1995-05-04 03:51:22 +00:00
Jordan K. Hubbard
411bac67a7 Commit my latest changes before having a nap. Still not close to done,
nor is it in sync with my working sources, but it leaves me less CVS hassles
to bring in the new files at this time.  Still no documentation to translate
quite yet, but soon.  This stuff is actually very close now.
1995-05-01 21:56:32 +00:00
Jordan K. Hubbard
e40a316fcf o Add extra menu types (radio implemented, multiple choice shortly).
o Make the framework generally more robust.
o Figured out how to nest the menu descriptions - no more grotty initialization
  of menus.
o Fix bug with helpline and helpfile not being reset.
o Add stubs for the media selection code.

Coming next:  Fdisk and disklabel screens using Phk's new libdisk stuff.
1995-04-29 19:33:06 +00:00
Jordan K. Hubbard
d0d3dac501 This will be the module that handles all media detection. 1995-04-27 18:05:10 +00:00
Jordan K. Hubbard
ef42570d65 Latest raft of changes.
Added another couple of menu item types.

Reshuffled the menus and added a few more.  Sure wish I could figure out
how to initialize a menu with _one_ initializer rather than two! :(
1995-04-27 18:03:55 +00:00
Jordan K. Hubbard
4e278bdb76 Here is my first "framework" commit of the new sysinstall. There is a LOT
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).
1995-04-27 12:50:35 +00:00