Commit Graph

225 Commits

Author SHA1 Message Date
Jordan K. Hubbard
02006c7644 Change TITLE to something more rational. Make sysinstall.c use it instead
of its own hardcoded constant.
1994-11-08 11:44:04 +00:00
Poul-Henning Kamp
46c134684c Always say the magic word at the end. 1994-11-08 10:14:19 +00:00
Jordan K. Hubbard
4bb50116ba Change Fatals to Warnings. 1994-11-08 07:44:57 +00:00
Jordan K. Hubbard
295acba8ba Fixup:
1. Don't use kernel name for headers - I'm running 2.0.1-Development,
   not ALPHA, and this messes things up.
2. The last dialog was too big, make it a little smaller.  Just cosmetic,
   while I'm in here.
1994-11-08 03:41:52 +00:00
Jordan K. Hubbard
b366e542cc My last cosmetic changes. 1994-11-07 13:48:54 +00:00
Jordan K. Hubbard
7c6b6c167c Cosmetic. 1994-11-07 09:49:06 +00:00
Poul-Henning Kamp
5529c6bf45 Always clear before we "TellEm()" 1994-11-07 04:53:23 +00:00
Poul-Henning Kamp
c4f1695923 Only Mount relative to Written disklabel. 1994-11-07 00:41:38 +00:00
Poul-Henning Kamp
44a88072bd Never have more than one active partition. 1994-11-06 23:33:20 +00:00
Andrey A. Chernov
7bcf49f368 After fixing curses bugs use LINExCOLS in show file 1994-11-06 15:35:50 +00:00
Jordan K. Hubbard
1d317df96c If a file is not present, it's not an error. This means you're using the
1.2MB floppy image.
1994-11-06 11:09:18 +00:00
Poul-Henning Kamp
af3b22a544 remember to tell dialog that we leave. 1994-11-06 04:34:46 +00:00
Jordan K. Hubbard
e9b2310837 Retreat from the idea of using gzip'd ascii files. 1994-11-06 04:10:13 +00:00
Poul-Henning Kamp
6b25616b3b label.c Make sure we always show 8 disk-partitions.
main.c	sanitize the logic of what we do when:

if(getpid()!=1) do stage0 & stage1  (very useful actually)
else if (floppy-marker-file is there) stage0-2, reboot
else stage3-5
1994-11-06 04:05:45 +00:00
Jordan K. Hubbard
a0c7a3b3cf Sigh. My error message printing was still wrong. Wipe the sleep from
my eyes and do this properly (debugging is especially difficult when you have
to burn a floppy every time you want to test your changes! :-( ).
1994-11-06 02:24:45 +00:00
Jordan K. Hubbard
e294dc8a7c Don't use a shell, silly, we don't have one! 1994-11-06 01:34:14 +00:00
Jordan K. Hubbard
feec7965b6 Tweak tweak.. 1994-11-06 01:16:30 +00:00
Jordan K. Hubbard
9d8db7f2f4 I misunderstood dialog_prgbox() - fix it. 1994-11-05 23:56:40 +00:00
Jordan K. Hubbard
b2e3ee0a69 Make ShowFile() now show gzip'd text files. This should save a fair
bit of space on the install floppy.  Modify stage0 and the target names
accordingly.
1994-11-05 23:12:10 +00:00
Andrey A. Chernov
e897bbe2ee Enable back dialog_msgbox in TellEm, real problem was delwin
into edit_line
1994-11-05 23:09:26 +00:00
Jordan K. Hubbard
f90d7a2f31 Whoops! Knew I forgot something.. Bump the menu size. 1994-11-05 08:20:54 +00:00
Jordan K. Hubbard
3f5bee85a0 Add a chance to read the release notes, too. 1994-11-05 08:20:08 +00:00
Jordan K. Hubbard
33d3e14480 I'm not sure if we're just supposed to fall off the end like this,
but at least return something.
1994-11-05 07:34:02 +00:00
Jordan K. Hubbard
6e213286f4 Make stage5 go either to a shell, or on to the bindist installation. 1994-11-05 07:23:58 +00:00
Jordan K. Hubbard
0fe610487f Make this work the way it was really supposed to - less intrusively. 1994-11-05 07:03:55 +00:00
Poul-Henning Kamp
73ba88d5d1 Use /DISKSPACE.FAQ as help-file in the disk-editor. 1994-11-05 06:03:06 +00:00
Jordan K. Hubbard
15196a0bab Change the logic for how error messages are printed so we can actually
see them.
1994-11-05 05:46:12 +00:00
Poul-Henning Kamp
21bd442d86 Cosmetics: edit_line() does standend() when done; 1994-11-05 03:59:34 +00:00
Poul-Henning Kamp
4c78915acc Added a (H)elp function to the fdisk/disklabel code, much needed, now I only
have to write the text-file it will dump on you.
Stopped using cleartoeol in AskEm(), just as a test to see if the screen
looks more sane.
Added a attempted auto-recognition of /, swap and /usr for the first disk
where it looks sensible.  Logic of this might need to be improved.
Made a "ShowFile()" which will not bomb/ignore you if the file isn't there.
1994-11-05 03:34:22 +00:00
Poul-Henning Kamp
7da9aa9e49 Fixed a ghastly mistake. Edit_line() would "delwin(window)". Bad move
buddy, you'd better not call with stdwin then!   fixed now.
Seems like dialog is a LOT more rational now.
1994-11-05 03:13:33 +00:00
Poul-Henning Kamp
70da208d21 Fix a potential bug in stage2.
disable the dialog_msgbox in TellEm(), until we find out why it
hangs on second or third invocation.
1994-11-04 21:38:37 +00:00
David Greenman
5974081cea From njw@cs.city.ac.uk (Nick Williams):
/sbin/umount does not return the correct exit status due to incorrect
logic in its internals.

Further, because of the nature of the code, you *cannot* use it to
umount a directory from a union mountpoint. Well, you can sometimes,
it depends on if the directory is at the top of the union stack or not :)

