summaryrefslogtreecommitdiff
path: root/distrib/miniroot
AgeCommit message (Collapse)Author
2002-03-22move to 3.1-betaTheo de Raadt
2002-03-22Clean up getresp() byKenneth R Westerback
1) Deleting code for '-s' option, which was never used. 2) Deleting code for >1 parameters after optional '-n'. Also never used. @ok millert
2002-03-19Save more dhclient configuration info during installation.Kenneth R Westerback
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@
2002-03-17Examine correct fields in mount(8) output to determine if rootKenneth R Westerback
is nfs mounted, i.e. install is running on a diskless machine. ok millert@
2002-03-04Update Copyright(c)'s to 2002Kenneth R Westerback
2002-03-04Change the default install sets to include everything but the X sets.Kenneth R Westerback
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
2002-03-03Cleanup/Improve trap handling.Kenneth R Westerback
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@
2002-01-24Fix `necesary' typos; Alexander YurchenkoTodd C. Miller
Alas many of these were introduced by yours truly as necessary just doesn't look right to me for some reason ;-)
2001-12-23Some minor typographical adjustments:Kenneth R Westerback
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'
2001-12-22Enable users to fix filesystem problems encountered by fsck inKenneth R Westerback
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@
2001-12-17Use actual files for short versions of /etc/protocols andKenneth R Westerback
/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@.
2001-12-13Remove /etc/protocols and /etc/services from install mediaKenneth R Westerback
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.
2001-11-25Squeeze all obvious <blank>+<tab> and <tab><blank>+ combinationsKenneth R Westerback
out. Save about 287 bytes. Based on diff from deraadt@. Update Copyright (ok deraadt@).
2001-11-25Add capability to accept & correctly process a root password withKenneth R Westerback
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@).
2001-11-24Fix bsort() so that trailing spaces are not emitted.Kenneth R Westerback
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.
2001-11-22Fix getresp() so that imbedded or trailing blanks in theKenneth R Westerback
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@.
2001-11-20Encode usercode/password in ftp url's as required by RFC 1738,Kenneth R Westerback
section 3.1. Allows for use of '@', ':' and '/' in usercodes and passwords without confusion. ok deraadt@
2001-11-19remove 6 spaces or tabs at end of line, making this file 6 bytes smaller. ↵Theo de Raadt
eat your heart out krw
2001-11-18Purge more (last?) comments from install scripts by removing allKenneth R Westerback
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.
2001-11-17Improve/enhance network handling during installations.Kenneth R Westerback
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@
2001-10-31Fix creation of /etc/hosts file in install.Kenneth R Westerback
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.
2001-10-15Resync the upgrade script's enable_network() function with theKenneth R Westerback
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@
2001-10-14Use double quotes around the password variable--should close PR 2114Todd C. Miller
2001-10-11Do *not* copy the possibly edited fstab back to disk afterKenneth R Westerback
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@
2001-10-02more gnu/usr.bin before usr.binTheo de Raadt
2001-09-19Fix typo: succesfully -> successfullyKenneth R Westerback
2001-09-17zap kernfsTheo de Raadt
2001-09-11move to 3.0-betaTheo de Raadt
2001-09-04MB == megabytes, Mb == megabitsTheo de Raadt
2001-08-07suggest CET, not MET, ok deraadt@Markus Friedl
2001-06-23argh. stop using kernfs, using dmesg using sysctl. encode ARCH intoTheo de Raadt
install.md at build time. remove some crud. and the icing on the cake: skip testing all this until next week
2001-04-20Cleanup, new features, shrinkage.Kenneth R Westerback
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@
2001-04-16Fix a couple of nits: delete some unnecessary commas andKenneth R Westerback
only print a 'Done.' for fsck'ing if fsck'ing is actually attempted. ok deraadt@
2001-04-15move to 2.9-betaTheo de Raadt
2001-03-26spellingTodd T. Fries
2001-02-23back out prev change. I should read ALL of my mail before actingMarco S Hyman
2001-02-23create dhclient.leases when needed; ok deraadt@Marco S Hyman
2001-02-12fix http handling; reported as busted by don@research-cistw.saic.comTheo de Raadt
2000-12-10ignore filesystems marked "xx"; os@atina.arTheo de Raadt
2000-11-20correct url handling; canacar@eee.metu.edu.trTheo de Raadt
2000-10-09Replace gratuitous eval by results of the evaluation, in particularChristian Weisgerber
don't eval ${_ftp_server_password}. This should allow FTP passwords that contain shell meta characters. ok millert@
2000-09-13Fix problem with bsort and multiple input data, original fix byDale S. Rahn
me, bytes saved by millert, OKed by mickey, millert.
2000-08-212.8-beta (so that X11 can distinguish login.conf)Theo de Raadt
2000-07-25deal with chflags merge, againTheo de Raadt
2000-06-23implement bubble sort in ksh instead of using sort(1).Michael Shalayeff
i think i'll fix sparc next week to use it.
2000-06-16ssl package no longer needed (will be tested)Theo de Raadt
2000-06-12fix ch* linksTheo de Raadt
2000-06-09chown/chgrp changesMichael Shalayeff
2000-06-01Add missing -n flag to getresp; noted by maurice@ivo.ig.netTodd C. Miller
2000-05-12fix an oopsie; millertTheo de Raadt