Commit Graph

761 Commits

Author SHA1 Message Date
perry
16de89f71a small (1.2M) bootfloppy Makefile 1997-11-05 19:46:37 +00:00
phil
599cb5da3d Make extract_dist use the getit information. (Correct fix) 1997-11-05 07:48:52 +00:00
jonathan
77221dcc6a * Add code to run `test(1)' on target-root pathnames.
* Change find_disks: after mouting target root, check for
  /etc/fstab in target, and abort upgrade if not found.

* Change upgrade to check if the target root has /etc.old
  before renaming the target /etc -> /etc.old.  If found, abort.
  (may indicates a failed upgrade.)

*  Add save_etc(). saves target /etc as /etc.old, then copies back
   config files we might want during upgrade, in case target is current root.

* Fix logic that fscks and mounts disks. Use subroutines to
  fsck with a warning message and ok() on continue.  Same for doing mounts.

* Fix bug in extract_dist(). Do NOT do target prefixing on the dist_dir,
  since we didn't do target prefixing when mounting it.
  (At least, NFS does't.)

* Add function to  sanity-check target root.
   Call after upgrade/install  is done.

* Change MSG_realdir to print the strerror() of any errors.
  Change target_chdir() to check if chdir() returns -1 and return errno.

* Make sure /dev exists before cd'ing there and running MAKEDEV.

* Use target_fopen() and fprintf() to write network state to disk,
  to avoid inadvertent shell escapes.

* Fix silly typo in append_to_target_file. (maybe add shell quotes?)
1997-11-05 07:28:20 +00:00
thorpej
6b225ed22d Add Wilfredo Sanchez to supporting cast. 1997-11-05 06:29:05 +00:00
perry
da801e20c2 Change default bootfloppy to 1.44M, and add a 1.2M "small" bootfloppy. 1997-11-05 03:39:51 +00:00
phil
443efc08d3 Complete -r flag addition, info was static, now path names are runtime
constructed so -r flag makes a diffference in the distribution directory.
1997-11-05 01:23:06 +00:00
phil
9e973cbe0a - extract_dist now uses dist_list to know which to extract
- Added -r rel flag to change the release tag on the tar files.
- Added Usage
- Fixed a menu bug (missing exit)
- Made target_expand available to all functions to produce correct
	file names.
1997-11-04 01:39:03 +00:00
jonathan
73cb26cbd6 Installation termcap file with entries for rcons on pmax framebuffers. 1997-11-03 10:57:02 +00:00
pk
c9c773124f Add nfsd' and nfsiod' to the list of relocated files. 1997-11-03 10:15:23 +00:00
jonathan
409430d612 * Get current root device via sysctl(). Use it in target prefixing code.
Add more #ifdef DEBUG to target-prefixing.
* Fix niggle in creating a new resolv.conf: ctime()'s result ends in '\n',
  so don't include one after the %s for the timestamp.
* Change upgrade: add the same ``disk stuff done'' message used in install,
  so the user knows what's going to happen.
  (is a more tailored message useful?)
1997-11-03 09:47:00 +00:00
jonathan
a5f389631d Make install() use msgc, not inline text, for the `disks done' text.
Expand that text, making clearer what sysinst is done, what kind of
errors to double-check for before proceeding, and what we're about to do next.
1997-11-03 06:18:08 +00:00
jonathan
3e74d705e2 * Clean up target.c to use a single consistent path-prefixing subroutine.
* Correct arg typo in mv_within_target_or_die().
* Add new path-prefixing entrypoints to fopen(), collect(), and do mounts.
* Use the above.  MI code is now clean of explicit references to /mnt.
* Lint: add `const' to collect()'s pathname arg.
  include <stdio.h> in factor.c, now that defs.h uses FILE*.
1997-11-03 02:38:41 +00:00
jonathan
2d4f71002f * Use getmaxpartitions() instead of explicit constant 8.
* Put newfs-and-mount code into a separate function, in case
  we want to support non-ffs filesystems.
* Check for the currently-mounted root, and don't newfs or mount it.
  Assumes md code will also avoid changing  that partition.
1997-11-03 00:04:53 +00:00
jonathan
17aa1054d7 Add more target_wrapper functions, to do
* renames of files from one pathname within the  target to another
    (e.g., mv_within_target_or_die("/etc", "/etc.old");
  *  check to see  if a partition name like "sd0a" is the current root
  *  Duplicate a file from the current root into the target root
     (for copying /netbsd from RAMdisk into the  target).
     A no-op if the root is the install target).
Start using these where appropriate.

Change net.c to avoid losing any information when updating network
config files: where possible, do appends to files that might have more
info than we got from the user (e.g., /etc/hosts.)

Where possible, add comment saying file was created/modified by sysinst.
1997-11-02 23:43:11 +00:00
phil
78a713a664 Add missing space in file name list. 1997-11-02 22:19:39 +00:00
kleink
19a9982852 Sync (basename(3), dirname(3)). 1997-11-02 16:56:48 +00:00
kleink
aac78bc58f Add <libgen.h> header, from XPG4.2. 1997-11-02 16:34:21 +00:00
pk
d0365b21f4 RELEASE => _VER 1997-11-02 12:28:45 +00:00
pk
83aa272495 Point at the pre-built `/usr/mdec/boot.net' file in the "diskless setup"
section.
1997-11-02 12:18:51 +00:00
jonathan
326ca1c813 Snip out common code that fetches and unpack setss in both upgrade()
and install().  Put it into a new function ``get_and_unpack_sets()''.
Fixes a typo (/sbin/umoount) in the upgrade() version.
1997-11-02 09:41:57 +00:00
jonathan
1b07f33492 copyright boilerplate (oops) 1997-11-02 08:30:39 +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
d9dbb24102 Add target path-prefixing code. Hide whethers the installation target
disk is at /mnt or / from the rest of sysinst.
1997-11-02 08:12:06 +00:00
jonathan
8315a3dff0 Add two variants of run_prog() for errors that aren't otherwise handled:
run_prog_or_die() -- aborts  if  system() returns an error.
   run_prog_or_continue() -- prints a  warning that installation may
	have failed but lets the user continue.  Suitable for running mkdir.
