Commit Graph

879 Commits

Author SHA1 Message Date
cjs
2429baaaa7 Add support for bootable floppy for installs. 1997-11-17 09:47:07 +00:00
cjs
6a623f7271 Add <strings.h> where necessary, and remove support for tags. 1997-11-17 03:07:52 +00:00
cjs
f74fa34ebe Don't need real regexps on search. 1997-11-17 03:00:16 +00:00
cjs
963d5659fb Import of berkeley more(1) for use on install disks, because it's
considerably smaller than less(1), our replacement for it.
1997-11-17 02:37:15 +00:00
carrel
bace2cdf6e Create _S_VERS to hold output of osversion.sh -s
Replace all explicit version numbers with _VER or _SVER_S
for automagic expansion
1997-11-17 01:39:33 +00:00
cjs
85527948f6 Add -DSMALL versions of ftp and sh for install disks. 1997-11-17 01:35:57 +00:00
simonb
3c7dec974a Add contributors and copyrights from all pmax specific files. 1997-11-16 12:55:50 +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
c8f66d4491 Use bootp or dhcp to get some network services? (hostname, domain
name, name servers...)
1997-11-15 11:09:45 +00:00
simonb
b2ba0b82ff Fix typo in a comment. 1997-11-14 23:47:49 +00:00
veego
35168e8100 md_native_fsopts don't need a '-', because install.sub use this
variable for '-o $md_native_fsopts'.
marmoset <pygmymarmoset@geocities.com> noticed the problem with
mounting a ados filesystem.
1997-11-14 10:09:08 +00:00
simonb
5a662afa53 A few more ideas. Clean SIGINT handling, loading from mounted
filesystems and from maximum entropy - better error message handling
1997-11-14 09:32:24 +00:00
simonb
0768a55cf8 Add a token legal file so the distrib notes build on a pmax. Bigger
and better legal notes to hopefully come soon.
1997-11-14 01:03:55 +00:00
phil
a4f785ec69 Fix va_start call, PR 4477. 1997-11-13 17:26:25 +00:00
chopps
3749cf660a fix couple typos 1997-11-13 14:38:01 +00:00
leo
f1f734f05a Save +/- 70Kb on miniroot.....
- Use init_s
  - Link etc/pwd.db etc/spwd.db
