Commit Graph

187 Commits

Author SHA1 Message Date
cgd 9542802224 Moved from ./arch/sparc/menus.md.eng,v 1999-06-20 05:48:08 +00:00
cgd 667ca88f62 Moved to ./arch/pmax/msg.md.en,v 1999-06-20 05:48:07 +00:00
cgd 947338be21 Moved from ./arch/pmax/msg.md.eng,v 1999-06-20 05:48:06 +00:00
cgd 827fb383e3 Moved to ./arch/pmax/menus.md.en,v 1999-06-20 05:48:06 +00:00
cgd d80758862c Moved from ./arch/pmax/menus.md.eng,v 1999-06-20 05:48:05 +00:00
cgd caa48ae9df Moved to ./arch/pc532/msg.md.en,v 1999-06-20 05:48:03 +00:00
cgd 95c31e6136 Moved from ./arch/pc532/msg.md.eng,v 1999-06-20 05:48:02 +00:00
cgd 25bbeb1bc7 Moved to ./arch/pc532/menus.md.en,v 1999-06-20 05:48:02 +00:00
cgd 64c6534433 Moved from ./arch/pc532/menus.md.eng,v 1999-06-20 05:48:01 +00:00
cgd 185d9f5c26 Moved to ./arch/i386/msg.md.en,v 1999-06-20 05:47:59 +00:00
cgd 5b971a4435 Moved from ./arch/i386/msg.md.eng,v 1999-06-20 05:47:58 +00:00
cgd 7cede0dbab Moved to ./arch/i386/menus.md.en,v 1999-06-20 05:47:57 +00:00
cgd 88f46e6a38 Moved from ./arch/i386/menus.md.eng,v 1999-06-20 05:47:56 +00:00
cgd 1ca2706d9b Moved to ./arch/arm32/msg.md.en,v 1999-06-20 05:47:53 +00:00
cgd 14205fc529 Moved from ./arch/arm32/msg.md.eng,v 1999-06-20 05:47:52 +00:00
cgd 34c597ab48 Moved to ./arch/arm32/menus.md.en,v 1999-06-20 05:47:51 +00:00
cgd 8af3c264a7 Moved from ./arch/arm32/menus.md.eng,v 1999-06-20 05:47:50 +00:00
cgd 5fd4cb736d Moved to ./arch/alpha/msg.md.en,v 1999-06-20 05:47:49 +00:00
cgd 737bb75981 Moved from ./arch/alpha/msg.md.eng,v 1999-06-20 05:47:48 +00:00
cgd 4d6228ce87 Moved to ./arch/alpha/menus.md.en,v 1999-06-20 05:47:47 +00:00
cgd 953eba11a8 Moved from ./arch/alpha/menus.md.eng,v 1999-06-20 05:47:46 +00:00
cgd ab6f2f5d56 since all horizontal placement specs here are attempts to center the menu,
just stick with the new default (horizontal centering).
1999-06-20 05:44:26 +00:00
cgd 4ffb63388c kill bogus spaces before and after menu titles. the menu code now positions
titles correctly.
1999-06-20 01:23:32 +00:00
cgd 8d188fe03a fix a slight bogon in the geometry approval message. (This is the
correct disk -> This is the correct geometry.)  (Thanks to tls and
wrstuden for help w/french.)
1999-06-19 01:23:52 +00:00
cgd c42289089f nuke md_copy_filesystem()'s contents. it now just returns 0. 1999-06-18 05:08:57 +00:00
bouyer 145e79f160 Sync with the english version. 1999-05-18 18:07:25 +00:00
fvdl e254cfed65 Since our mbr code and bootselector are only 512 bytes long, only
read/write that much. Previously, too much was written back to
disk (although it didn't do any harm because of the sequence
of execution).

