Commit Graph

35 Commits

Author SHA1 Message Date
Jordan K. Hubbard
b9ecc1ed61 Make sure a partition we're about to mount on will always exist on the
user's system.  Make Mkdir() selectively not die in case of failure.
1995-01-14 10:31:29 +00:00
Jordan K. Hubbard
b4314abf31 Bring the 2.0 RELEASE version back into -current. Now I just need
to resurrect my changes for the last snapshot, which were unfortunately
lost in a forest fire on time.
1994-12-27 23:26:59 +00:00
Paul Richards
6dd3a38fff Implemented buttons for all the screens.
Could do with some cosmetic tuning regarding placement and things.

Fixed some dialog code (from Andrew).
Pass mountpoints onto stage2 in a struct fstab *mounts[]
Fix all the field connections to conform to the new L&F document.
1994-11-19 17:29:19 +00:00
Paul Richards
d35f2e963a I hope this gets my changes merged back into the current branch.
Removed a layer of menus.
Auto select partition to install into -- first FreeBSD partition
in MBR table. Abort if no FreeBSD partition.
Added a F_BUTTON type.
Fixed up label editor to show free space properly.
Fixed a few bugs.
1994-11-19 05:20:13 +00:00
Andrey A. Chernov
f3dc909d25 Fix more dialog bugs and core dumps introduced by previous commiter 1994-11-19 00:09:00 +00:00
Andrey A. Chernov
4195601de8 Use dialog_clear_norefresh() if possible 1994-11-17 23:36:49 +00:00
Andrey A. Chernov
5007f4061c Use -1, -1 where is possible 1994-11-17 19:44:55 +00:00
Jordan K. Hubbard
c1b05c7986 1. Add check to see if CPIO floppy extracted properly.
2. See if swapon() failed and at least print a diagnostic.
3. Use -1 instead of strheight()/strwidth() everywhere.

Reviewed by:
Submitted by:
Obtained from:
1994-11-17 14:12:38 +00:00
Andrey A. Chernov
8b6840ff55 Remove str{width,height} functions, they are in libdialog now.
It is only first hook for new autosizing changes, more changes
will follow.
1994-11-16 14:42:22 +00:00
Jordan K. Hubbard
b366e542cc My last cosmetic changes. 1994-11-07 13:48:54 +00:00
Poul-Henning Kamp
5529c6bf45 Always clear before we "TellEm()" 1994-11-07 04:53:23 +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
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
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
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
Andrey A. Chernov
10a42e2218 Now autosizing code works with const strings too.
Prototype added.
1994-11-03 00:28:05 +00:00
Poul-Henning Kamp
99133b4e1e a missing star. 1994-11-02 22:06:24 +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
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
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
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
f195e2e513 Don't make too big windows, count actually text width/height 1994-10-31 04:49:15 +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
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
c21d850179 Clear screen on exit per Paul request 1994-10-24 03:55:25 +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
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
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
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
7e007f1ded Integrate my code a lot more with Pauls. (I have left sysinstall.c
here, even though it isn't used in the Makefile for Paul not to have
an heart-attack when he wakes up. :-)

Way to go still...
1994-10-20 05:00:00 +00:00
Poul-Henning Kamp
8ae68834f1 The beginning of some structural changes, and the merge of my code into
Pauls.
1994-10-20 02:51:55 +00:00