Commit Graph

1096 Commits

Author SHA1 Message Date
simonb c483af0a08 Fix typo in partition overlap checking - the inner loop check for
boringpart used the outer loop variable.
1997-12-05 14:46:01 +00:00
jonathan 3722de06d9 Put shell quotes around FTP URLs in case of shell metachars in passwords.
From PR #4580.
1997-12-05 14:26:27 +00:00
jonathan d7afdff3d0 * Add main menu option to reinstall sets or install additional sets.
(like upgrade but without trying to save etc.

* Add option to setls0urce menu to look in an already-mounted (local)
  directory.  Change `local fs' option to say umounted local fs.

* Change extract_file() to check that a tarball actually exists
  and give an explicit non-curses warning if it doesn't. (see above.)

* GNU tar returns a successful status if its gunzip child dies.
  Add short sleep() after tar commands in case of undetected errors.

* Change set-source selection code (except FTP, floppy) to check
  that the mandatory set files (base.tgz, etc.tgz) exist
  in the selected directory.  If they don't, warn the user and
  prompt the user to  change the selected directory.
  Give the user the option to explicitly continue even if
  base.tgz or etc.tgz not found, just in case.

* Change extract_file() to keep count of set unpacks that succeeded
  or failed. (Unreliable, given the broken return status of gnu tar.)
  Warn the user if there are errors and abort the installation/upgrade
  if we find any.  Does at least catch Ctrl-C interrupts of unpacking.

* Make unwind_mounts() signal-safe.

* Sense of target_verify_* is broken. Replace with predicates that
  return 1 iff the file or directory exists.

* Fix upgrade tests for existing etc.old (see above) before saving
  target /etc as /etc.old.

* Other detail fixes.
1997-12-05 14:00:59 +00:00
simonb 424f55f4b5 Add a cleanup function (set with atexit()) that shuts down curses nicely
and unmounts any filesystems left mounted when sysinst exits under any
circumstances.
1997-12-05 13:38:59 +00:00
bouyer 33e8f8cecb Sync with msg.mi.eng + better translation in one place. 1997-12-04 16:57:56 +00:00
jonathan ead082ab43 tar.gz -> .tgz as per release(7).
Clarify English text of localfssource: it's for an un-mounted
local filesystem, not an already-mounted pathname.
1997-12-04 13:24:30 +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
jonathan fc3fa7cd7f Implement TODO item to unwind target mounts on completion:
* Add mount_with_unwind() that adds mountpoint to a LIFO queue
    of  mountpoints to undo on error.   Use in target_mount().
  * Add unwind_mounts() which traverses the LIFO queue and unmounts
    filesystems, silently ignoring errors.
  * create toplevel() function which displays banner message and
    calls unwind_mounts().
  * change toplevel menu to call toplevel() instead of inline banner.

Where to do unwinds needs more thought.  Perhaps we should only unwind
if an upgrade or install appears unsuccessful, so after a successful
install, the target is mounted (e.g., for upgrading /etc/rc.conf).
1997-12-04 09:05:35 +00:00
mikel 180f0a28eb add devices supported by cy, guspnp, and joy drivers to list; note
that APM is not included in INSTALL kernels
1997-12-04 07:19:27 +00:00
jonathan 6266fb93be Quote disktab(5) entry name so that label names with spaces
(e.g., "bsd disk") work CVS:
1997-12-02 11:00:59 +00:00
hubertf ca66e22a4a add etc/mtree/BSD.x11.dist 1997-12-02 09:44:33 +00:00
mikel c393edcd6d exclude ed(1) and init(8) manpages 1997-12-02 07:58:44 +00:00
jonathan 4b1dd00797 Fix target_already_root() check: is_active_rootpart() takes a
string like "sd0a", and compares it against mounted_rootpart(),
which returns a string like "/dev/sd0a". For now, prepend "/dev".
1997-12-02 03:02:29 +00:00
ender b26a46669b o Noted how to setup for X
o Brought legal up to date finally
o General cleanup
1997-12-02 02:05:09 +00:00
mrg 9a52eaff24 clarify and expand swap config. 1997-12-01 13:47:26 +00:00
mrg 1a9a22faa7 move compat issues section after the "what's new" section. add swap compat note. 1997-12-01 13:35:28 +00:00
bouyer 8451cdbdb3 iy (Intel etherexpress pro/10) is on the install floppy. Also update I/O
adress.
1997-12-01 09:55:17 +00:00
veego 5be326ee70 Remove the 13 from sets13. 1997-11-30 13:12:04 +00:00
veego 6f94009790 Remove the 13 from sets13 and correct the file sizes. 1997-11-30 13:06:33 +00:00
is 7918303dcf OS 3.1 ROMs are (usually) 40.68 or 40.70, but never 41.xxx 1997-11-30 12:54:52 +00:00
perry 7a3689792b bring closer to reality (but still needs much work) 1997-11-30 06:30:30 +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
perry 66d732b062 remove ${REV} from floppy names per new practice. 1997-11-29 21:18:58 +00:00
veego 8da5f99663 Add the hunt link in ./usr/games 1997-11-29 20:13:37 +00:00
perry b4a9a7ae61 sync to reality 1997-11-29 20:07:26 +00:00
jonathan 9b4334217f Change ".tar.gz" tarball suffix to ".tgz", per release(7). 1997-11-27 11:05:25 +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
lukem 0be3fc95e2 note amanda 2.4.0 isn't compatable with earlier versions 1997-11-26 22:21:41 +00:00
matthias e535e38c1e add autoconf.h, conf.h and kcore.h to usr/include/machine 1997-11-26 21:24:42 +00:00
matthias 47eca6f41b usr/mdec/zboot.o is no longer existing. 1997-11-26 20:58:24 +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
ender bfcf6eb3bc o Fix some lossage from the last commit
o Capitalize Ethernet
1997-11-25 17:42:20 +00:00
pk 96f13f7ed6 * Fix a typo.
* Present option to configure a swap device (a bit rude.. we only offer
  partition `b', like we only consider `a' for root)
