summaryrefslogtreecommitdiff
path: root/distrib
AgeCommit message (Collapse)Author
2002-08-29syncTheo de Raadt
2002-08-29Add a new verb to list2sh.awk, 'REMOVE'. This allows the easyKenneth R Westerback
disabling of '(U)pgrade' in architectures by adding REMOVE upgrade to the end of the 'list' file for that architecture. Add code to dot.profile to check for the presence of the upgrade script before offering to (U)pgrade. Use the new verb to disable upgrades for sparc. ok deraadt@.
2002-08-28syncTheo de Raadt
2002-08-27Missed file in last commit.Kenneth R Westerback
2002-08-27Move general partitioning advice from machine dependant per diskKenneth R Westerback
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.
2002-08-25Add 'MDXAPERTURE=1' as requested by Matthieu.Kenneth R Westerback
2002-08-25More fixes to mount point handling.Kenneth R Westerback
1) Correctly sort >10 total partitions. 2) Don't allow user to specify duplicate mount points via disklabel. 3) Fix mount point checking so that empty mount points do not confuse logic. 4) Fix mount point checking so that duplicate mount points from previous disk initialization are correctly detected. 5) Show configured partitions/mount points in partition order (i.e. sorted by disk and then partition) rather than mount point order. This seems easier to read to me and reflects the order of user action. Sort the entries after user approval. 6) Clarify, clean up some verbiage and logic.
2002-08-22syncTheo de Raadt
2002-08-20ultra60 supportJason Wright
2002-08-20U60 works now.Miod Vallat
2002-08-20wscons on sparc sets updatesMiod Vallat
2002-08-18Fix various mount point problems:Kenneth R Westerback
1) Fix 'already mounted' checking so a mount point name can be the same as the leading substring of a previously specified mount point. Now you can specify /usr after /usr/obj, and since the mount points are sorted before writing to fstab, it should work. This also fixes the error message generated when a requested mount point matches the leading substring of multiple mount points. e.g. trying to mount '/' again. 2) Fix fstab sorting so that it works across all initialized disks, not just on a disk by disk basis. 3) For additional paranoia during multiple disk installs, unset _partitions, _psizes, and _mount_points before processing a disk. Eliminate individual blanking of _mount_points entries. 4) Shorten/simplify logic by storing ${DISK} in _partitions entries rather than always adding it back in when referencing _partitions. 5) Rework verbiage a bit, eliminating the duplicate display of configured devices before making new filesystems. Some code clean up, eliminating '{}'s, better loops, ifs, etc. Appox. 67 bytes net bloat.
2002-08-15Fix a problem with re-started installs that caused the domainKenneth R Westerback
name to be repeatedly appended to the host name. Simply strip the domain name from the host name read from /tmp/myname. Problem noted by Nick Holland.
2002-08-15syncTheo de Raadt
2002-08-15syncTheo de Raadt
2002-08-12Sync hardware list with the current state of the code.Miod Vallat
2002-08-12Enable wscons code on sparc, and let kbd_sparc.c dieMiod Vallat
2002-08-11A good guess about what needs updating for sparc/ELF. This is notArtur Grabowski
complete, documentation is missing, but I'll let someone who knows the sets fix this properly. Those pieces at least allow me to finish a usable snapshot.
2002-08-05If ELF_TOOLCHAIN, pass -E to crunchgen and build elfrdsetroot insteadArtur Grabowski
of rdsetroot.
2002-08-05Prepare for sparc/ELF.Artur Grabowski
2002-08-05add bwtwoJason Wright
2002-07-31/tmp/fstab.$DISK is created in install.md, so put back referencesKenneth R Westerback
to it. Fixes mount point prompts during install. 'Improve' an error message. Noted by todd@ and jsyn@.
2002-07-30Mention PGX and PGX24 here too.Miod Vallat
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