summaryrefslogtreecommitdiff
path: root/distrib
AgeCommit message (Collapse)Author
2002-07-28Since NFSCLIENT is no longer present in any RAMDISK* config, thereKenneth R Westerback
is no need for mount_nfs in any boot image.
2002-07-28New feature request by (most recently) drahn@:Kenneth R Westerback
Do not allow the same mountpoint to be specified for >1 disk partition. If a mountpoint that has already been specified is entered again an error message of the form: Invalid response: sd0a is already being mounted at /var is emitted. Partitions on both the disk being initialized and previously initialized disks are checked. Rework a bit of the logic to simplify and shorten in compensation. e.g. eliminate references to /tmp/fstab.<disk> as it is never created.
2002-07-27Fix two problems.Kenneth R Westerback
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@.
2002-07-27syncTheo de Raadt
2002-07-25Due to changes having already occured, and more being cooked at thisMiod Vallat
very moment, OpenBSD/sparc installation media will not allow upgrades to 3.2.
2002-07-24syncTheo de Raadt
2002-07-23Partial update, only track the name changes and mirror removals yet.Miod Vallat
Reminded by jufi@
2002-07-22Undo a cvs botch in the last commit that reverted a few lines.Kenneth R Westerback
2002-07-21syncTheo de Raadt
2002-07-21Put a doing...done wrapper around creation of the host.random fileHugh Graham
as this takes so long inside simh that people were assuming the system had hung. Grows install.sh 66 bytes, but krw said ok anyway!
2002-07-21syncTheo de Raadt
2002-07-20syncTheo de Raadt
2002-07-19syncTheo de Raadt
2002-07-18correct some locationsTheo de Raadt
2002-07-18Rework upgrade's fstab handling soKenneth R Westerback
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@.
2002-07-16syncTheo de Raadt
2002-07-15The default value for MDTERM is vt220, so you don't need to explicitly setKenneth R Westerback
it so.
2002-07-15Suggest vt220 as terminal type, not sun, since we are running wscons onMiod Vallat
alpha...
2002-07-13Cleanup/Shrinkage.Kenneth R Westerback
1) Eliminate more if's in favour of 'cond || stmt' or 'cond && stmt' constructs. 2) Global _didnet -> DIDNET, make local _nam a local. 3) Display 'DHCP not supported' error every time user specifies 'dhcp' but the client is not present. 4) if if_extra is empty, that's ok, so just assign $resp to it whether $resp is empty or not. 5) Check for DIDNET inside donetconfig() instead of before each call to donetconfig. 6) Eliminate superfluous 'Aborting' comments, and let the user draw their own conclusion from getting the 'Extract more sets' message. 7) Minor code tweaks like not continually assigning $resp to a value in a loop, when all we want is the final value, and only displaying 'Skipping' message in tape installs if we are actually skipping files, etc.
2002-07-13More cleanup/simplification/shrinkage.Kenneth R Westerback
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.
2002-07-12syncTheo de Raadt
2002-07-12syncTheo de Raadt
2002-07-12Eliminate list_has_sets() by eliminating its only use. Instead ofKenneth R Westerback
checking for sets when the a valid directory is given in get_setsdir(), rely on eqivalent check in get_sets() instead. Reduces code duplication and eliminates a possible duplicated error message about not finding sets in a directory.
2002-07-12Consolidate repeated logic to get non-empty $resp into aKenneth R Westerback
function ask_until(). Eliminate some unnecessary ':' statements used to initialize variables by doing initialization in first reference - i.e. when passing the variable to ask_until(). Shrinks and clarifies.
2002-07-11syncTheo de Raadt
2002-07-10radio devicesMichael Shalayeff
2002-07-09Fix typo (get_sets_list -> get_sets) that caused ftp installs to fail.Kenneth R Westerback
Noticed by STeve Andre
2002-07-09syncTheo de Raadt
2002-07-08syncTheo de Raadt
2002-07-08syncTheo de Raadt
2002-07-07More cleanup/shrinkage/clarification.Kenneth R Westerback
a) Eliminate single invocation here document functions not_going_to_install(), congrats() by putting the here document at the point of invocation. b) Make (deliberately) global variables consistantly upper case and with no leading '_'. Many variables that could be local are still creating globals. c) Make all get_* functions names conform to a convention of get_<global variable name>, where the <global_variable_name> is the global variable set by the function, or whose new value is returned by the function. d) Change _IFS to IFDEVS to be consistant with CDDEVS and DKDEVS, and initialize it at the same place. e) Handle bare '+', '-' in same place other selections are parsed rather than in a separate case statement. f) eliminate '[ "$var" ] || var=value' constructs with ': ${var:=value}' constructs. g) Rename local_sets_dir -> SETSDIR. h) Rework logic around ftp passwords to eliminate duplications and ensure a new password is asked for each time. i) Some minor cosmetic adjustments.
2002-07-07syncTheo de Raadt
2002-07-06Remove kernel support for NTP. ok deraadt@ and tholo@Thomas Nordin
2002-07-06Fix typo in get_get_files_list() that prevented sets fromKenneth R Westerback
being found for install/upgrade.
2002-07-06Remove obsolete upgrade hacks for XF3->XF4 and movingKenneth R Westerback
sendmail.cf to /etc/mail. ok deraadt@, millert@, todd@
2002-07-04More cleanup/shrinkage/clarification.Kenneth R Westerback
a) Abstract selection list handling into a function do_selection_list() rather than repeating the code twice. b) Eliminate function get_selection() and put limited remaining functionality directly into only caller, get_get_file_list(). c) Remove unused parameters in glob_selection() and invocations of same. d) Remove unused parameters from install_get_files_list() invocations. e) Remove unnecessary local parameter '_file_list' in install_mounted_fs().
2002-07-04Eliminate the separate display_* functions. A little moreKenneth R Westerback
consolidation reduces calls to these functions to either 0 (display_failure_msg()) or 1. Just put the here documents in place of the invocation.
2002-07-04Add a few scary notes about the upgrade process, and advise people toMiod Vallat
backup their data and reinstall when the release gap is too big.
2002-07-04Since the directory /var/run is now present during install/upgrade,Kenneth R Westerback
put dmesg.boot there rather than the non-normal location /tmp/dmesg.boot.
2002-07-04Fix set selection list logic so that when extracting more setsKenneth R Westerback
a) The selection list does not display default sets already transferred. b) Saying 'done' does not seem to mysteriously skip the sets erroneously shown as selected due to a). This problem was found by miod@. In the process a) Use _setsdone only to record sets that have successfully been extracted. b) Don't loop on fetching files if a transfer fails. Just let the user know, and let the normal logic offer them a chance to extract the failed sets from the same or different source. c) Eliminate some (newly) dead variables, especially the global _osetsdone.
2002-07-03syncTheo de Raadt
2002-07-03avoid dd. do not ask me whyTheo de Raadt
2002-07-01Prevent passwords of the form '-X' from being (mis)interpreted as anKenneth R Westerback
option to encrypt, by terminating option list with '--'. This generated an error during install and left root with a blank password. Mentioned a couple of months ago by Adrian Close, and dhartmei@ prodded me again today.
2002-07-01syncTheo de Raadt
2002-06-30syncTheo de Raadt
2002-06-30Mention DEC EtherWORKS and AlphaServer 800/1000/1000A support.Miod Vallat
2002-06-30Do not suggest the use of the floppy images as poor man's miniroot anymore.Miod Vallat
2002-06-30Sync supported and unsupported hardware lists with the web page.Miod Vallat
2002-06-29Some cleanup/simplification:Kenneth R Westerback
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.
2002-06-29syncTheo de Raadt