Submitted by:	njw@cs.city.ac.uk (Nick Williams)
1994-11-04 17:51:37 +00:00
Andrey A. Chernov
9aa4fece6d -i case goes to background pause and acts like -a case on receiving
SIGTERM. This helps to keep CMOS clock updated before reboot.
Idea from J.Wunsch.
1994-11-03 03:16:16 +00:00
Andrey A. Chernov
512dc52632 Restore jkh's changes, now it works for const strings 1994-11-03 00:30:27 +00:00
Andrey A. Chernov
10a42e2218 Now autosizing code works with const strings too.
Prototype added.
1994-11-03 00:28:05 +00:00
Jordan K. Hubbard
bfb65cd092 Don't use autosizing code after all - it doesn't like const strings. 1994-11-02 22:39:57 +00:00
Poul-Henning Kamp
99133b4e1e a missing star. 1994-11-02 22:06:24 +00:00
Jordan K. Hubbard
fb7164eda6 Last changes before going to bed. Disk label editor should now work
a fair bit better.
1994-11-02 11:00:35 +00:00
Andrey A. Chernov
fb833e7272 Restore back -i, -a 1994-11-02 10:04:11 +00:00
Andrey A. Chernov
f30089ed19 Restore back -i, -a 1994-11-02 09:40:06 +00:00
Jordan K. Hubbard
045e459c30 Stage0 can't dump you into a shell. There isn't one. Just reboot.
Stage5 didn't have a large enough dialog box.  Fix that.  Also use
Andrew's autosizing code.
1994-11-02 09:05:49 +00:00
Poul-Henning Kamp
5a9ee65437 Make MkDir() actually do "mkdir -p", so that we can mount on /home/foo, even if
/home isn't a mountpoint.
1994-11-02 08:52:15 +00:00
Jordan K. Hubbard
207d0a541b Fix more mongoloid coding style.
Make a stab at getting free space display to work.
Forward decls to shut compiler warnings up.
Increase some fields to width 2 in order to get edit_line to let you
actually edit them.
Sanity check values and yell at bonehead users.
1994-11-02 08:15:46 +00:00
Andrey A. Chernov
9e92d9eb90 Restore things broken by phk, please use patches to 'cvs update'
instead of whole files commiting!
1994-11-02 07:37:40 +00:00
Andrey A. Chernov
00bc21cafc Restore things broken by phk, please use patches on 'cvs update'
instead of whole files!
1994-11-02 07:34:01 +00:00
Jordan K. Hubbard
eae3147757 More miscellaneous changes. Clear the screen in some appropriate spots. 1994-11-02 07:15:56 +00:00
Jordan K. Hubbard
0782333682 Get stage0 and stage5 working.
Try to reformat this code to be a little more human.  Weird europeans
have been writing this, and can't even seem to agree a single coding
style for more than 4 consecutive lines! :-)
1994-11-02 06:19:53 +00:00
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