OpenBSD CVS

CVS log for src/distrib/miniroot/Attic/upgrade.sh


[BACK] Up to [local] / src / distrib / miniroot

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.91, Sat Apr 2 12:36:49 2016 UTC (8 years, 2 months ago) by rpe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.90: +0 -0 lines
FILE REMOVED

forgot to cvs rm locally in previous commit

Revision 1.90 / (download) - annotate - [select for diffs], Sat Apr 2 12:23:46 2016 UTC (8 years, 2 months ago) by rpe
Branch: MAIN
Changes since 1.89: +0 -95 lines
Diff to previous 1.89 (colored)

- merge install.sh into install.sub as do_install()
- merge upgrade.sh into install.sub as do_upgrade()
- delete install.sh and upgrade.sh
- make install.sub executable
- turn install and upgrade into symbolic links to install.sub
- add autoinstall symbolic link to install.sub
- change dot.profile to use these symlinks
- introduce a -m option to set MODE in install.sub
- alternativly set MODE and AUTO depending on PROGNAME
- execute the do_{install,upgrade) functions depending on $MODE

OK halex@, krw@
'go for it' deraadt@

Revision 1.89 / (download) - annotate - [select for diffs], Wed Dec 23 17:51:08 2015 UTC (8 years, 5 months ago) by rpe
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.88: +6 -7 lines
Diff to previous 1.88 (colored)

- spacing
- use brace expansion in for-loop

OK krw@

Revision 1.88 / (download) - annotate - [select for diffs], Sun Dec 6 09:30:27 2015 UTC (8 years, 5 months ago) by rpe
Branch: MAIN
Changes since 1.87: +1 -5 lines
Diff to previous 1.87 (colored)

5.8 is out for a quite a while now. Remove the deletion of binaries
during upgrade, that have been removed from base.

Positive feedback from tedu@, benno@
OK krw@, deraadt@

Revision 1.87 / (download) - annotate - [select for diffs], Tue Apr 7 09:59:38 2015 UTC (9 years, 1 month ago) by rpe
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.86: +3 -3 lines
Diff to previous 1.86 (colored)

Tweak previous.

OK halex@ krw@

Revision 1.86 / (download) - annotate - [select for diffs], Mon Apr 6 21:36:56 2015 UTC (9 years, 1 month ago) by rpe
Branch: MAIN
Changes since 1.85: +6 -4 lines
Diff to previous 1.85 (colored)

Moar comments !! Explain what's going on during install / upgrade.

OK krw@

Revision 1.85 / (download) - annotate - [select for diffs], Sat Apr 4 14:21:01 2015 UTC (9 years, 2 months ago) by rpe
Branch: MAIN
Changes since 1.84: +3 -1 lines
Diff to previous 1.84 (colored)

I contributed substantially to the installer, so add copyright.

prodded by deraadt@

Revision 1.84 / (download) - annotate - [select for diffs], Sat Mar 28 00:03:05 2015 UTC (9 years, 2 months ago) by rpe
Branch: MAIN
Changes since 1.83: +3 -3 lines
Diff to previous 1.83 (colored)

- Start comments with capital letters.
- End comments with a full stop.

OK krw@