Also, upgrade the MBR type from 386bsd -> NetBSD if needed during
an upgrade operation.
1999-05-02 15:26:22 +00:00
fvdl 337300d376 Change partition type if we're installing into an old 386bsd partition.
Check if there's no active partition after MBR editing.
Ask for own MBR to be installed if we're booting from out of CHS range.
Ask for bootselector to be installed if > 1 OS, and configure it.
1999-05-02 13:07:15 +00:00
abs 4a2304f936 Cleanup to work on sparc again 1999-04-26 05:04:50 +00:00
ross 944dc00f76 * Umm, the installboot(8) run is important. Don't ignore errors!
* Use the current boot program schema.
1999-04-23 19:10:54 +00:00
tsubai 9751244932 md_post_newfs() should return int. 1999-04-23 01:38:35 +00:00
simonb eec6041cf5 An empty stub routine should return success not failure! 1999-04-21 11:55:07 +00:00
ws aded74faa1 Update the set split counts for floppy installation to match reality. 1999-04-19 13:17:09 +00:00
simonb c6f8d15017 md_post_newfs() now returns int after the latest round of changes. 1999-04-16 15:42:32 +00:00
ender 3a4b99f66e Make this compile again. 1999-04-16 08:29:15 +00:00
nathanw d69ac94192 Make this compile again (a return -> return foo was missed when
md_copy_filesystem was made to return an int in 1.10).
1999-04-15 05:01:04 +00:00
bouyer 5c7e21f9cb - Add a message explaining the user how to specify units for inputs
- in run_prog(), do an explicit wclear(stdscr); wrefresh(stdscr);
  before launching subwindows. This seems to solve all the display
  problems associated with run_prog().
1999-04-13 14:49:56 +00:00
bouyer be743ed36b - Add 2 functions in label.c, getpartoff()/getpartsize() used to let the user
enter partitions offet and size. The user can chose unit independantly of
  the unit used for display ('M'/'c'/'s'). These functions do the proper
  bound checks and alignement/roudups. Used in the edfspart menu and
  i386 md_make_bsd_partitions() (other ports should do the change as
  well).
- now that getpartsize() does the rigth thing, kill the swapadj hack (which was
  buggy anyway).
- in i386 md_make_bsd_partitions(), don't propose defaults that don't fit on
  the disk. If the disk is too small, fallback to custom instead.
- fix a bug in mbr.c, where the partition flags would not have always been
  reset. sysinst created me a MBR with 2 active partition. The boot code
  doesn't like it :)
- added a message for eventual mount failures.
- killed donewfs and extracting messages, as we run  the commands in a
  subwindow these messages just flashed on the screen.
- Changes a few exit(1) to return(1), to give the user a second chance.
- added msg_clear() or wclear(stdscr) in a place or two, to make
  display a bit nicer.
- in run_cmd(), if the command succeeded, don't wait for the user to
  press enter.
1999-04-11 22:40:19 +00:00
jonb fb618761b7 Make this compile again... fix a couple of small typo's 1999-04-09 12:44:44 +00:00
bouyer 72d28a06a3 Oups, missed a lot of run_prog() calls when I changed the prototype. 1999-04-09 10:43:56 +00:00
bouyer 04f9354ab3 Some fixes for the do_install() function:
- Make all the functions called from do_install() return an error code,
  so that we can abort install if something went wrong.
- Add a 'errstr' argument to run_prog(), which if not NULL is displayed
  with msg_printf() and followed by process_menu(MENU_ok) if the command fail.
  Used to warn the user that the current action is aborted.
- in a few places use msg_display() or msg_printf() rather than printf.
  It seems that stdout/stderr are not always pointing to the active curses
  window.
- garbage-collecd unused messages, add a few new one (error handling).
XXX only tested on i386. Other md parts should be tested as well.
1999-04-09 10:24:38 +00:00
bouyer a17071efea Sync with .eng versions. 1999-04-08 12:54:52 +00:00
tsubai b8f166d4da Fix menu item number. 1999-04-06 09:31:40 +00:00
simonb 277c24dc4c Don't include <sys/disklabel.h> - "defs.h" does this us with the
right #defines so that we get the filesystem type names.
s/fstype/fstypenames/
1999-04-05 06:24:17 +00:00
fvdl a5d73e00eb Rework the MBR code, and some of the labelling code.
* Use structures, not 2-dimensional arrays..
	* Use the DIOCGDEFLABEL ioctl to get the disk information,
	  to avoid confusion with (older) labels.
	* Don't ever call fdisk for partitioning. This was the
	  source of much confusion.
	* For the i386, use the BIOS geometry information passed by
	  the bootblocks.

