Age | Commit message (Collapse) | Author |
|
|
|
1) Deleting code for '-s' option, which was never used.
2) Deleting code for >1 parameters after optional '-n'.
Also never used.
@ok millert
|
|
In particular
a) save dhclient.leases so the lease obtained during installation
is retained.
b) create /etc/resolv.conf.tail with 'lookup file bind' so that
the resolv.conf files created by dhclient have the same settings
as the default resolv.conf we install. i.e. use the /etc/hosts
file before trying bind.
ok millert@
|
|
is nfs mounted, i.e. install is running on a diskless machine.
ok millert@
|
|
|
|
This should cut down on the inquires on @misc/@tech about missing
compilers, etc. In the days of 180GB disks we should not run out of
space too often.
Clean up some logic, removing references to -reuse and -minpat
arguments in install_url(), as install_url() is only called with -http
or -ftp.
Simplify selector setup by noting that $_sets is carefully initialized
to hold only file names ending in .tgz or .tar.gz.
@ok millert
|
|
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@
|
|
Alas many of these were introduced by yours truly as necessary
just doesn't look right to me for some reason ;-)
|
|
a) Indent encode_for_url() in install.sub with tabs not spaces
b) delete a couple of extra blank lines
c) delete a few unnecessary ';'s at the end of lines
d) delete a few unnecessary '"'s around values assigned to resp (e.g.
'resp="X"' to 'resp=X'
|
|
check_fs() and unmount_fs() by restricting i/o redirection to the
reading of fstab.
Fix a typo ('succes' -> 'success').
Indent lines inside check_fs() and unmount_fs() functions.
Eliminate an unused variable _mps in check_fs().
ok millert@
|
|
/etc/services used during installations.
This way it is not necessary to run the install script before
using commands requiring these files.
Requested by deraadt@.
|
|
that use the miniroot install scripts.
During an install, donetconfig() in miniroot/install.sub now
creates a minimal /etc/protocols and /etc/services.
During an upgrade, enable_network() now copies the existing
protocols and services files into /etc.
Saves approximately 13K on floppy/cd images.
|
|
out. Save about 287 bytes. Based on diff from deraadt@.
Update Copyright (ok deraadt@).
|
|
trailing spaces during install.
Do not make the previously entered first password value the default
value if passwords do not match the first time.
Update Copyright (ok deraadt@).
|
|
When a system is rebooted rather than power cycled it is possible
for duplicate entries for a disk or cd to appear in the dmesg
output. One from the previous boot and one from the current
reboot.
bsort() correctly filtered out the duplicates, but could emit a
trailing space.
This trailing space caused problems when, for instance, the root
disk was being determined. With the trailing space present, the
install or upgrade script would not fill in the default root disk,
even if the system only had one disk.
|
|
default response ($1) are preserved in $resp.
Fix handling of _ftp_server_login, _ftp_server_password and
_url_base so any blanks present are preserved.
Problem with blanks pointed out by drahn@.
|
|
section 3.1. Allows for use of '@', ':' and '/' in usercodes
and passwords without confusion.
ok deraadt@
|
|
eat your heart out krw
|
|
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.
|
|
a) Allow user to enter empty FQDN and assume DHCP will supply one.
b) Silently check for any DHCP supplied FQDN after network
interfaces are initialized. *NOTE* DHCP information will
now override any user supplied FQDN.
c) Apply FQDN information to hosts file only after DHCP has had a
chance to supply information.
d) Don't modify hosts file if FQDN is empty.
e) Don't preserve hosts file across install script restarts.
f) Don't preserve hostname.* files across install script restarts.
g) Don't preserve decision to use resolver during install across
install script restarts.
h) Don't allow DHCP to force use of resolver during install.
i) Ensure DHCP created resolv.conf file is saved as /etc/resolv.conf.
j) Add IPv6 localhost ('::1') line to hosts file. (Closes PR#2155)
k) Make IPv4 and IPv6 localhost lines in hosts file look like
'X localhost.domain.name localhost'
Bonus: install.sub on the floppy image is 51 bytes smaller.
ok millert@
|
|
Obtaining the FQDN *after* calling configurenetwork(), so that
DHCP info can be used, turns out to not be a good idea because
/etc/hosts is created in configurenetwork().
As a result the /etc/hosts created by the 3.0 install script
contains bogus entries with a '.' instead of '.<domain name>'.
So, put configurenetwork() back where it was pre-3.0, i.e. after
FQDN is determined.
Noticed by David Krause (PR#2155).
Other /etc/hosts issues (including David's ipv6 suggestion) under
investigation.
|
|
current /etc/netstart, leaving out all code relevant to IPv6 and
multicasting.
In addition, ignore any '!' lines in hostname.if files and ignore
any bridge.if files.
This change enables dhcp configured interfaces to work during the
upgrade process, amoung other improvements.
Also rework FQDN handling to ensure that it is set *after* any
dhcp activity and is set both during installs and upgrades. FQDN
is now set from the last DOMAIN or SEARCH statement in
resolv.conf.
Architecture specific install.sub's (macppc, mvme68k, mvme88k,
mvmeppc, sparc64) are not being updated for 3.0.
ok deraadt@
|
|
|
|
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@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install.md at build time. remove some crud. and the icing on the cake:
skip testing all this until next week
|
|
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@
|
|
only print a 'Done.' for fsck'ing if fsck'ing is actually
attempted.
ok deraadt@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
don't eval ${_ftp_server_password}. This should allow FTP passwords
that contain shell meta characters.
ok millert@
|
|
me, bytes saved by millert, OKed by mickey, millert.
|
|
|
|
|
|
i think i'll fix sparc next week to use it.
|
|
|
|
|
|
|
|
|
|
|