summaryrefslogtreecommitdiff
path: root/distrib/i386/common
AgeCommit message (Collapse)Author
2007-02-14put the disknames command on all install media (hope i did not miss any) ok krw@Theo de Raadt
2007-02-11Nuke MDFSTYPE and MDFSOPTS, 'mount -t ...' and giving the user theKenneth R Westerback
option to choose a filesystem type when mounting a disk. Rely on the filesystem information provided by the disklabel. When there is only one usable partition on the selected disk, just mount it without bothering the user with a question. Ensure that msdos filesystems are mounted with '-s' so that the names of the install sets will be in lower case and thus visible to the script. msdos problems noted by Rodolfo Gouveia, who did a lot of testing and debugging. 'mount -t ...' silliness pointed out by deraadt@.
2006-03-06eject -> mt (except on alpha where size tests are needed)Theo de Raadt
2005-05-04Put pax/tar/cpio at the same location in all installation media.Miod Vallat
2005-04-02Scrounge a few more characters of whitespace, mostly to be consistant.Kenneth R Westerback
2005-03-27Use new skeleton kbd(8) '-l' to generalize kbd(8) use. EliminateKenneth R Westerback
fixed list of available maps and machine dependant md_set_term() functions. Any ramdisk with /sbin/kbd present (amd64, cats, i386 at the moment) will now present list of available keyboard encodings. ok deraadt@
2005-03-26Simplify/shrink kbd(8) logic and verbiage. Always ask for best kbd(8)Kenneth R Westerback
table. ok deraadt@
2005-03-26Start some delayed cleanup and shrinkage. Today: ': ;' -> ':;' inKenneth R Westerback
while statements.
2005-01-12remove some differencesTheo de Raadt
2005-01-11put a seperate and real fsck on the mediaTheo de Raadt
2004-12-29nothing uses a SRCDIR of gnu anymore, proposed by mickey, tested by meTheo de Raadt
2004-11-25crank ramdisk filesystem slightly to cope with firmwares inside the filesystemTheo de Raadt
2004-10-02Last use of sleep(1) in install scripts was eliminated by recentKenneth R Westerback
re-write of install_cd() so remove sleep(1) from install media. "sure!" deraadt@
2004-09-12add br keymap; from miodTheo de Raadt
2004-06-26Allow change of default console to first serial device during install. Used inKenneth R Westerback
i386 only at this time. ok beck@ deraadt@
2004-05-05better cleandirTheo de Raadt
2004-03-03Use 'cat' rather than 'cp' to put /boot on disk. This preservesKenneth R Westerback
/boot's i-node number and allows multiboot (NTLDR) setups to work across upgrades. Suggested by Tom Cosgrove and Todd Miller. NOTE: Will only work if preserved biosboot is an LBA biosboot. i.e. won't work for 3.4 -> 3.5 upgrade because LBA biosboot went in post-3.4. ok millert@ deraadt@ tom@ nick@
2004-01-28Now that installboot is geometry-independent, FLOPPYSECS is notTom Cosgrove
required when making release. requested by and ok deraadt@
2004-01-26Major overhaul of biosboot and installboot, using EDD (LBA) reads ifTom Cosgrove
the BIOS supports it. File location data now geometry-independent (biosboot groks part of the inode), so installboot loses -h and -s. Many thanks to all those brave enough to try the snapshots. Thanks for the test reports, everyone. ok deraadt@
2003-10-12Cleanup and shrinkage:Kenneth R Westerback
1) Eliminate 'WARNING: Disk xxx has no label.' message. When installing OpenBSD this is a normal condition not worth commenting on. From some discussion on hackers/icb. 2) Use consistant verbiage and case statement when checking the disklabel. 3) Consistantly suppress output of 'disklabel -W', reducing duplicate messages like '# using MBR partition ...' which are issued again when the 'disklabel -f ...' command is executed. 4) Usual code rectifications - eliminate extra {}'s, multiple echos elimination, etc.
2003-09-22Introduce a function ask_yn() to use when asking 'yes or no'Kenneth R Westerback
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.
2003-09-21Fix extraneous display of grep output when searching disklabel output forKenneth R Westerback
error information. Previously things like: disklabel: no disk label WARNING: Disk wd0 has no disk label. You will be creating a new one. would be printed. Now the 'disklabel: no disk label' message is correctly sent to /dev/null. Take the opportunity to clean up a bit of code and formatting, making all the md_checkfordisklabel() functions as identical as possible.
2003-08-16Minor cosmetic cleanup.Kenneth R Westerback
Use '<msg>...done.' consistantly by replacing last five varient uses. Out with '<msg> ... done.', '<msg>...Done.', etc.
2003-08-08strip .comments too; from drahnTheo de Raadt
2003-08-08make the turd shinyTheo de Raadt
2003-08-08rsh goes away, sorryTheo de Raadt
2003-04-26slight cleaningTheo de Raadt
2003-04-17distrib(ramdisk) bits for i386/ELF.Dale Rahn
2003-01-26Mount msdos filesystems with -s (shortnames) rather than -lKenneth R Westerback
(longnames). This ensures the install sets are listed in lowercase and are thus visible to the install/upgrade scripts. Installing/upgrading from sets on msdos partitions should now work (again?). Problem noticed by Michael Lucas. deraadt@ ok
2003-01-03Save a few more bytes on install media by stripping comments fromKenneth R Westerback
dhclient-script and disktab files in architectures where this wasn't already being done. OK deraadt@.
2002-12-14Expunge some trailing whitespace.Kenneth R Westerback
From David Krause.
2002-12-08Add 'br' (Brazil) to displayed list of keyboard encoding tables.Kenneth R Westerback
From Pedro Bastos.
2002-11-07Treat 'bsd' like just another filename in THESETS, no more 'kernel'Kenneth R Westerback
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.
2002-10-05Fix a typo ('Your' -> 'You'). Spotted by Julien Bordet.Kenneth R Westerback
2002-09-23remove generated crunch conf; ok deraadt@Markus Friedl
2002-09-22Do not allow install to proceed until root filesystem can be mounted onKenneth R Westerback
$ROOTDEV and ${ROOTDISK}b can be used for swap. Also shortens output generated during (successful) install. Fix problem with upgrade on systems with many disk devices by automatically creating devices encountered during the fsck'ing of fstab filesystems. Problem noted by Dethlef Madsen and Nick Nauwelaerts. Adjust some verbiage in i386 install.md to make it more consistant. Reformat welcome message to make sure all lines are <80 characters wide. Minor cleanups.
2002-09-21Further reduce i386 install output by sending to /dev/null the fdiskKenneth R Westerback
output produced when the user opts to have the install script use the entire disk for OpenBSD. ok deraadt@.
2002-09-17Ruthlessly expunge unnecessary verbiage and whitespace to make sureKenneth R Westerback
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@.
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-07-03avoid dd. do not ask me whyTheo de Raadt
2002-05-20Eliminate md_questions(). It was used only to control the setting ofKenneth R Westerback
machdep.allowaperture. Remove the setting of machdep.allowaperture from md_installboot(). Add MDXAPERTURE variable to relevant architectures. Add a new function set_machdep_allowaperture(). It is called *after* install_sets() (which changes when the X Window question is asked), and if MDXAPERTURE is present modifies sysctl.conf. Shrinks overall size for i386, macppc, sparc64 (which used md_questions for machdep.allowaperture) but increases size a bit for other architectures since set_machep_allowaperture is in install.sub.
2002-05-19do this by handTheo de Raadt
2002-05-18Use __EOT (as for all other <<'s) instead of __EOCKenneth R Westerback
2002-05-18Eliminate md_get_diskdevs() and md_get_cddevs() byKenneth R Westerback
1) Saving one boot's worth of dmesg in /tmp/dmesg.boot 2) Using sed to scan for devices and pull out names in new get_diskdevs() and get_cddevs() in install.sub 3) Saving any md disk/cd sed patterns in MDDISKDEVS and MDCDDEVS variables.
2002-05-14Eliminate md_native_fstype() and md_native_fsopts(). Both functionsKenneth R Westerback
simply echo'd a single word if present at all. Replace with variables MDFSTYPE and MDFSOPTS if required. Rework logic in install.sub's mount_a_disk() to always include 'ro' as an option to the mount command. This allows even those arch's with MDFSTYPE to usually get by without MDFSOPTS. ok deraadt@
2002-05-09Elminate md_welcome_banner() and md_not_going_to_install() as theKenneth R Westerback
output of both was essentially identical on all architectures. Replace with welcome_banner() and not_going_to_install() in install.sub. Abstract common verbiage from md_congrats() into congrats() which calls md_congrats() for any architecture specific additional verbiage. Reword things so ${MODE} can be plausibly used in more places. Remove extraneous #!/bin/sh in hp300 install.md. ok deraadt@ espie@
2002-05-08Abstract out common md_set_term() code into set_term() in install.sub,Kenneth R Westerback
calling md_set_term() from set_term() to do machine dependent stuff. Currently only i386 does anything - keyboard mappings. Add MDTERM variable to allow install.md to set proper default terminal type. Default to vt220. Eliminate md_get_partition_range() as useless since every architecture returned '[a-p]'. Make default term for all mvme* architectures vt100 as requested by miod@. ok deraadt@ millert@ miod@
2002-05-01when filtering termcap selecet vt220, not vt200, since that's what we gonna ↵Michael Shalayeff
use later, plus a few rcsid vicinity cleanups; millert@ ok
2002-04-30Swap sbin/fsck and sbin/fsck_ffs in the LINK line. Now that we useTodd C. Miller
makeconf.awk, order matters here. With the previous order only the fsck wrapper was included and fsck_ffs was linked to it. This resulted in fsck fork bombing until the proc table was full.
2002-04-30make use of makeconf.awkTheo de Raadt