Lots of things left to do, but it's a start.
1999-03-31 00:44:48 +00:00
ender c32aac7964 Uncomment some file copies now that the files actually exist. 1999-03-26 08:52:44 +00:00
mark f7644e2429 Allow various X11 sets to be installed. 1999-03-26 03:03:37 +00:00
mark 1f8be737e2 Pull in cgd's improved filecore bootblock checksumming code from
sys/arch/arm32/arm32/disksubr_acorn.c
1999-03-26 03:02:45 +00:00
ender e7a6b35eae The sysinst utility for NetBSD/mac68k. From Bob Nestor <rnestor@metronet.com>
in PR #6867 with some cleanup by me.
1999-03-22 08:37:31 +00:00
fvdl a4ca20e23e Start cleaning up geometry code by storing the disk geometry in a structure
with proper names, not an integer array with is numerically indexed.
1999-03-14 14:19:05 +00:00
garbled ed77015dc8 When special casing these commands with do_system, remember to add
manual logging and scripting calls, so everything is recorded in it's
proper location.
1999-01-25 23:55:10 +00:00
garbled 851ee9e397 1) Remove all vestiges of tar from src/distrib. Use pax and appropriate
commandlines for all tar operations.  (work supplied by Matt Green)
2) Update arch/*/md.c to deal with new sysinst/run.c.  Special case
anything that needs to do a redirect or a pipe.
3) #if 0 some unused code in target.c. This code will need to be updated,
or special cased with do_system.

Big thank you to Matt for all his work on this.
1999-01-25 23:34:20 +00:00
garbled 5a277f5dfd Fix thinko. Thanks to mrg. 1999-01-23 15:54:31 +00:00
garbled 10218daeef Correct some oversights in the sysinst conversion. arch/alpha/md.c and
others allready had these fixes.
1999-01-23 06:19:17 +00:00
tsubai da7b796faf Uncomment X11 stuff. 1999-01-21 08:55:40 +00:00
garbled 865c31ac7b This change includes the following:
Scripting and logging functionality for sysinst.
Child programs are run in a "display window" so you can actually see what
	they did before the screen flashes back and you loose it all.
Lots of curses fixups.  Removed nasty endwins that mangled the tty upon
	rentry.
Change the yes/no box to accept Y or N, and not require cursor motion to
	decide one or the other.
Perform curses redraws when doing things that could cause the kernel to
	spew printfs onto your screen.
1999-01-21 08:02:17 +00:00
tron 25e26cd4d4 NetBSD-current uses 169 as MBR partition ID, not 165.
Fixes PR install/6737 by Soren S. Jorvang.
1999-01-11 23:23:28 +00:00
ragge 42b291e36f Sysinst support for vax. 1998-11-30 22:36:00 +00:00
sakamoto 4f70b04b16 Add bebox install floppy and sysinst files. 1998-11-19 08:58:02 +00:00
bouyer e45d95cb56 Make the warning about whole-disk installation less ambigous. 1998-11-11 17:58:42 +00:00
bouyer fa7460bdff Sync with menus.md.eng 1.15, msg.md.eng 1.7 1998-11-11 16:04:41 +00:00
bouyer d9605b4cef Translation of recently-added messages, from Stephane Engel. 1998-11-10 15:06:29 +00:00
jonathan d325644fcd Fix thinko in previous commit (spelling mistake in argument name). 1998-11-08 02:55:07 +00:00
jonathan 39a8d7790a Use MI function label.c:savenewlabel() in MD code to to save labels,
now that cut-and-paste errors are resolved and MD changes unified.
Postponed for i386, pmax until 1.3.3 frozen.
1998-11-08 02:11:23 +00:00
jonathan bdc004ebc2 Fix lossage from overly-aggressie undoing of i386 'd' partition lossage:
alpha, sparc, ppc md.c files had disktab string ":sd#.." to save
disklabel sector-size, when they really need ":se#..."
(Can now make this MI.)
1998-11-08 01:45:45 +00:00
jonathan 1823e2d762 Add text to `whole disk'' vs `normal' menu that explains to the user
just what the hell sysinst is asking for.  (Why do we include the
`dangerously dedicated at all?)

Fix dangerous UI botch: make `normal' install the default, not `whole disk'.
1998-11-07 20:57:52 +00:00
jonathan 06079cb5e7 Expand messages prompting for BIOS geometry; say explicitly that it's
the BIOS that's being asked for, and that the real geometry is for
comparison only.
1998-11-07 20:17:28 +00:00
simonb df9541e68b Move all partitioning menus up by one, and add an entry (two for the
i386) so that the partition menu items match the selector letters).

XXX: All the .fr files need checking - look for the comment
	/* XXX: ENGLISH -> FRENCH */
