Commit Graph

178 Commits

Author SHA1 Message Date
Garrett Wollman
3fa88dec7f Add support for filesystem-specific `-o' options, and re-implement the
most common cd9660 and nfs options like God intended them.  (It is now
possible to say

	mount -o ro,soft,bg,intr there:/foo/bar /foo/bar

again.)  This whole getmntopt() business is an incredible botch;
it never should have been anything more than a wrapper around
getsubopt(3).  Because if the way the current hackaround is implemented,
options which take arguments (like the old `rsize' and `wsize') are still
unavailable, and must be accessed the new, broken way.

(It's unimaginable how Berkeley managed to screw up one of the few things
about NFS that Sun actually got right to begin with!)
1994-11-01 23:51:53 +00:00
Andrey A. Chernov
7ac030ad07 Remove options, run adjkerntz as daemon now 1994-11-01 16:22:22 +00:00
Poul-Henning Kamp
9c354a29e7 Public apology:
I have walked all over Paul Richards code again, and severely lobotomized
some of his stuff, in order to cut some corners for the 2.0-Alpha release.
I belive that we can now manipulate fdisk and disklabel-stuff sufficiently
for the release to actually be produced.
It's not that I don't like Paul and his code, I just need something I
can kick out of the door RSN.

Sysinstall is now under absolute code-freeze, only Jordan has my permission
to commit to this code (stage0 & 5).  I would appreciate if everybody
else would finds problems in sysinstall send patches to me, and I will
commit them. THANKYOU.

The fdisk/disklabel editors are made in pure ncurses, and follow a model
"a`la spreadsheet".

There are some important functions which are missing still, and I would
appreciate if somebody would look at them.
The FDISK part needs a "whole-disk" option, and it needs a "rewrite
MBR-boot code" option.
The DISKLABEL part needs to be able to "import DOS-partition".
Both need a "HELP" function, (display a file "/HELP" using dialog is OK).

It seems to me like the wd.c and sd.c should reread the physical record
when a DIOCGDINFO is made, so that they can pick up changes in the
MBR-data.  Otherwise there will be a couple of weird cases where we
cannot avoid replicating code from the kernel.

If you want to play with this, look at src/release/Makefile.  You may need
to step back to version 1.38 of sys/i386/isa/fd.c to make "rootable"
floppies, it is not clear at this time if that indeed is the problem I
have been having.