1997-11-13 13:56:52 +00:00
veego
b8356b176f - s/samples\/ipf/examples\/ipf/ and remove the ./usr/share/samples entry
- Added examples files from the base set
- Added missing ipf examples from the import of 3.2
1997-11-13 09:45:48 +00:00
veego
5846c8699a - s/samples\/ipf/examples\/ipf/ and remove the ./usr/share/samples entry
- Move the /usr/share/examples 'files' to the misc set
1997-11-13 09:44:51 +00:00
jonathan
ec0c3a8489 Add README.pmax. Delete obsolete Xsfbpmax server (Xcfbpmax handles both.) 1997-11-13 05:01:46 +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
thorpej
7ef7ed7c0b Add ./usr/share/examples/... 1997-11-13 03:30:08 +00:00
jonathan
35fa360c0b * Create /mnt2 before unpacking sets, in case it's not on install media.
* Create target /kern after creating target /etc/fstab entry for /kern.
* Check for more  files in target when done: /etc/{rc,rc.subr,conf}
* Clean up warning exerciser.
1997-11-13 03:06:44 +00:00
jonathan
bf4782e7cf Rephrase intro text to mention sysinst by name, mention upgrades, and
to fit in 80 colums even during _ALPHA.
1997-11-13 02:44:34 +00:00
ender
a6564b07d4 o Added a section on the X11 distribution sets to contents
o Added recently supported hardware
o Noted setup of rc.conf in install
o Added a new upgrade procedure
o Explained 1.3 enhancements in whatis
o Converted Mac-side utility names to be more version independent
1997-11-12 02:16:09 +00:00
pk
c144b2c93b Fix typo. 1997-11-12 01:30:30 +00:00
pk
b7f5e603b4 Previous sync with `etc/netstart' was not complete. 1997-11-12 01:13:54 +00:00
leo
a6467ae1e4 First update pass. 1997-11-11 15:14:50 +00:00
veego
f07d2619d5 New entries for getNAME.8, ipftest.1, ftpd.conf.5, ec.4, en.4, lc.4,
sm.4 and we.4.
1997-11-11 14:52:44 +00:00
veego
31e81fc047 Remove i386/ed.4. 1997-11-11 14:51:10 +00:00
thorpej
b5b52c47ef Add Todd Vierling to supporting cast. 1997-11-11 09:38:12 +00:00
thorpej
aa58fe81c4 Add Simon Burge to supporting cast. 1997-11-11 09:23:40 +00:00
phil
4ec8d82726 Clear up confusion of extract_dist() extract directory source. New var
ext_dir that is absolute directory name of where files are located to
extract.  All setup routines must set that directory name correctly.
Make target.c compile if DEBUG is set.
1997-11-11 00:43:31 +00:00
fvdl
f70699ffb4 Make this more up to date. 1997-11-10 23:51:50 +00:00
thorpej
774b159882 Change previous at request of contributor. 1997-11-10 22:41:50 +00:00
thorpej
ad274d7553 Add Allan 'Norm' Crain for his contribution of a Sun3/E, per gwr. 1997-11-10 21:37:33 +00:00
pk
ba5e432c64 Check `auto_ifconfig' rc.conf variable, per Michael Hitch. 1997-11-10 21:13:01 +00:00
jonathan
9f8db6cd26 Add ideas from Simon Burge.
Mark things currently in progress, but which won't make it for today's
review, as `to do for release'.
1997-11-10 17:11:19 +00:00
is
7101646a4e Add some missing devices:
- cv64/3d in ZorroII mode
- Melody, HyperCom in the HTML file
1997-11-10 12:45: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
chopps
e14205f5d8 add missing files 1997-11-09 22:14:52 +00:00
chopps
37ac6a5ba8 add -both arg for when one puts xsrc and src builds in same DESTDIR 1997-11-09 20:47:29 +00:00
phil
0e4140c713 - lower swap size for smaller systems
- fix bug in custom partition sizes that made huge swap partition defaults
1997-11-09 16:07:56 +00:00
phil
5337c61bc4 -TODO: Remove names as they were source name rather than names of who should
do it.
-change install confirmation message to outline install process
-move english print text into msg.mi.eng.
1997-11-09 15:54:15 +00:00
jonathan
b3da2a1b88 Fix target prefixing to handle both root-in-swap (traditional miniroot)
and current-root-is-target-root (pmax diskimage.

 * Add code to check disk names (e.g., "sd0") against the current
   kern.root_device  sysctl (whic  does *not* include a partition).

 * Add new function must_mount_root():
   check to see if it's the same device as the root.  If not,
   the current and target root partitions cannot overlap.
   If they do, do statfs() on "/", and return 1 iff we get back
   "root_device" as the mounted-on filesystem, otherwise zero.

* Call must_mount_root() right after the user specifies a disk as
  install/upgrade target, and  if it returns 1, print a message asking
  them to mount root, and abort.

*  Use statfs("/")  mounted_from string to check if a disk partition
    (e.g., "sd0a") matches the current root.
1997-11-09 12:47:06 +00:00
jonathan
3b987e7971 * Add local definition of DISKLABEL_CMD to arch/i386/md.h.
* Remove default definition from disk.c.  Ports that don't support
  dislabels (e.g., amiga) can now just not define DISKLABEL_CMD.
1997-11-09 04:14:10 +00:00
mhitch
0dfa0df14c The amiga tty erase character is ^?, not ^H. 1997-11-08 23:02:05 +00:00
mhitch
e711ce12ab The atari miniroot upgrade didn't need the network configuration files, but
we do on the amiga.  Add back the SYMLINKs needed to enable the network.
Remove a couple of [commented out] atari-specific lines.
1997-11-08 23:01:32 +00:00
mark
e968859def Install notes for NetBSD/arm32. 1997-11-08 02:55:06 +00:00
mark
7555dda7db Remind the use which sets MUST be installed at the end of this script.
Don't try and install a kernel from the ramdisk image as this will now
be in a kern set.
1997-11-08 02:29:24 +00:00
mark
5cd730f2c3 Overhauled support for installing from CDROM. Support unsplit tar files
as well as split ones for installation sets.
1997-11-08 02:28:17 +00:00
mark
de12bd8b16 Include sysinst. 1997-11-08 02:26:16 +00:00
mark
b7fff31651 Initial commit of arm32 MD support for sysinst. 1997-11-08 02:17:16 +00:00
mrg
5952f7c2ce clean up a bit. 1997-11-07 23:07:37 +00:00
jonathan
5aa3e4ef06 reflect recent changes. Add more random ideas for features. 1997-11-07 14:12:27 +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
mikel
ff1bdcd3f8 back out last change 1997-11-07 05:34:07 +00:00
phil
042114bf68 A requirement from sysinst. 1997-11-06 22:00:27 +00:00
jonathan
121b2869f7 * Add merge_etc() in upgrade.c. Copies /etc.old/fstab to /etc/fstab
as last step of upgrade, so /etc/fstab exists after reboot.

*  util.c: correct sense of test in sanity-check helper check_for().
   Change variable name to `found' for readability.
1997-11-06 09:02:36 +00:00
phil
483e07a88c - add TODO file for developer communication
- add user notification/response for errors during tar extraction
- twiddle ask_ynquestion()
1997-11-05 23:32:44 +00:00
phil
99df3ac6f2 Add sysinst as an option in the start menu. 1997-11-05 22:58:22 +00:00
mhitch
f36de6c906 Use getrawpartition() rather than a constant when creating the new fstab. 1997-11-05 22:49:06 +00:00
mhitch
174cd0f5ef Add an option to install or upgrade from a local disk filesystem. Upgrade
still needs an option to specify the distribution sets from a filesystem
present in fstab.
Add "ados" to the list file recognized filesystems.
Increase label information table size to 16 to allow for 16 partitions.
1997-11-05 22:45:53 +00:00
scottr
0b1a63b86b When deciding which md set lists to use, prefer $MACHINE over
uname -m
1997-11-05 22:08:22 +00:00
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