1998-11-03 13:26:03 +00:00
erh b3edb8ba74 Add braces to make egcs happy. 1998-10-12 17:00:43 +00:00
mark 0220416488 Miscellaneous maintainance and debugging.
Fix several size / offset calculation errors.
Make some of the default partition sizes more realistic.
1998-10-06 01:43:12 +00:00
mrg a93789ab6a add a "ta=4.2BSD" to disktab. fixing choosing X sets to install. 1998-08-30 09:08:52 +00:00
tsubai 04e0026f9b Add md part of sysinst. 1998-07-29 05:41:55 +00:00
mrg 3e6e1c5a04 KNF, and don't copy filesystem. 1998-06-20 12:46:00 +00:00
mrg 5725ca5157 initial sysinst support for the sparc, based on the alpha stuff. not heavily tested. 1998-06-06 05:34:00 +00:00
fvdl f998547470 Add MD cleanup function to do some thingd once the install is done.
Only implemented for the i386; behaviour for other ports is
unchanged. For the i386, make this function remove some extraneous
files in /, and frob rc.conf to have rc_configured=YES. The defaults
are reasonable, and it saves the user having to set TERM and mount
filesystems by hand in order to be able to edit /etc/rc.conf

(XXX not very clean, but it's a workaround to be more user-friendly
 for 1.3.2)

Also adapt a few messages slightly so they apply to both situations.
1998-05-15 15:12:29 +00:00
jonathan 1483395dbe Move DOS BIOS-geometry and MBR-handling code to MI code for powerpc, arc:
* Split bios geometry and MBR partition editing code formerly in
    arch/i386/{md,fdisk}.c to mbr.c in mi  directory.
  * Leave /sbin/fdisk parsing/handling code in separate file,
    we may want to change it later. move to mi directory.
  * Create mbr.h with declarations for MBR/BIOS-geomotry code.
    #include "mbr.h" in  i386 md.h.
  * Use symbolic names for 386bsd and new NetBSD partition IDs.

Handle MBRs with both 386bsd and NetBSD partitions less stupidly.
1998-02-24 05:36:03 +00:00
jonathan 1cfa173f7c Add symbolic names for new NetBSD MBR partition ID and for Linux. 1998-02-24 04:32:22 +00:00
jonathan 0ed9642fe0 Add menu entries to md_distcustom for installing X11 sets
in menus.md.{eng,fr}, lifted verbatim from Alpha and pmax.
Give last split-floppy for each X11 set, for 1.3.

FIXME: if the number of floppies in any split set changes for 1.3.1,
syinst is hosed for 1.3.1. Same is true for any release: we can't
install from split sets if the count of floppies doesn't match
the precompiled version.

The number of floppies in a split set should be computed dynamically
from a directory listing, or read from a config file in the split
directory.
1998-02-23 22:55:09 +00:00
jonathan 98b0f2b8ad * Prune default CD path from "/Release/NetBSD/NetBSD-" back to "/NetBSD-".
* Add cp_to_target() to  copy a file from current root, to an absolute
  path relative to target root.

* Clean up alpha, arm32, i386, pmax MD code: use cp_to_target()
  NB: Alpha uses target_expand() when calling installboot.