1997-11-25 12:29:33 +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
thorpej 5cb04dc65b Add release(7) 1997-11-25 05:50:52 +00:00
scottr 1a43a84584 Finish a note left out in previous: make sure the user knows
not to unpack the distribution files on their local disk when
downloading, and provide a pointer for how to disable this with
Internet Config.
1997-11-25 04:49:14 +00:00
scottr c2d32ec031 Resolve conflicts that somehow got committed (mmmm, CVS); add several
noteworthy contributors to the legal document; fix a few unclear
statements I noticed along the way.
1997-11-25 04:36:33 +00:00
thorpej 01278747a2 Prompt for keypress after FTP failure, so we know what went wrong.
From Havard.Eidnes@runit.sintef.no, PR #4521.
1997-11-25 00:24:52 +00:00
lukem bed4934d1f add COMPATIBILITY ISSUES section. first item; AMANDA vs dump(8) 1997-11-24 23:03:38 +00:00
lukem 0b8707f58f use bsd.prog.mk so that objdirs and other niceties work 1997-11-24 22:38:42 +00:00
ender 43301221ff o Updated for new release(7) directory hierarchy
o Noted procedure for configuring /etc/rc.conf on first boot
1997-11-24 18:15:11 +00:00
mrg 724af928a7 remove man8/alpha/installboot_cd9660.[08] 1997-11-24 06:03:27 +00:00
mrg 1f605c94eb move games score files into etc so we don't clobber them 1997-11-24 01:47:07 +00:00
perry 64984f7821 remove /var/games/save 1997-11-24 01:29:01 +00:00
perry 59a1833892 add several dhcp related pages 1997-11-23 23:47:59 +00:00
veego f1b5a13b25 Add ipresend(1). 1997-11-23 23:18:01 +00:00
veego 981b6338dd Add mkfilters(1). 1997-11-23 22:29:44 +00:00
veego c0005df0ad Add /usr/share/examples/ipf/mkfilters 1997-11-23 22:28:46 +00:00
pk d670200ef2 Update. 1997-11-23 17:51:08 +00:00
fvdl 1dc593ecc4 Fix 3COM 3x90X and Intel EtherExpress 100 info. From Matthias Scheler. 1997-11-23 14:15:52 +00:00
simonb 33960f8371 Load defaults for hostname, IP address and netmask if these are already
configured.
1997-11-22 14:16:55 +00:00
simonb 6cf76648f3 Don't try to ping a nameserver or default router if not is specified. Also
don't build an /etc/resolv.conf if a nameserver is not specified.
Fixes PRs #4548 and #4539.
1997-11-22 13:52:45 +00:00
simonb e2b222f32d If not network interfaces are found, just return without cycling forever
with no valid choices.
Fixes PR#4542 from Stephane Engel.
1997-11-22 00:29:33 +00:00
is 3ba7f21d72 Get rid of (commented out) remnant of Atari install.md md_prep_disklabel.
Add into ours (which previously did nothing) a loop which allows to look
at the existing disk label.
1997-11-21 23:04:35 +00:00
is 3abe908f1b Offer to install the X11 sets, too. 1997-11-21 21:59:46 +00:00
is 45b7fc74ce If we're (I)nstalling, add the same loadkmap call we use for the install
script to the end of rc.local.
1997-11-21 21:16:41 +00:00
simonb b80b4d1cd0 Catch SIGINT and do a endwin() to leave tty in a sane state. 1997-11-21 12:08:06 +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 de0e348150 Add myself to donations list 1997-11-19 12:21:57 +00:00
simonb 59391eaa69 Mention r4000 based DECstations in the "significant changes" section. 1997-11-19 12:07:23 +00:00
bouyer 9e88e02f86 Add "TI TravelMate 5000 series laptop docking station's ethernet board" to
the list of supported harware by the TL driver (per William Coldwell).
1997-11-19 09:53:20 +00:00
mrg 1eeb8e6b5f move hunt under dm(6) 1997-11-19 07:07:46 +00:00
cjs 3ae5aa45df Forgot a subdir. 1997-11-18 05:16:50 +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
carrel 10a8b8d395 machine/mtpr.h does not exist here. Nuke it. 1997-11-17 17:42:48 +00:00
veego bc97256555 Sync with the reality of the trunk. 1997-11-17 16:25:43 +00:00
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
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
veego 2a1bd53cb0 To be consitent with the other sets:
- use ./usr and not usr
- remove duplicated directory entries
- add directories from the other xsets
1997-10-28 13:41:23 +00:00
veego 6f2a7e6f08 Add a new option '-x11' for the xsets. 1997-10-28 13:35:23 +00:00
scottr 614f21db94 Split X fonts out into a separate distribution set. 1997-10-28 08:01:32 +00:00
jonathan efc815d99c Add missing libSM. 1997-10-28 06:39:05 +00:00
veego 34341c444a New files under /usr/share/sendmail. From the base set. 1997-10-27 18:27:00 +00:00
veego 6df80f64c6 Remove the entries of /usr/obj and /usr/obj because they are now marked
optional in mtree/NetBSD.dist.
While I am here move the files in /usr/share/sendmail to the misc set.
1997-10-27 18:25:04 +00:00
veego 6f6ca3cfbc s/mat9/man9/ 1997-10-27 18:15:18 +00:00
veego a293498b24 Remove entries for if_le_isapnpvar.h and if_ed_isavar.h 1997-10-27 18:13:37 +00:00
jonathan d9f45f623b Add lib*_pic.a files. 1997-10-27 07:28:04 +00:00
jonathan 0c8d4acbc4 sysinst support for pmax, pass 0. 1997-10-27 03:34:32 +00:00
veego 992d8bfae0 update for the cv64/3d and the hypercom 3 and 4. 1997-10-27 00:28:07 +00:00
mark 064a421453 iomd.h is no longer installed in /usr/include/machine/
intr.h is now installed in /usr/include/machine/
1997-10-27 00:19:52 +00:00
mikel 2dfc6bfd9d update; from Steve Allen in PR misc/4346 1997-10-26 04:39:57 +00:00
mikel 24e5d9da11 update; from Steve Allen in PR misc/4345, with some additions by myself. 1997-10-26 03:32:18 +00:00
jonathan 966de441b6 Sync with mips, pmax include files installed by `make build'. 1997-10-26 02:46:32 +00:00
jonathan fc6bd92581 Add missing /usr/include header files and sort:
bfd/*.h i2c/*.
   dev/ic/{aic63630*.h,i82365*.h,tms32av110*.h}
   dev/isa/if_ed_isavar.h    dev/isapnp/if_le_isapnpvar.h
   dev/mii/*.h dev/pcmcia/*.h
   soundcard.h  termcap.h
1997-10-26 02:00:16 +00:00
thorpej 5992d80ec3 Add SAITOH Masanobu to supporting cast. 1997-10-24 20:53:26 +00:00
thorpej 86dd3691f3 Add Bill Studenmund to supporting cast. 1997-10-24 20:40:41 +00:00
jonathan fc16fe2241 Add X11R6.3 ELF shared libraries. 1997-10-23 23:47:07 +00:00
jonathan f11d2bba47 Kill man4/imp.4 (not just cat4/imp.0). 1997-10-23 22:29:52 +00:00
jonathan bc8e181331 Re-sync with 1.3 release tree, pass 0: nuke missing references
* step shared libc version to 12.20
 * pick up move of com(4), lpt(4) headers from dev/isa to dev/ic
 * remove imp.4  (Arpanet 1822)  manpage.

For now, leave manpage references to syscalls that are still emulated
in libc dangling.
1997-10-23 22:07:53 +00:00
phil 345ae6924d Recover more bits lost in my earlier blunder. Get update working.
Other minor tweeks.
1997-10-22 15:28:33 +00:00
is 560b960e0d finalize Objective-C support, closing PR 4200 by Peter Simons:
- add /usr/include/objc to mtree
- set libobjc/Makefile INCSDIR=/usr/include/objc
- put to-be-installed includes to libobjc/Makefile into INCS=
- add the Objective-C source files to the appropriate lists.
- as the objc include files are installed now, no need to patch most
  of the files.
- add /usr/include/obj/* to src/distrib/comp/mi
The changes have been applied to gcc2netbsd, and this script was then used
to create the new version of the files in libobjc/.
1997-10-22 12:56:37 +00:00
lukem 07b16fa2db use CPPFLAGS instead of CFLAGS 1997-10-22 02:20:09 +00:00
lukem e48b312006 use CPPFLAGS instead of CFLAGS, fix dependancies, add RCSID 1997-10-22 02:17:11 +00:00
lukem ad6d6347fe use CPPFLAGS instead of CFLAGS 1997-10-22 02:11:56 +00:00
lukem b885d5c559 use CPPFLAGS instead of CFLAGS 1997-10-22 01:42:36 +00:00
bouyer c2223c1fbe Correct ThunderLAN spelling 1997-10-21 06:02:09 +00:00
scottr 4cb9c325b3 Oops. Move shared libraries from mi to md.mac68k. Pointed out
by Bernd Ernesti.
1997-10-20 17:03:57 +00:00
veego 83d19d1e6e Add amiga md server. 1997-10-20 08:45:32 +00:00
mrg 8e7401b98d add sparc md servers. 1997-10-20 07:21:21 +00:00
scottr 439b357821 Add empty set lists for ports that already have distribution sets. 1997-10-20 06:52:26 +00:00
phil 39725806db Floppy and cdrom distribution load. Other tweeks to improve installation
and upgrade.
1997-10-20 06:13:25 +00:00
perry cc828cfe1b 12G -> 13 1997-10-20 05:20:29 +00:00
perry ecaa3c65df Note the fact that this document is out of date -- it must be fixed
soon!
1997-10-20 05:18:34 +00:00
perry 1421bb1bd0 12G -> 13 1997-10-20 05:14:30 +00:00
perry 0f0dec44fc Remove false reference claiming that WD7000 support isn't present in
the small floppy, given that there is no such beast any longer.
1997-10-20 05:11:57 +00:00
perry a6d37913df Update for 1.3 alpha -- still needs some work. 1997-10-20 05:08:42 +00:00
perry 550589fa61 Update for 1.3 1997-10-20 05:03:57 +00:00
ender 2da6f5db2c o Updated distribution notes to reflect latest installation procedures
and hardware support
o Made note of the X11 distribution sets in the contents section
1997-10-20 00:01:36 +00:00
pk 036bc1c3d0 Retract statement about audio on LXen. 1997-10-19 21:08:53 +00:00
scottr f470d346c3 Add MI and mac68k-specific X11 set lists. 1997-10-19 18:54:51 +00:00
soda 34eaabcd16 These problems are fixed by thorpej's ahc->sc_xxxq, since Dec 02 1996. 1997-10-19 18:07:56 +00:00
oki 6aa7bad1fc Remove old-style install image. 1997-10-19 15:39:14 +00:00
oki a88eb35d75 Update for new bootfloppy/ramdisk 1997-10-19 15:38:34 +00:00
oki 5a9cb7b516 Remove old-style install image. 1997-10-19 15:33:26 +00:00
oki dc3654b410 Initial commit of installer use ramdisk image.
lifted from i386, modified for x68k by me.
1997-10-19 15:29:04 +00:00
matt ff0c62458b Add some PCMCIA devices (done while noting DEC DEPCM-BA and DE305 support). 1997-10-18 23:03:51 +00:00
mark 8f1ba91f0e Update for location of runlist.sh and list2sh.awk 1997-10-18 07:45:00 +00:00
mark c98ceb6a1b Missed these from the earlier commit of the files to build a ramdisk image. 1997-10-18 07:42:31 +00:00
mark accfff0e35 Common bit of Makefile used by the Makefiles in the subdirectories. 1997-10-18 04:15:37 +00:00
mark dcf807c409 Add Makefile for building sub directories. 1997-10-18 04:15:01 +00:00
mark 24e33d98ad Initial commit of an install ramdisk image build. 1997-10-18 04:05:47 +00:00
mark ca363acbb6 Initial commit of an install ramdisk image build. 1997-10-18 04:05:39 +00:00
mark 416fa2941b Initial commit of an install ramdisk image build. 1997-10-18 04:05:19 +00:00
phil 578886c5b8 Tweeks to make install better (take two)
- route messages to /dev/null
- remove // in some file names
- clear screen at proper times
1997-10-17 22:24:20 +00:00
phil fd205c739f Try to recover from a mistake of mine where I lost bits. 1997-10-17 22:17:05 +00:00
phil 88ca252c34 Tweeks to make install nicer. 1997-10-17 21:10:39 +00:00
phil 9298c97b61 Add sysinst to ramdiskbin
Move to use init_s to make room for sysinst
(Note: sysinst is not automatically run, it still uses the old install
process.  One can choose "shell" and then run sysinst to use it.)
1997-10-17 21:02:34 +00:00
bouyer f60e10920c Note support of Compaq's thunderland-based network adapters 1997-10-17 19:29:20 +00:00
is 43a0e5b910 Mention Melody board. 1997-10-17 13:42:00 +00:00
phil 15274f8880 Update to current state. Install and upgrade nearly finished. Disk
discovery and geometry no longer use /kern/msgbuf.
1997-10-15 04:35:17 +00:00
mycroft da169d6900 Add unformatted man pages. 1997-10-13 14:11:19 +00:00
thorpej ecacf28412 Added Lonhyn T. Jasinskyj to supporting cast, and change to use NetBSD.ORG
e-mail addresses where possible.
1997-10-10 23:47:36 +00:00
jtc c8f77c0b8b Fix tipo inherited from old version of TNF copyright template. 1997-10-09 07:25:45 +00:00