summaryrefslogtreecommitdiffstats
path: root/sbin/sysinstall/stage1.c
Commit message (Collapse)AuthorAgeFilesLines
* recording cvs-1.6 file deathpeter1995-12-301-229/+0
|
* Correct positioning of text, update version.jkh1995-01-141-1/+1
|
* Bring the 2.0 RELEASE version back into -current. Now I just needjkh1994-12-271-205/+185
| | | | | to resurrect my changes for the last snapshot, which were unfortunately lost in a forest fire on time.
* Changes to match Pauls code. Had to "globalize" the variables for thephk1994-11-191-2/+1
| | | | mountpoints.
* Implemented buttons for all the screens.paul1994-11-191-18/+24
| | | | | | | | 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.
* I hope this gets my changes merged back into the current branch.paul1994-11-191-103/+11
| | | | | | | | | 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.
* Fix more dialog bugs and core dumps introduced by previous commiterache1994-11-191-11/+11
|
* Fix dialog things broken by previous commiterache1994-11-181-7/+9
|
* Merge in my new mbr and disklabel code.paul1994-11-181-364/+224
|
* Use dialog_clear_norefresh() if possibleache1994-11-171-9/+9
|
* Use -1, -1 where is possibleache1994-11-171-8/+8
|
* Don't continue if we don't get a /, swap and a /usr or 80Mb in /.phk1994-11-121-4/+35
|
* Cosmetic.jkh1994-11-071-1/+1
|
* Added a (H)elp function to the fdisk/disklabel code, much needed, now I onlyphk1994-11-051-4/+37
| | | | | | | | | 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.
* Fix more mongoloid coding style.jkh1994-11-021-2/+5
| | | | | | | | 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.
* More miscellaneous changes. Clear the screen in some appropriate spots.jkh1994-11-021-2/+2
|
* Get stage0 and stage5 working.jkh1994-11-021-235/+241
| | | | | | 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! :-)
* Public apology:phk1994-11-011-28/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fixed another bunch of problems. I belive we are in a working shape now.phk1994-10-291-3/+3
|
* Fixed to make sysinstall work again. Notable changes:phk1994-10-291-0/+1
| | | | | | | | | | | | | | | | | | | | | 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.
* Clean up the mess from the previous commit which used a out of syncpaul1994-10-261-1/+2
| | | | | | patch file. Now, we should be able to configure disklabels using the editor.
* Completed disklabel configuration editor. The editor is working but thepaul1994-10-261-5/+8
| | | | | glue code to pass the edited configuration onto the following stages isn't done yet.
* Remove a couple of display_disklabel call usedpaul1994-10-241-2/+0
| | | | | | | for debuging. Reviewed by: Submitted by: Obtained from:
* Round partitions to the next whole cylinder.paul1994-10-241-0/+2
| | | | | | Fill in devicename and mountpoint structures from default_disklabel() so stage2 code knows what to do. New file label.c for disklabel editing code.
* Fix all the bugs introduced by the source shuffle.paul1994-10-211-37/+47
| | | | | | | | 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.
* remove unneded includesache1994-10-201-9/+7
| | | | | | | | 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()
* Integrate my code a lot more with Pauls. (I have left sysinstall.cphk1994-10-201-0/+327
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...
OpenPOWER on IntegriCloud