* Add tests for target == current root. Intended to support
  `upgrade/reinstall' to current root, either for testing or easier
  minor-release upgrades. Only tested on pmax.
1998-02-20 02:33:51 +00:00
jonathan 2ce5d64f35 Pull up fixes for coment typos, punctuation, and (partial,inconsistent) KNF
from sysinst/arch/alpha/md.c.
1998-02-20 01:53:59 +00:00
thorpej bf64e85e53 XXX No xserver set for now. 1998-02-01 02:11:01 +00:00
thorpej 6aed8140af Oops, fix a few stray "arm32"s.. (Guess where I copied these files from? :-) 1998-01-31 22:30:09 +00:00
thorpej ff2548ba56 First-cut at Alpha support in sysinst. 1998-01-31 22:28:33 +00:00
matthias 675f5874b0 - call bim to install the boot program on the disk
- define DISKLABEL_CMD to make sysinst label the disk
1997-12-25 09:10:48 +00:00
fvdl 1188ad336b Copy a temporary termcap file onto the harddisk for sysinst's convenience.
Enables sysinst to be run from the harddisk itself as well (PCMCIA workaround).
1997-12-19 00:57:18 +00:00
phil 9ebbc533c7 Make sure last extension of split files matches BETA release.
(misc .ai -> .aj)
1997-12-16 01:13:58 +00:00
bouyer 4f685d31cb Sync with .eng. 1997-12-15 13:19:47 +00:00
fvdl 71e91aafda Add option to check for BIOS < 1024 root partition size limit, and
enable the user to re-edit things in case it fails.
1997-12-15 00:43:57 +00:00
fvdl 5325d6d716 Mark partition as 'set' when changing the type. 1997-12-11 02:02:22 +00:00
fvdl 385f01a1ad Mark partitions as 'set' when changing the type, otherwise the change
will get lost if you only change the type.
1997-12-11 01:36:22 +00:00
bouyer 36ddb1973c Fix some line overflow. 1997-12-10 10:38:15 +00:00
phil ead95231ed pc532 partitions and md stuff. 1997-12-10 04:36:19 +00:00
bouyer 5423c09ec6 Sync with .eng versions + correct some spellings/wording. 1997-12-05 17:37:41 +00:00
simonb b0b1d20a3c Change the tar command that copies the diskimage files to the target
disk to use reletive pathnames to stop the "removing /" warnings.
Fixes pr#4579.
1997-12-05 14:55:09 +00:00
jonathan 7bd6655894 Add check for overlapping partitions:
* Add `partinfo' type, for description of a single partition,
   so we can pass labels by reference..
 * Add label.c with label initialization, naive overlap-check code,
   and a UI entrypoint edit_and_check_label() which iterates through
   checking a label for overlaps, and if any, giving the user the choice of
   fixing them or punting back to the main menu.
 * Change return type of md_make_bsd_partitions from void to int.
   Return 0 if the partition has problems (or the user gave up on it)
   and 1 if the partition is completed and looks OK.
 * Change install() to check return value of md_make_bsd_partitions().
   If it returns zero,  print an `abort' message and return to main menu.
 * Add label.c to all ports' Makefile.

MD code tested on pmax and cut-and-pasted to other ports.
1997-12-04 11:27:56 +00:00
fvdl 0cd2d70c37 * Check for an existing MBR not by looking at the geometry, but by looking
at used partitions. fdisk may report the number of cylinders > 1024
  correctly if no translation is used.
* Print out the end of the partition as well as the size when editing things.
* Enable the user to specify the BIOS geometry if he/she wishes.
* Fix 1023 / 1024 mixup. The reason BIOSs will return 1023 is an old IBM
  convention to use the last cylinder as diagnostic cylinder. The user
  can still skip the last ('real') cylinder if specified.
* Make some messages more verbose.
1997-11-29 21:49:13 +00:00
bouyer ffd59152fd French version of the sysinst messages, contributed by Stephane Engel
<steph@Inox.darh.ensta.fr>. Just put LANG=fr in Makefile.inc to
use them.
1997-11-27 10:10:54 +00:00
bouyer f5fee9d6a1 French version of the sysinst messages, contributed by Stephane Engel
<steph@Inox.darh.ensta.fr>. Just put LANG=fr in Makefile.inc to
use them.
1997-11-27 10:10:05 +00:00
phil 1e785c32c4 Reworked partitioning issues for i386, closes PRs 4520, 4534, 4536.
Other tweeks to make install better.
1997-11-25 20:34:59 +00:00
thorpej 75dd009b1d Update for the lay-of-the-land as described in release(7). As such, move
all pathname-on-server related definitions to MI code, since they are now
defined to be consistent across all platforms.  Also, nuke the "rels" global,
since release numbers are now always specified in "long form", i.e. 1.3A
vs. 13A.
1997-11-25 06:53:07 +00:00