Sleep well, my friends, and expect the real Alpha in 24H, if the tree is
still solid.
1994-11-01 10:10:43 +00:00
Andrey A. Chernov
c981965073 Remove extra :%s from syslog formats 1994-11-01 08:34:32 +00:00
Andrey A. Chernov
0835483992 Now:
adjkerntz -i writes kernel clock only, don't touch RTC clock
adjkerntz -a writes RTC clock only, don't touch kernel clock
1994-11-01 06:20:52 +00:00
Jordan K. Hubbard
0a87b23329 Latest changes from Uben.
Submitted by:	uben
1994-10-31 23:58:04 +00:00
Andrey A. Chernov
f195e2e513 Don't make too big windows, count actually text width/height 1994-10-31 04:49:15 +00:00
Andrey A. Chernov
df59073be8 Change hardcoded 24x80 to LINES-1, COLS
Remove compiler warning
1994-10-31 04:07:43 +00:00
Joerg Wunsch
b210d5f66a Fixed a type. 1994-10-30 18:23:22 +00:00
Paul Traina
23e79aa786 add md5 1994-10-29 23:58:55 +00:00
Paul Traina
e164509318 Incorproate version of md5 placed into public domain by RSA. 1994-10-29 23:58:02 +00:00
Poul-Henning Kamp
75c4377f4f Fixed another bunch of problems. I belive we are in a working shape now. 1994-10-29 12:03:59 +00:00
Poul-Henning Kamp
aa7d974a35 Fixed to make sysinstall work again. Notable changes:
Removed a dialog_clear() which somebody aimlessly had slammed into TellEm()
in absence of any understanding of the structure of this program. :-(

Skip through stage0 for now.

Make write_bootblocks write the disklabel using the kernel-call, and forget
about the boot-blocks for now.  This is wrong, but I havn't found the real
problem yet.  I will continue work on this problem.

Added a Debug-feature.  There is a printf' like Debug() now which sends its
output to ttyv1 (Alt-F2), and all "discarded output" from sub-processes end
up there too.  Made TellEm() put it's messages there also, so that we can
see where what happens.

Set the PATH for the shell we shouldn't start at the end :-)

set "npartitions" after the disklabel-editor returns, so that we actually
can edit all the 8 parts of the label.
1994-10-29 10:01:40 +00:00
Jordan K. Hubbard
e2247bbffd Add ipfw. 1994-10-29 08:22:13 +00:00
Joerg Wunsch
56d5f6db85 Fixed an evil bug where rawname() could write across the boundaries of
an array. The bug became obvious in the old system where the array was only
32 characters long (now MAXPATHLEN). Dump honored its name then (:-)
and dumped its core when calling dump -w for a fstab that contained rather long
NFS file system names. Even though this is rather unlikely to happen now,
a bug is a bug:)
1994-10-28 17:26:27 +00:00
Jordan K. Hubbard
61386f1ebb Totally refrobnicate stage0. Add an extern to sysinstall.h so we can
all share the same `selection' variable.
1994-10-28 15:19:57 +00:00
Jordan K. Hubbard
5d39ab9169 Fix up the man page a little more, delete the README that crept in
(but I'm actually just as happy to have in the attic, for reference).
1994-10-28 15:12:22 +00:00
Jordan K. Hubbard
b877c0f37e Add the ipfw command, for IP firewall construction.
Submitted by:	danny ugen
1994-10-28 15:06:53 +00:00
Poul-Henning Kamp
204218e079 Added two #defines to make this compile, until Paul gets out of bed again :-) 1994-10-28 03:02:47 +00:00
Jordan K. Hubbard
07e9e1dbd1 Correct a little spelling. 1994-10-26 10:33:36 +00:00
Paul Richards
f45d9f0072 Clean up the mess from the previous commit which used a out of sync
patch file.

Now, we should be able to configure disklabels using the editor.
1994-10-26 07:34:38 +00:00
Paul Richards
3b32505291 Added some glue code so disklabel editor can be used to edit disklabel
and have changes propagated to later stages.
1994-10-26 07:14:51 +00:00
Poul-Henning Kamp
281d3e3bd9 So there. Now we live on the hard-disk! 1994-10-26 05:41:02 +00:00
Paul Richards
933801dff5 Completed disklabel configuration editor. The editor is working but the
glue code to pass the edited configuration onto the following stages
isn't done yet.
1994-10-26 04:09:19 +00:00
Poul-Henning Kamp
3440124921 New and Improved! crunch with gzip, newfs, fsck and cpio. gzip result.
fits on 1200 kb floppy with unstripped GENERIC kernel.
1994-10-26 02:53:15 +00:00
Andrey A. Chernov
9dbfabe9eb Sync with termcap.src 1994-10-26 02:20:47 +00:00
Andrey A. Chernov
17bde3c52f Sync with termcap.src 1994-10-26 01:20:11 +00:00
Andrey A. Chernov
2c06e4a946 Remove unneeded dialog_update() because now in dialog_clear() 1994-10-25 22:23:18 +00:00
Bruce Evans
c48cef7def Don't write outside of partp[] if the user gives an invalid partition
number for the partition to be made active.  Do nothing instead.  This
allows clearing all the active flags by specifying an invalid partition.
1994-10-25 17:46:53 +00:00
Andrey A. Chernov
fe08a6032f Use configurable dialog attributes instead of hard-coded ones 1994-10-24 05:16:00 +00:00
Andrey A. Chernov
cc1da582a5 label.c: add delwin(window)
mbr.c: use proper dims for newwin, add shadow
both: add ' ' and ESC as valid end-keys
1994-10-24 04:14:23 +00:00
Andrey A. Chernov
dfee7da9e7 Use proper dims for newwin.
Remove double-clear.
Add shadow.
1994-10-24 04:07:22 +00:00
Andrey A. Chernov
c21d850179 Clear screen on exit per Paul request 1994-10-24 03:55:25 +00:00
Paul Richards
302a30b002 Remove a couple of display_disklabel call used
for debuging.
Reviewed by:
Submitted by:
Obtained from:
1994-10-24 03:33:29 +00:00
Paul Richards
caf2d08d24 Round partitions to the next whole cylinder.
Fill in devicename and mountpoint structures from default_disklabel()
so stage2 code knows what to do.
New file label.c for disklabel editing code.
1994-10-24 03:30:56 +00:00
Sean Eric Fagan
badd813805 Reviewed by: jkh
Print out summary information on receipt of SIGINFO; also, stop the
kernel printing of information and restore it on exit.  Now, it needs
an option to be quiet. ;)
1994-10-22 17:30:35 +00:00
Andrey A. Chernov
1ccea3128a Fatal() fixed:
end_dialog() called too early here.
1994-10-22 02:37:24 +00:00
Andrey A. Chernov
2592b4e4e5 Cosmetique: just fix tabs after patch of diff -cb (previous) 1994-10-22 02:35:09 +00:00
Andrey A. Chernov
70f29f87cd ExitSysinstall() fixed:
use dialog functions properly.
don't clear screen with last message on exit(0), I want to see it still.
relay on dialog_active properly.
1994-10-22 02:32:16 +00:00
David Greenman
a3189e21e6 Restrict fs_maxfilesize to 2^40; this is part of a bug fix from Kirk
McKusick to work around problems in FFS related to the blkno of a 64bit
offset not fitting into an int.

Submitted by:	Marshall Kirk McKusick
1994-10-22 02:21:53 +00:00
Paul Richards
66e35128bf Fixed a typo and moved a dialog_clear() line. 1994-10-21 18:26:25 +00:00
Paul Richards
b4740339e8 Fix all the bugs introduced by the source shuffle.
All the mbr code now seems to be working. We can build a basic
unix disklabel in any existing DOS partition while retaining the
existing mbr bootcode or we can install to the whole disk which
puts FreeBSD's boot code into the MBR and creates a clean MBR
partition table with FreeBSD in partition 0 taking up the whole disk.
1994-10-21 18:08:33 +00:00
Poul-Henning Kamp
57a3ad3e15 Now stage2 runs all the way.. 1994-10-21 05:36:43 +00:00
Andrey A. Chernov
af5bd96f75 Add hardcoded cons25-m entry for mono console, if termcap.small
not fit on installation floppy.
1994-10-21 04:48:51 +00:00
Andrey A. Chernov
6373dcc600 Second time bugfix, please be carefully.
Use dialog functions in Fatal only if dialog_active, else
use fprintf(stderr, because it may be called before dialog
initialization
1994-10-21 04:43:07 +00:00
Poul-Henning Kamp
4752baca4a Latest changes from me. Over to you Paul... 1994-10-21 02:14:54 +00:00
Andrey A. Chernov
5d23a66b18 Remove ncurses.h, now included into dialog.h 1994-10-20 21:58:10 +00:00
Andrey A. Chernov
35c9f61260 remove unneded includes
use dialog functions properly
move alloc_memory early to prevent core dump at stage 3
Change 25x80 to 24x80
Fix setenv diagnostic
Fix Fatal to call end_dialog()
1994-10-20 19:30:56 +00:00
Poul-Henning Kamp
277a25ffe0 Now stage 2 should do it's job I hope. Havn't tested yet. 1994-10-20 06:48:40 +00:00
Poul-Henning Kamp
3a06e4e7bf Just a safety measure for me and Paul. 1994-10-20 06:14:29 +00:00