1997-11-02 03:45:27 +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
mikel
0297ab5245 remove libossaudio_pic.a 1997-11-01 05:32:54 +00:00
mikel
ff0c290972 remove libossaudio.so.0.0 1997-11-01 05:25:54 +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
pk
cb69025d2b Remove unneeded link to `/usr/sbin/installboot' 1997-10-31 21:53:25 +00:00
mhitch
6d3db8915a Initial updates to document install and upgrades using the MI miniroot.
Update revision numbers for 1.3.
1997-10-31 21:15:46 +00:00
mhitch
739aea03d8 Update for version numbering and a few typos. 1997-10-31 17:26:25 +00:00
phil
0b0e2488e2 Add missing parameter to function call msg_display in menu editfsparts. 1997-10-31 17:15:10 +00:00
carrel
6bd1dfb199 add in shared libs 1997-10-31 16:59:49 +00:00
bouyer
de60757b60 Add tl man page (pointed out by Jonathan Stone). 1997-10-31 08:29:41 +00:00
mhitch
94d78ed95e Mount needs -u option to make root writable. 1997-10-31 04:41:47 +00:00
phil
bc4e8c4cf1 Bug fixes for distribution sets from floppy, nfs and cdrom. 1997-10-30 00:03:32 +00:00
veego
39f42733f4 Increase the recommended size of the /usr partition and rewrite the
comment for the CyberVision64/3D after the Console mode works now.
1997-10-29 20:29:20 +00:00
mhitch
185510c972 Fix md_installboot() to use the correct arguments for installboot. 1997-10-29 17:36:56 +00:00
jonathan
6d61af0fc0 Add temporary, alpha-release, xserver set entries for old X11R5 pmax servers:
Xcfbpmax, Xmfbpmax, Xsfbpmax
  X11R5 rgb.{dir,pag} DBM-style font database
  symlink /store -> /usr/X11R6 (used by ancient, unpatched, X11R5  binaries)
1997-10-29 05:32:26 +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
phil
d626993ee4 Sync with current state. Includes selection of distribution sets, tweeks
to disk detection, and floppy load.
1997-10-29 01:06:42 +00:00
veego
c9872b6bf8 Add xcontrib to xlists. 1997-10-28 17:29:45 +00:00
veego
b8f7ab59c5 New set for xsrc/contrib. 1997-10-28 17:27:35 +00:00
veego
e908462af2 To be consitent with the other sets:
- use ./usr and not usr
- remove duplicated directory entries
1997-10-28 13:43:44 +00:00