Commit Graph

28 Commits

Author SHA1 Message Date
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
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
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
simonb cd110ecf63 Use a default of 32MB for the root filesystem with a custom partition
layout.
1997-11-19 14:06:47 +00:00
simonb 2ddb44e7f3 Backout previous chance with distrib set location. The should be done
in a MI manner when we work exactly what that is...
1997-11-17 21:27:47 +00:00
simonb cd1152e9eb Change the tar command that copies the diskimage files to the target
disk to use reletive pathnames to stop the "removing /" warnings.
1997-11-16 12:53:07 +00:00
simonb 06f521afad Distribution sets are in ..../binary, not ..../binary/Tarfiles 1997-11-16 12:50:05 +00:00
simonb b2ba0b82ff Fix typo in a comment. 1997-11-14 23:47:49 +00:00
simonb 0c8e3514d7 Reposition some menus (the "change a partition" and "change distribution
sets" menus) so that the bottom of the menu doesn't go below the 24th
line of the screen.
1997-11-13 04:23:39 +00:00
jonathan 61531e7b2d fix typo ("/netsbd"). Use target call to copy /tmp/.hdprofile to target root. 1997-11-10 08:16:21 +00:00
jonathan f3e413c744 Only duplicate /install.usr into the target /usr if we /install.usr exists. 1997-11-10 06:08:55 +00:00
jonathan 8f4cc24742 Change dist_list[] order in all md.h files to unpack `base' before `etc'. 1997-11-10 03:57:00 +00:00
jonathan 35c15567d3 Better, more correct pipeline for usr/bin files, from Simon Burge. 1997-11-10 01:52:46 +00:00
jonathan b1def2c4bb Workaround for MI code running "/usr/bin/tar".
If installing from a pmax diskimage as both current root and target root,
the diskimage /usr/bin/tar is hidden underneath the target /usr mountpoint
when it's time to untar distribution files. From a comment in the change:

   Make sure any binaries in a diskimage /usrbin get copied
   into the current root's /usr/bin. (may be same as target /usr/bin.)
   The rest of sysinst uses /usr/bin/{tar,ftp,chgrp}.
   We cannot ship those in /usr/bin, because if we did
   an install with target root == current root, they'd
   be be hidden under the  target's /usr filesystem.

Requires updated diskimage build script which populates /usrbin with
tar, gzip, gunzip, ftp, and chgrp (all statically linked.)
1997-11-10 01:07:12 +00:00
jonathan cb086002a9 Add annoyingly verbose comments to pmax md.c and md.h, to serve as
documentation for porting to more hosts.

Define DISKLABEL_CMD in MD code.
CAVS: ----------------------------------------------------------------------
1997-11-07 08:43:46 +00:00
jonathan 2d01e4dc90 * Change sysinst MI code to use new install-target-filesystem access functions.
Add  target.c to Makefiles.

* Minor fixes:
  * Fix buglet in disks.c: make sure the target /etc exists before
    touching the target's /etc/fstab. (Could be even cleaner.)

   * If the target root is on /, don't copy our temporary /etc/resolv.conf
     to the target /etc/resolv.conf. (Could be even cleaner.)
   * Don't write the DNS hostname into /etc/defaultdomain.
     DNS  search paths are often not the same as YP group names.
1997-11-02 08:20:40 +00:00
jonathan cd7def2863 Use run_prog_or_continue to write bootblocks. pmaxes upgrade/install
from diskimage or NFS, so It's not absolutely fatal for the bootblock
update to fail.
1997-11-02 08:16:39 +00:00
jonathan a1d0279446 Add missing "xfont" set. Back in consistency with the message file.
(Why don't the curses menu for state and option match up horizontally?)
1997-11-02 08:15:02 +00:00
jonathan 57c4aa7f69 On pmax, write bootblocks to raw C partition, not A partition.
pmax still writes bootblocks with disklabel -B, not installboot.
1997-11-02 02:21:04 +00:00
jonathan 8f766ae320 Use max of (secperunit, (ntracks*secpertrack*ncyl)) when computing
RAW_PART for new labels, instead of just the latter.
Avoids shrinking RAW_PART label with pmax kernel-supplied default
labels or with already-labelled disks.

XXX Get real incore label, instead of default label instead (or as well)?
1997-11-01 23:44:23 +00:00
jonathan e1ba034070 Add xfont, xcontrib sets to compiled-in list. 1997-11-01 23:39:57 +00:00
phil 2cb88494a3 Tweeks to editing file system partitions, fix for PR4405, adding a method
to reselect the allocation multiplier while editing a disklabel.
1997-10-31 23:00:32 +00:00
jonathan a8e1a40058 Change MD label-edit code from i386 convention (d=whole disk, c=bsd slice),
to 4.3BSD-style (BSD uses whole disk, 8 partitions, c=RAW_PART, d=/usr).
Initialize variables appropriately.

May be a good starting template for sparc, vax, others?

Use symbolic defines to allow changing the partition used for /usr (to
add a /var partition, or for consistency with i386).
1997-10-31 22:21:19 +00:00
phil 0b0e2488e2 Add missing parameter to function call msg_display in menu editfsparts. 1997-10-31 17:15:10 +00:00
jonathan 945dbf344e Old pmax-specific changes from my tree:
* Use md_make_bsd_partitions() code lifted from the i386 version,
    modified to set D partition size.
  * Add the MD messages used by the above to sysisnt/arch/pmax/msg.md.eng.
  * Add X11 sets xbase, xserver, xcomp to arch/pmax/md.h.
1997-10-29 03:06:35 +00:00
phil 2db6dfbd84 Sync to current state. Tweeks for disk discovery, ... 1997-10-29 01:09:51 +00:00
jonathan 0c8d4acbc4 sysinst support for pmax, pass 0. 1997-10-27 03:34:32 +00:00