Revision 1.83 / (download) - annotate - [select for diffs], Wed Mar 11 21:00:35 2015 UTC (9 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.82: +3 -2 lines
Diff to previous 1.82 (colored)

Shuffle some code around to make it easier to read. Add get_rootinfo()
and shuffle some install specific code into install.sh. No intentional
functional change.

Update copyrights to 2015 while here.

Tested & ok rpe@

Revision 1.82 / (download) - annotate - [select for diffs], Fri Jan 30 17:11:00 2015 UTC (9 years, 4 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.81: +2 -2 lines
Diff to previous 1.81 (colored)

remove rndc (from bind) as well, ok deraadt

Revision 1.81 / (download) - annotate - [select for diffs], Thu Jan 29 17:47:08 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.80: +5 -1 lines
Diff to previous 1.80 (colored)

At upgrade time delete sendmail,named,nginx,openssl binaries because
they may reside earlier in the path than a pkg.
prompted by tedu, with halex

Revision 1.80 / (download) - annotate - [select for diffs], Wed Dec 10 08:57:41 2014 UTC (9 years, 5 months ago) by giovanni
Branch: MAIN
Changes since 1.79: +1 -8 lines
Diff to previous 1.79 (colored)

Time to murder some smtpd's related XXX
ok rpe@ deraadt@

Revision 1.79 / (download) - annotate - [select for diffs], Sun Aug 10 14:59:22 2014 UTC (9 years, 9 months ago) by rpe
Branch: MAIN
Changes since 1.78: +5 -5 lines
Diff to previous 1.78 (colored)

{ foo ; bar ; } -> { foo; bar; }

OK krw@

Revision 1.78 / (download) - annotate - [select for diffs], Sun Aug 3 16:00:15 2014 UTC (9 years, 10 months ago) by rpe
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.77: +8 -1 lines
Diff to previous 1.77 (colored)

smtpd got privsep'ed and the _smtpq user is now used to manage these
directories. Ensure proper ownership in case smtpd has been started
before this change.

brought up by matthieu@
OK deraadt@

Revision 1.77 / (download) - annotate - [select for diffs], Thu Mar 20 20:01:28 2014 UTC (10 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored)

FTP is so 20th century. Remove 'ftp' as a method to obtain installation
sets. 'http' is the present.

A bunch of related or triggered cleanup/consistenizing.

Prodded by deraadt@, much feedback and testing by rpe@.

ok rpe@

Revision 1.76 / (download) - annotate - [select for diffs], Fri Feb 21 17:11:02 2014 UTC (10 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.75: +1 -3 lines
Diff to previous 1.75 (colored)

remove stupid comment from decades ago.  Proof is in the pudding, turns
out ksh is the perfect language to write this in.

Revision 1.75 / (download) - annotate - [select for diffs], Fri Feb 21 16:30:14 2014 UTC (10 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.74: +3 -0 lines
Diff to previous 1.74 (colored)

oops, seperate pieces coming...

Revision 1.74 / (download) - annotate - [select for diffs], Fri Feb 21 16:29:08 2014 UTC (10 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.73: +1 -4 lines
Diff to previous 1.73 (colored)

services

Revision 1.73 / (download) - annotate - [select for diffs], Sun Jan 5 01:53:35 2014 UTC (10 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.72: +3 -1 lines
Diff to previous 1.72 (colored)

We can feed_random right after mounting the filesystems, hoping we pick
up the previous kernel's /var/db/host.random
ok rpe

Revision 1.72 / (download) - annotate - [select for diffs], Sat Apr 21 10:17:26 2012 UTC (12 years, 1 month ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.71: +1 -2 lines
Diff to previous 1.71 (colored)

remove the "Do you want to do any manual network configuration?" question.
there is barely ever a need to do so these days, I for one don't remember
ever using it, and we have a well documented way of escaping to a shell at
any point in the install process, which the installer conveniently points
out right at the beginning.
stumbled upon while reviewing the upcoming 2nd edition of Michael Lucas'
"Absolute OpenBSD"
ok sthen deraadt halex krw

Revision 1.71 / (download) - annotate - [select for diffs], Wed Jul 6 21:12:05 2011 UTC (12 years, 10 months ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.70: +1 -9 lines
Diff to previous 1.70 (colored)

Remove the verbiage about manually merging 'etc' on upgrade. You get
the sysmerge(8) question now which makes it pretty obvious.

ok krw@

Revision 1.70 / (download) - annotate - [select for diffs], Sun Jan 10 13:32:56 2010 UTC (14 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.69: +9 -1 lines
Diff to previous 1.69 (colored)

remove and move some chatty byte during upgrade startup; ok krw, idea from mcbride

Revision 1.69 / (download) - annotate - [select for diffs], Wed May 6 01:29:48 2009 UTC (15 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.68: +3 -1 lines
Diff to previous 1.68 (colored)

Split the collection of many questions from the appplication of their
change.  Then ask them at the start.  The timezone stuff remains a bit
weird since we have to depend on when we get the TZ names, or when we
get network... so there are 3 possible places that question can be
asked.  But now basically once it starts ftp'ing the sets, you only
have the final done prompt.

Revision 1.68 / (download) - annotate - [select for diffs], Sat Apr 25 18:31:26 2009 UTC (15 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.67: +13 -26 lines
Diff to previous 1.67 (colored)

Cleanup. Some ksh'ing, shrinkage, verbiage tweaks and consistency.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Apr 25 17:43:08 2009 UTC (15 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.66: +2 -17 lines
Diff to previous 1.66 (colored)

During upgrades don't bother displaying the fstab to be 'munged'
and a long explanation of what is about to happen. Unlikely this
was read by or helped many. Fewer distractions make better users.

Revision 1.66 / (download) - annotate - [select for diffs], Sat Apr 25 16:55:02 2009 UTC (15 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.65: +4 -6 lines
Diff to previous 1.65 (colored)

Always configure the network (if any) during upgrades. Another question
bites the dust.

ok deraadt@

Revision 1.65 / (download) - annotate - [select for diffs], Fri Jun 27 06:06:13 2008 UTC (15 years, 11 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.64: +1 -8 lines
Diff to previous 1.64 (colored)

Remove clauses 3 and 4 from license copyrighted by millert, deraadt,
krw, and NetBSD.

OK millert, krw, and deraadt

Revision 1.64 / (download) - annotate - [select for diffs], Tue Aug 29 01:02:49 2006 UTC (17 years, 9 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.63: +1 -2 lines
Diff to previous 1.63 (colored)

Handle site${VERSION}-$(hostname -s).tgz files better so that they
don't get in the way of noticing that all default sets are installed.

Restores the desired behaviour where [done] becomes the default answer
to the "Location of sets?" question once all default sets are
successfully installed.

spotted by & ok deraadt@

Revision 1.63 / (download) - annotate - [select for diffs], Fri Jun 23 21:43:19 2006 UTC (17 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.62: +3 -1 lines
Diff to previous 1.62 (colored)

Add a set siteXY-<hostname>.tgz and make it selected by default. This
allows host specific files to be trivially installed and makes
creating/maintaining large numbers of host specific configurations
much simpler.

Suggested by work being done by Alex Holst, brought to my attention by
mk@ during c2k6.

Name format suggested by henning@, tweaked by deraadt@.

Revision 1.62 / (download) - annotate - [select for diffs], Wed Oct 12 02:48:49 2005 UTC (18 years, 7 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

Comments are now allowed in myname and mygate. Steal stripcom() from
/etc/netstart and use in myname and mygate processing. Fixes problems
with (U)pgrade's. Discovered while preparing for Todd's new mygate
functionality.

ok todd@

Revision 1.61 / (download) - annotate - [select for diffs], Sat Apr 2 14:27:08 2005 UTC (19 years, 2 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.60: +5 -5 lines
Diff to previous 1.60 (colored)

Scrounge a few characters of whitespace.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Mar 26 05:08:26 2005 UTC (19 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

More cleanup. ${MODE} -> $MODE.

Revision 1.59 / (download) - annotate - [select for diffs], Sat Oct 2 18:45:08 2004 UTC (19 years, 8 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.58: +5 -7 lines
Diff to previous 1.58 (colored)

Minor code cleanup and shrinkage. No functional change.

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jul 30 00:16:30 2004 UTC (19 years, 10 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

Use '#!/bin/ksh' for install scripts, as we use so many ksh'isms. Some of
which will be disabled for /bin/sh invocations soon.

Requested by millert@.

ok pval@.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Apr 6 04:18:41 2004 UTC (20 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.56: +1 -17 lines
Diff to previous 1.56 (colored)

Remove the 3.3 -> 3.4 upgrade openssl hack.

Revision 1.56 / (download) - annotate - [select for diffs], Tue Mar 23 02:39:39 2004 UTC (20 years, 2 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

Update copyrights to 2004.

ok deraadt@.

Revision 1.55 / (download) - annotate - [select for diffs], Mon Sep 22 01:31:39 2003 UTC (20 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.54: +3 -5 lines
Diff to previous 1.54 (colored)

Introduce a function ask_yn() to use when asking 'yes or no'
questions.

ask_yn() always returns a 'y' or 'n' in $resp, vastly simplifying the
logic used to check the user response.

ask_yn() insists on the user responding with a 'y', 'n', 'yes', or
'no'. Case is ignored.

Previously almost any input was accepted as either a yes or a no
depending on the question. ask_yn() reduces the chance of user error,
e.g.  by answering the next question (default route) instead of the
posed one (Use DNS server now?).

All 'yes or no' questions now use ask_yn(). All questions show the
full default answer, i.e. 'yes' or 'no' rather than 'y' or 'n'.

Some minor logic cleanups of the usual sort, but no changes to logic
flow or questions bar minor verbiage adjustment.

Inspired by a Bob Beck install nit.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Sep 9 23:33:34 2003 UTC (20 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.53: +4 -4 lines
Diff to previous 1.53 (colored)

do not defer * matching; from drahn, with some input from me

Revision 1.53 / (download) - annotate - [select for diffs], Sat Sep 6 23:02:55 2003 UTC (20 years, 9 months ago) by krw
Branch: MAIN
Changes since 1.52: +16 -12 lines
Diff to previous 1.52 (colored)

Do the ssl/openssl directory/link dance in both places it could occur,
/usr/include and /usr/libdata/perl5/site_perl/*-openbsd.

Allows both base34 and comp34 to be upgraded from a stock install.

ok deraadt@.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Aug 17 21:11:35 2003 UTC (20 years, 9 months ago) by krw
Branch: MAIN
Changes since 1.51: +13 -1 lines
Diff to previous 1.51 (colored)

With 3.4, /usr/include/ssl is a link and /usr/include/openssl is the
directory it points to. Previously ssl was the directory and openssl
the link.

That change causes the upgrade of the comp34 set to fail, so manually
adjust a pre-3.4 setup to the 3.4 setup before attempting to upgrade
any sets.

ok millert@.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Aug 16 20:37:24 2003 UTC (20 years, 9 months ago) by krw
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

Minor cosmetic cleanup.

Use '<msg>...done.' consistantly by replacing last five varient uses. Out with
'<msg> ... done.', '<msg>...Done.', etc.

Revision 1.50 / (download) - annotate - [select for diffs], Mon Jun 23 00:43:18 2003 UTC (20 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

Fix comment typo in last commit.

Revision 1.49 / (download) - annotate - [select for diffs], Mon Jun 23 00:38:57 2003 UTC (20 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.48: +7 -11 lines
Diff to previous 1.48 (colored)

Minor cleanups.

1) Don't check for the existance of /mnt/etc/hosts twice. Since we
bail out at the first check the 2nd one is superfluous.

2) Shorten and clarify the upgrade network configuration logic.

3) Always ask if manual network configuration is desired when
upgrading. Allows the upgrader to decline to use the existing network
configuration and still have an explicit opportunity to configure the
network.

4) Don't bail out if the existing network configuration fails. Instead
(see 3)) offer manual network configuration and let the user decide if
it is worthwhile to continue.

5) Refer to actual file that is missing when bailing out, rather than
forcing user to be alert enough to prepend '/mnt'.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Dec 8 19:30:40 2002 UTC (21 years, 5 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.47: +3 -11 lines
Diff to previous 1.47 (colored)

Fix & cleanup logic, especially around interrupted installs.

Use value of 'hostname' to store all HOSTNAME and FQDN information.  Elminate
those global variables. For install accept user input as is, but if the short
form hostname is unchanged, save any domain info by not re-setting hostname.
For upgrade just set hostname from /tmp/myname.

Unconditionally create default hosts file in install.sh, rather than doing it
in separate places depending on whether or not the user configures the network.
Always ask if the user wants to edit the hosts file when the network is
configured, but without listing it out.

Don't put 'search' command in resolv.conf as we now set hostnames to include
fully qualified domain names, which will be used to yield local domain name.

Loop asking for the default route until the user enters one that 'route'
accepts or the user explicitly asks for no default route by entering 'none'.

Add FQDN info to hosts file just before saving configuration files to the
installed system. Preserve user added lines - those with aliases or with domain
information in the hostname.

Clean up donetconfig() logic. Delete network config files in install.sh so that
if the user restarts an interrupted install previous network configuration does
not leak into installed system.

Elminiate get_resolv_fqdn(), searching resolv.conf for domain info only when
dhcp was used. get_fqdn() is reduced to looking for domain info in current
hostname, and supplying 'my.domain' if none found.

Add save_comments() and use to preserve useful comments in the installed
/etc/hosts and /etc/dhclient.conf files. Previous logic for dhclient.conf could
cause repeated appending of configuration info rather than just preserving the
comments.

Cleanup logic copying files from /tmp to /mnt/etc, eliminating unneeded
cfgfiles variable. Use wildcards and subshells to shrink code size.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Dec 1 23:19:33 2002 UTC (21 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.46: +3 -13 lines
Diff to previous 1.46 (colored)

Code consolidation. Create edit_tmp_file(), manual_net_cfg(), inet_info()
to abstract repeated code blocks.

Current score: 3.2      install+upgrade+install.sub = 40,062 bytes
               -current    "        "         "     = 38,051

Revision 1.46 / (download) - annotate - [select for diffs], Sun Nov 10 01:26:50 2002 UTC (21 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.45: +6 -7 lines
Diff to previous 1.45 (colored)

Polish wording on fstab verbiage, and swap paragraphs so the paragraph
descibing how the fstab will be used follows immediately after the
fstab listing, and the paragraph explaining about editing the fstab
comes immediately before the offer to edit the fstab.  Eliminate a
blank line before the question as it is now tightly related to the
paragraph that precedes it.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Nov 7 01:28:52 2002 UTC (21 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.44: +1 -7 lines
Diff to previous 1.44 (colored)

Treat 'bsd' like just another filename in THESETS, no more 'kernel'
logic.  As result, MDSETS gone from everything but mac68k.

MDSETS now treated as a list of complete file names to add to THESETS,
allowing more MD flexibility, i.e. may or may not be .tgz files.

All traces of tar.gz removed. Not used for sets since 2.7 or so. As a
result of code simplification from not having to consider tar.gz, the
functions get_sets(), make_lastset(), and set_not_done() are
eliminated, along with the global SETS.

Build THESETS and DEFAULTSETS to contain full file names.

Always install sets in the order they appear in THESETS, keeping
siteXX last but without needing special logic. More predictable for
user if a lot of set additions and removals done before being
satisfied, as the sets are now installed in the same order they appear
in the selection list.

Remove ability to look for non-set .tgz/.tar.gz files. The job of the
install scripts is to install the standard sets in a simple and
rational way. Not to install general tar balls. The user can do that
post-install or simply '!' out to do it during install. On their head
be it.

If no sets are found in a specified source, list the filenames in
THESETS to show what is being looked for.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Nov 1 00:39:19 2002 UTC (21 years, 7 months ago) by krw
Branch: MAIN
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

Cleanup. install_sets() no longer takes a parameter.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Oct 3 00:56:44 2002 UTC (21 years, 8 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.42: +12 -3 lines
Diff to previous 1.42 (colored)

Divorce system hostname handling from network configuration.

Every system has a name, and thus generated keys with that
name, even if there is no currently configured network.

So, ask for a system hostname before configuring the network.

Eliminate /tmp/myname and just keep hostname set to the lastest name
and FQDN.

Construct /etc/myname from hostname as configuration data is being
saved. Construct /etc/hosts (preserving the informative leading comment
from the /etc/hosts file in etcXX.tgx) at the same time.

Construct an appropriate /etc/hosts file even if the network is not
configured.

During upgrade, if the user enables the network using the existing
configuration, don't ask about the domain name - just use the
configured one.

Take care to handle existing /etc/myname files which do not necessarily
have a FQDN.

Originally problem with hostname handling pointed out by beck@.

ok deraadt@

Revision 1.42 / (download) - annotate - [select for diffs], Tue Sep 17 12:28:54 2002 UTC (21 years, 8 months ago) by krw
Branch: MAIN
Changes since 1.41: +10 -33 lines
Diff to previous 1.41 (colored)

Ruthlessly expunge unnecessary verbiage and whitespace to make sure
the install example will easily fit on the CD insert at some
reasonable font size. Reword many messages and questions for same
reason.

In addition:

1) Add '...done.' to match 'Installing boot block...'

2) During install, after asking which is the root disk, start
initializing it immediately rather than asking again which disk to
work on.

3) Move munged fstab filesystem mounting to *before* network
initialization so that if you bail out during network initialization
and restart you do not have to go through disk initialization again.
Also puts fsck and mount messages close to each other rather than
spitting out the latter just before root password questions.

4) Make 'usr/obj' nosuid,nodev by default, /home nodev by default.

5) For network interfaces only show the complete list of media options
if the user indicates they want to change the default.

6) Move the question about the ftp server supporting passive ftp to
*after* selecting the ftp server where it is more 'rational' and can
easily be made more concise.

7) Don't bother umount'ing filesystems or stopping the dhclient after
a successful install/upgrade. The next step is a reboot after all.

Some minor code tweaks and comment cleanup while in the area.

Tested in recent snapshots. Suggested by & ok deraadt@.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Aug 27 02:18:34 2002 UTC (21 years, 9 months ago) by krw
Branch: MAIN
Changes since 1.40: +1 -7 lines
Diff to previous 1.40 (colored)

Move general partitioning advice from machine dependant per disk
routine to install.sh so it is displayed only once.

Strongly advise /, /tmp, /var, /usr and /home have their own
disk partitions as requested by deraadt@.

Rather than rely on users not re-selecting an already initialized
disk, just allow them to choose from un-initialized disks.

Move get_root invocation into install.sub as both install.sh and
upgrade.sh did it first thing.

Remove the 'workaround' to a 'vnode aliasing bug' that came in
with the initial import of upgrade.sh from NetBSD. ok millert@.

Rework verbiage in a few places. Clean up logic around looping
through disk units by handling root disk better.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Jul 27 04:05:09 2002 UTC (21 years, 10 months ago) by krw
Branch: MAIN
Changes since 1.39: +5 -3 lines
Diff to previous 1.39 (colored)

Fix two problems.

1) Even if /sbin/mount_nfs is present, do *not* try to automatically
mount nfs file systems. Because not all name resolution mechanisms are
present during upgrade (e.g. yp) it is not safe to do so. The user
must manually mount nfs file systems if they are the source of any
sets.  Problem noted by miod@, change seconded by deraadt@.

2) Change initial verbiage so that a brief introduction is displayed,
along with the information about !foo or !, before the terminal type
is requested.  After the terminal type is known display the rest of
the introductory text using less -XE. This belts and suspender fix
makes both the install and upgrade text fit in 'page' size (<24 lines)
chunks and ensures that if the text ever grows beyond a page a more
informative prompt is displayed. Problem noted by millert@.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Jul 18 00:36:44 2002 UTC (21 years, 10 months ago) by krw
Branch: MAIN
Changes since 1.38: +12 -10 lines
Diff to previous 1.38 (colored)

Rework upgrade's fstab handling so

1) All filesystem with a corresponding /sbin/mount_<type> available
will be mounted. i.e. don't restrict automounting to ffs filesystems
when the user can later mount the others manually.

2) All non-ffs filesystems will be mounted ro, just as currently is
the case for user-mounted filesystems.

3) fsck all to-be-mounted filesystems that have a corresponding
/sbin/fsck_<type> program present.

Some verbiage adjustment and related code cleanup as well.

ok deraadt@.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Jul 13 13:18:05 2002 UTC (21 years, 10 months ago) by krw
Branch: MAIN
Changes since 1.37: +14 -14 lines
Diff to previous 1.37 (colored)

More cleanup/simplification/shrinkage.

1) Factor out inquiring for a device. ask_fordev()
   now does this for root disk determination, other
   disk initialization, install sets disk or cd
   inquiry. Also ensures cd devices are created on
   the fly like disk devices already were, and
   shortens some verbiage.

2) Just ask for root disk if install is skipping
   disk initialization, rather than doing the
   'df /mnt ...' scan, since 1) we just end up asking
   anyway and 2) everything *should* have been
   umount'ed when previous install was finished or
   interrupted.

3) getrootdisk -> get_rootdisk to conform to
   get_<global> naming convention.

4) Add and use new global ROOTDEV rather than
   constantly adding 'a' to ROOTDISK. ROOTDEV
   default is set in get_rootdisk().

5) Put loop inside get_rootdisk rather than
   always putting one around it. If no rootdisk
   found/specified just exit install/update.

6) Eliminate getanotherdisk since ask_fordev()
   does most of the work.

7) Eliminate parameter to check_fs, just use
   ROOTDEV instead.

8) Some typographical and minor code tweaks.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Jul 6 03:19:36 2002 UTC (21 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.36: +1 -31 lines
Diff to previous 1.36 (colored)

Remove obsolete upgrade hacks for XF3->XF4 and moving
sendmail.cf to /etc/mail.

ok deraadt@, millert@, todd@

Revision 1.36 / (download) - annotate - [select for diffs], Sat Jun 29 20:01:34 2002 UTC (21 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.35: +17 -30 lines
Diff to previous 1.35 (colored)

Some cleanup/simplification:

1) Put knowledge of /tmp/fstab in munge_fstab rather
   than redirect input on calls. Check in munge_fstab
   whether /etc/fstab was successfully created, and exit
   install/upgrade with appropriate error if not. This
   error condition is therefore checked on install and upgrade.

2) Don't bother specifying value in exit statements - no one
   is checking whether it is 1, 2, or 0.

3) Put status messages inside check_fs rather than around
   invocation, and exit from check_fs if a fsck fails, rather
   than checking return value and exiting.

4) With above changes, simplify munge_fs/check_fs/mount_fs logic in
   upgrade.sh.

5) Various cosmetic cleanups.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jun 25 00:31:59 2002 UTC (21 years, 11 months ago) by krw
Branch: MAIN
Changes since 1.34: +1 -7 lines
Diff to previous 1.34 (colored)

Complete yet more of the c2k2 initiated changes. In this round:

1) Centralize selection of install/upgrade media rather than ask
   separately for mounted filesystem. Eliminate separate calls
   to get_localdir in install.sh and upgrade.sh. In install.sh
   this call occurred only if a diskless system was detected, which
   millert@ agreed was a historical relic, i.e. what exactly would
   a diskless workstation be installing to?

2) Check for the presence of any mounted filesystems at the expected
   mount point (/mnt or /mnt2) and emit an error message if none found.

3) Add a '?' option to the pathname question so you can see what
   filesystems are mounted at/below the expected mount point.

4) Rework logic in get_localdir to make flow more logical. e.g. only
   do sane_install() check after the user says to install no more sets;
   if sane_install() fails ask a slightly different question and make
   the default 'y' to install more sets.

5) Rework install_sets() to simplify logic. Don't try to tailor
   list of install media to system, just warn that some may not be
   available and emit useful error messages if the user tries a
   non-available source.

Some verbiage still needs work (amoung other things).

fgsch@ noticed problems with installing from mounted filesystems, forcing me
to finish these changes.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Apr 29 01:38:06 2002 UTC (22 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

Eliminate basename(). Just use parameter expansion syntax to remove
everything up to and including the last '/'.  Also removes a now
unnecessary variable from install_tape().

Which brings up the question 'Does anyone use tape installs?'.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Apr 28 20:41:15 2002 UTC (22 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

Remove superfluous '{}' in variable references that are all alone in a
string. i.e. "${a}" -> "$a". Save the {} form for strings where
variables are mixed with text.

Remove superfluous X's. e.g. "X$resp" = "Xdone" -> "$resp" = "done".

Change last few '[ "$v" = "" ]' or equivalents to '[ -z "$v" ]'.

Revision 1.32 / (download) - annotate - [select for diffs], Sun Apr 28 14:44:01 2002 UTC (22 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.31: +6 -11 lines
Diff to previous 1.31 (colored)

Change getresp() into ask().

ask() takes 2 parameters. The first one is the question to
ask the user, and the 2nd is the default answer.

Shrinks and makes the code clearer.

From espie@ with some tweaking, ok deraadt@.

Revision 1.31 / (download) - annotate - [select for diffs], Sat Apr 13 21:03:31 2002 UTC (22 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

only fsck root once in upgrade; from krw

Revision 1.30 / (download) - annotate - [select for diffs], Tue Apr 9 01:01:19 2002 UTC (22 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.29: +12 -10 lines
Diff to previous 1.29 (colored)

More reorganizations, fixes and shrinkage.

a) Make [ -z "$var" ] standard idiom, replacing
   many variants on [ X"$var" = X"" ].

b) Factor out three large chunks of repeated code
   for finding sets, getting user to select sets
   and then installing the sets. This creates
   get_sets_list(), get_get_files_list() and
   install_get_files_list().

c) Eliminate unneeded dir_has_sets() function.

d) Indent last large functions that were not
   properly indented.

e) Replace most if not all 'test' invocations
   with [], replacing a few if statements along
   the way.

f) Use ${MODE} a lot more to make messages appear
   more relevant to process.

g) Fix erroneous display of $local_sets_dir so
   the error for a non-existant dir actually displays
   the user input, not an empty string.

h) Eliminate the 'list' option in selecting sets. It
   was not possible to actually select anything except
   what was already displayed, so bring verbiage and
   options into line with code.

i) Replace a number of '\"' and "\'" with just plain
   's or "s as appropriate.

j) Replace ".  " with ". ".

k) Use some more "OpenBSD {$VERSION_MAJOR}.${VERSION_MINOR}"
   to make more messages correct and current.

l) Various typos fixed.

Net shrinkage approximately 2K.

ok millert@ deraadt@

Revision 1.29 / (download) - annotate - [select for diffs], Fri Apr 5 02:51:59 2002 UTC (22 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.28: +13 -71 lines
Diff to previous 1.28 (colored)

Abstract out common startup and finishing code from install.sh
and upgrade.sh, putting it into install.sub.

Replace groups of echo's with here documents.

Eliminate bare echo's with embedded \n's.

Abstract repeated verbiage into display_* functions, also eliminating
a backslash orgy when showing the ftp/http server location. This
also makes the verbiage consistant across ftp, cd, etc. installs.

Try hard to make file selection screen fit on one screen.

Fix default in 'File name?' prompt so it contains the first
non-selected set.

Some minor wording adjustment, typos, etc.

Net shrinkage of about 1.5K.

Revision 1.28 / (download) - annotate - [select for diffs], Tue Apr 2 01:25:34 2002 UTC (22 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.27: +1 -5 lines
Diff to previous 1.27 (colored)

Do not copy /etc/mygate to install'ed systems if dhcp is specified
for one or more network interfaces.

Rework timezone logic to shrink it and make it more clear. Don't
bother checking for /usr/share/zoneinfo as it is never there, just
look for /mnt/usr/share/zoneinfo.

Eliminate spurious early call to get_timezone() that
(accidentally?)  made GMT the default timezone during
installs. Instead rely on the /etc/localtime that is installed
from etcXX.gz. Currently this means the default timezone is the
historically resonant US/Pacific.

Ideas if not code details ok deraadt@ and millert@

Revision 1.27 / (download) - annotate - [select for diffs], Sun Mar 31 15:30:42 2002 UTC (22 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.26: +8 -8 lines
Diff to previous 1.26 (colored)

naddy@ pointed out that in the two situations

case WORD

and

var=WORD

Bourne and related/descendant shells such as our sh do *not* do
field splitting or globbing on WORD. Thus we can eliminate a large
number of unnecessary '"'s in case statements and variable
assignments.

This is a lightly adapted version of naddy's diff, to take account
of changes in the scripts since he generated it.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Mar 31 03:05:04 2002 UTC (22 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.25: +10 -9 lines
Diff to previous 1.25 (colored)

This omnibus diff does a number of cleanups:

1) Move the 'executed' code at the top of install.sub
   to the end, so that it can successfully use .md
   functions.

2) Get _DKDEVS once only, and get _CDDEVS at the same
   time (see (1))

3) Clean up calls to getresp so that
      a) no '"'s used on constants
      b) '"'s always used for variables
      c) never use {} for variables
      d) ensure parameter passed matches default shown
         in any preceeding []

4) Try to put '"'s around directory names

5) Replace a couple of instances of using []s around
   a prompt comment instead of ()s

6) Reduce some code by putting $_DKDEVS inside
   here documents, rather than echo'ing it

7) eliminate an unused variable _directory

8) eliminate a couple of while RESP="" loops which
   never loop because a non-null default is provided
   to getresp

9) move some code into mount_a_disk to make logic
   clearer

10) eliminate a couple of extra blanks in prompts

11) eliminate ALLSETS and UPGRSETS by just removing
    'etc' from THESETS in upgrade.sh

12) Indent a couple of smaller functions

ok deraadt@

Revision 1.25 / (download) - annotate - [select for diffs], Sat Mar 30 01:29:18 2002 UTC (22 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.24: +23 -38 lines
Diff to previous 1.24 (colored)

shrink 599 more bytes:  cleanups to "case" and such; ok krw

Revision 1.24 / (download) - annotate - [select for diffs], Sat Mar 30 00:50:57 2002 UTC (22 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.23: +9 -9 lines
Diff to previous 1.23 (colored)

Squeeze a few bytes out of the installation scripts by using
standard __EOT as here document delimiter.

Remove unnecessary escaping of __EOT.

Could be/Should be extended to .md scripts and other non-miniroot
architectures.

Concept approved a *long* time ago by deraadt@ and millert@ but
never got out of my tree.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Mar 26 01:50:08 2002 UTC (22 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.22: +11 -7 lines
Diff to previous 1.22 (colored)

Cleanup (and shrink) ftp_list_files() in install.sub by removing
some unneeded intermediate local variables and just using the
parameters.

Make upgrade fsck output for root partition consistant with later
fsck output for other partitions.

ok deraadt@

Revision 1.22 / (download) - annotate - [select for diffs], Mon Mar 4 13:59:52 2002 UTC (22 years, 3 months ago) by krw
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Update Copyright(c)'s to 2002

Revision 1.21 / (download) - annotate - [select for diffs], Sun Mar 3 00:43:37 2002 UTC (22 years, 3 months ago) by krw
Branch: MAIN
Changes since 1.20: +24 -8 lines
Diff to previous 1.20 (colored)

Cleanup/Improve trap handling.

a) Add /var/run to the filesystem created when the installation media
   boots. This allows the creation and use of the dhclient.pid file.
   Synchronize all mtree.conf files in architectures using miniroot.

b) Rework the traps used in upgrade.sh and install.sh so that HUP,
   INT, QUIT, TERM and EXIT all invoke a cleanup function that kills an
   active dhclient, unmounts all filesystems and fsck's -p all devices
   in /etc/fstab, or just /mnt if /etc/fstab is not present.

c) Make sure the actions of the cleanup function are visible, thus
   eliminating the long delay with no feedback at the end of the
   upgrade/install script, after the congratulatory message.

d) Reduce manual parsing of fstab files by using umount -a to
   unmount all mounted filesystems.

e) Since the new cleanup function tries to unmount all filesystems,
   use the presence of /etc/fstab, rather than a difference between
   `df /` and `df /mnt`, to determine if an install is being restarted
   in a state where disk initialization can be skipped.

f) Change munge_fs, check_fs, mount_fs, remount_fs so that they
   all 'know' about /etc/fstab rather than passing the same
   parameter in all the time.

g) Use input redirection on munge_fs to read correct file, rather
   than passing a file name as a parameter.

h) Indent code for various smaller functions.

i) Eliminate some subshell usage to simplify code further.

j) Display pretty messages during fsck -p to clearly indicate success
   or failure of fsck, rather than just dumping fsck output.

k) Always run mount_fs in install.sh, even if disk initialization is
   being skipped, because the trap should have unmounted all filesystems
   when the last run terminated.

ok weingart@ millert@

Revision 1.20 / (download) - annotate - [select for diffs], Sun Nov 25 21:43:08 2001 UTC (22 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.19: +8 -5 lines
Diff to previous 1.19 (colored)

Squeeze all obvious <blank>+<tab> and <tab><blank>+ combinations
out. Save about 287 bytes. Based on diff from deraadt@.

Update Copyright (ok deraadt@).

Revision 1.19 / (download) - annotate - [select for diffs], Sun Nov 18 22:48:58 2001 UTC (22 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.18: +3 -5 lines
Diff to previous 1.18 (colored)

Purge more (last?) comments from install scripts by removing all
comments that, being on the end of code lines, cannot be stripped
automatically.

Just delete unhelpful ones, and move the rest onto separate lines
where they can be stripped.

Also remove a duplicated initialization of ROOTDISK.

In total, reduces script size on floppy by 1117 bytes, making room
for coming improvements.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Oct 11 23:14:59 2001 UTC (22 years, 7 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.17: +1 -10 lines
Diff to previous 1.17 (colored)

Do *not* copy the possibly edited fstab back to disk after
promising this would not happen.

Historically this was being done to preserve any ufs -> ffs
changes the upgrade script had done, but the script has not done
such changes for some time.

ok millert@ deraadt@

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jun 23 19:44:46 2001 UTC (22 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +1 -10 lines
Diff to previous 1.16 (colored)

argh.  stop using kernfs, using dmesg using sysctl.  encode ARCH into
install.md at build time.  remove some crud.  and the icing on the cake:
skip testing all this until next week

Revision 1.16 / (download) - annotate - [select for diffs], Fri Apr 20 01:55:51 2001 UTC (23 years, 1 month ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.15: +30 -47 lines
Diff to previous 1.15 (colored)

Cleanup, new features, shrinkage.

Remove chunk of commented out, unused code.

Add _didnet=1 to enable_network() so that ftp upgrade
does not ask for network information it already has.

Tell a user that selects the http installation method
that the files will be downloaded via http.

Suppress all 'softdep' options in fstab_shadow so
there are no warnings when the filesystems are
mounted.

Suppress all non-ffs (including nfs, ufs) filesystems
from fstab_shadow. Ufs was never used to install
OpenBSD.

Suppress all 'noauto' filesystems from fstab_shadow.

Reword some comments and messages, esp. the one
just before the offer to edit fstab. Punch up the
fact that the fstab will not be saved, mention
that non-ffs and noauto filesystems will be
ignored.

Move

   /usr/X11R6/lib/X11/{rstart,twm,xkb,xsm,xinit}

directories to

   /usr/X11R6/lib/X11/XF3{rstart,twm,xkb,xsm,xinit}

and replace with links. Links can be overwritten
during upgrade. Directories can't. This enables the
upgrade from XFree86 3.x to XFree86 4.x.

ok deraadt@ millert@

Revision 1.15 / (download) - annotate - [select for diffs], Fri May 12 06:02:13 2000 UTC (24 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

fix an oopsie; millert

Revision 1.14 / (download) - annotate - [select for diffs], Sun Apr 30 19:39:27 2000 UTC (24 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.13: +12 -3 lines
Diff to previous 1.13 (colored)

When doing an upgrade, if there is an /etc/sendmail.cf and no
/etc/mail/sendmail.cf, move /etc/sendmail.cf -> /etc/mail/sendmail.cf
and edit /etc/rc if needed.  That way the sendmail binary will be
able to find its .cf file on reboot.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Apr 30 19:10:01 2000 UTC (24 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

If the site tarball included a file /install.site (upgrade.site if we
are upgrading not installing) then execute it chroot'd to /mnt.
This allows people to customize the install procedure in a simple
yet flexible manner.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Mar 19 01:14:03 2000 UTC (24 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

populateusrlocal: create the right hierarchy under /usr/local
right before unmounting the new system.
Beats having mtree files around every package...

Revision 1.11 / (download) - annotate - [select for diffs], Fri Oct 8 03:54:14 1999 UTC (24 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.10: +2 -3 lines
Diff to previous 1.10 (colored)

When making timezone link just say what it is doing, don't say
"doing...done" since it takes no noticable time...

Revision 1.10 / (download) - annotate - [select for diffs], Sun Aug 15 09:53:36 1999 UTC (24 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.9: +4 -7 lines
Diff to previous 1.9 (colored)

o When clearing a variable, do ``foo='', not ``foo=""'' to save 2 bytes.
  There are other places where double quotes are used unnecessarily as well
o Kill md_copy_kernel() and check_kernel() since the kernel is now a 'set'
o Add support for shell escapes from any prompt
o Consolidate post-install_sets sanity checks and put them in sane_install().
o install_sets() now calls sane_install() to do the sanity checks and won't
  let you continue until things are sane (as far as it can determine).

Revision 1.9 / (download) - annotate - [select for diffs], Fri Sep 11 22:45:53 1998 UTC (25 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.8: +1 -2 lines
Diff to previous 1.8 (colored)

mi get_ifdevs()

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jul 9 15:15:35 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Don't do needless sync and change -fast to -check in unmount_fs()

Revision 1.7 / (download) - annotate - [select for diffs], Wed May 14 21:22:07 1997 UTC (27 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.6: +5 -1 lines
Diff to previous 1.6 (colored)

md_machine_arch must be done after md_makerootwritable (for /kern)

Revision 1.6 / (download) - annotate - [select for diffs], Tue May 13 18:22:14 1997 UTC (27 years ago) by millert
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Explicately mention what editor is being used.

Revision 1.5 / (download) - annotate - [select for diffs], Sat May 3 23:06:02 1997 UTC (27 years, 1 month ago) by tholo
Branch: MAIN
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)

Disable twiddle() as it causes problems on some architectures
Actually install machine dependant sets if there are any specified
Special-case a set named "kernel" so that it will copy "bsd" to the root
disk

Revision 1.4 / (download) - annotate - [select for diffs], Wed Apr 30 18:52:50 1997 UTC (27 years, 1 month ago) by niklas
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

We run OpenBSD. we also want vim acting as vi.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Sep 5 21:26:43 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.2: +50 -64 lines
Diff to previous 1.2 (colored)

sync to netbsd

Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 28 21:48:20 1996 UTC (28 years, 2 months ago) by niklas
Branch: MAIN
Changes since 1.1: +24 -18 lines
Diff to previous 1.1 (colored)

From NetBSD: merge of 960317

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jan 7 13:22:56 1996 UTC (28 years, 5 months ago) by deraadt
Branch: MAIN

update from netbsd

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.