summaryrefslogtreecommitdiff
path: root/distrib/miniroot/install.sub
AgeCommit message (Collapse)Author
2004-08-09move to 3.6-betaTheo de Raadt
2004-07-25Don't need to specify 9600 as the default speed, since it is first on theKenneth R Westerback
list of speeds and thus the default default.
2004-07-18Make bsd.rd a default set.Kenneth R Westerback
ok deraadt@
2004-07-18spacesTheo de Raadt
2004-07-18For set installation via URL or NFS, assume the network has been configuredKenneth R Westerback
to the user's satisfaction. ok tdeval@ deraadt@
2004-07-17Delete unused local vars.Kenneth R Westerback
2004-07-17Add 'stty <tty> <speed>' line to boot.conf if serial console isKenneth R Westerback
made the default console. Ensures specified speed is actually used. Pointed out by Derick Siddoway and Bob Humphrey. ok deraadt@
2004-07-17Don't add '/'s to timezone path when null input enteredKenneth R Westerback
as sub-timezone. Pointed out by cloder@.
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-06-22Don't make xetc a default install set.Kenneth R Westerback
ok matthieu@
2004-06-22introduce the new xetc set. ok deraadt@, miod@, krw@.Matthieu Herrb
2004-06-20If all default sets have been successfully installed, make [done] theKenneth R Westerback
default answer to 'Where are the install sets?'. Requested by various, most recently Henning and Theo.
2004-06-13if bsd.mp exists... let a user install itTheo de Raadt
2004-04-12Refactor network initialization code into explicit v4 routines toKenneth R Westerback
prepare for v6 initialization. Minor verbiage changes, and not asking for v4 default route if no v4 addresses were configured are the only user visible changes. ok deraadt@.
2004-03-23Update copyrights to 2004.Kenneth R Westerback
ok deraadt@.
2004-03-18Don't ask for timezone info during an upgrade.Kenneth R Westerback
Suggestion by Tom Cosgrove. ok miod@ millert@ deraadt@.
2004-03-16save 2 bytes due to tabsTheo de Raadt
2004-03-14Fix sane_install() tests to use relevant directories/files. TightenKenneth R Westerback
emitted error messages. Change default response to 'Use the nameserver now?' from a 'y' to 'yes' to be consistant with other ask_yn() usages. ok beck@ deraadt@.
2004-03-09URL-encode all usercode/password characters between 0x20 and 0x7e so thatKenneth R Westerback
more weird usercodes and passwords work. Embedded blanks especially. ok beck@.
2004-02-28Revert v1.314 changes adding '~' to user supplied relative ftp paths,Kenneth R Westerback
since today's ftp/fetch.c commit fixes real issue, and v1.314 broke 'ftp' user. Problems with 'ftp' user reported by Stephen Kirkham of UofA.
2004-02-27move to 3.5-betaTheo de Raadt
2004-02-08Shave a few more characters.Kenneth R Westerback
2004-02-08Replace 'localhost' with '127.0.0.1' and add -q to route invocationsKenneth R Westerback
in enable_network(). From /etc/netstart.
2004-02-08Add loopback routes late during upgrades, as /etc/netstart does now.Kenneth R Westerback
Scavange a couple of characters while in the area.
2004-02-08Fix typo: 2>&2 -> 2>&1.Kenneth R Westerback
2004-02-07Simplify inet line processing in inet_info().Kenneth R Westerback
2004-01-11With wonderful new dhclient there is no need to try to kill a runningKenneth R Westerback
client or to run it with -1.
2003-12-21Bowing to the relentless pressure from Nick Holland, change the default answerKenneth R Westerback
to 'Use the nameserver now?' to 'yes'. ok deraadt@.
2003-12-04shorten a teeny bit moreTheo de Raadt
2003-12-04ask if sshd should be on by default (default to yes, still); tested by nickTheo de Raadt
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-08-23If any interface has been configured using DHCP, assume the default routeKenneth R Westerback
will be set by DHCP. ok drahn@ beck@ henning@
2003-08-17'Security' fix/cleanup/shrinkage.Kenneth R Westerback
Don't leave ftp password in a global variable. It is re-initialized each time it is used anyway. Use a shorter (_passwd vs _ftp_server_password) local variable name to save a few bytes.
2003-08-17Message clarification & cleanup.Kenneth R Westerback
Replace the generic 'Done - no available Xs found.' message with two more relevant ones. Suggested several times, most memorably by Todd@. a) For selection of disks or cds to install from, and for selection of the root disk, make it 'No Xs found.'. b) For processing the list of disks or interfaces to initialize, make it 'No more Xs to initialize.'. Delete get_root() as it is only called in one place, and insert code at that location. Reclaim a few characters by putting ask_which() punctuation where message is output rather than repeating it where message passed.
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-11move to 3.4-betaTheo de Raadt
2003-08-07spacesTheo de Raadt
2003-07-10Try to ensure that ftp gets install sets from the same directory itKenneth R Westerback
looked in to get the list of available sets. The list of available sets is obtained by connecting to the ftp server interactively and issuing the commands user <user> <pass> cd <dir> ls where <dir> is treated as a relative path unless the user enters an initial '/'. But the files are obtained by issuing the command ftp ftp://<user>:<pass>@<host>/<dir> and here <dir> is treated as an absolute path. When using non-anonymous ftp this difference in the treatment of <dir> could result in a) Unhelpful error messages and unsuccessfull transfers. b) Different sets than intended being installed. c) Incorrect lists of available sets being displayed. Now, the non-anonymous ftp transfer command with relative paths (i.e. no leading '/' or '~') will look like ftp ftp://<user>:<pass>@<host>/~/<dir> Problem reported by (amoung others) Sebastian Stark, Nick Holland, Steven Boothe, Sam Smith, Sergey Smitienko, Stephen Marley, Brad Ely. ok millert@.
2003-07-10Ensure that the install/upgrade process is not troubled by any ulimitKenneth R Westerback
settings. Set them all to 'unlimited'. Problem with datasize limit vs fsck of large filesystem noted by millert@. ok millert@.
2003-07-03Use numeric comparison operators when testing numeric values.Kenneth R Westerback
2003-07-03Clarify and shrink.Kenneth R Westerback
In addel(), use $* and isin to avoid a duplicated traversal of the argument list. In bsort() remove code designed to prevent a trailing space in sorted list. With the elimination of cutlast() and cutword() this is not longer necessary. The usual [] -> [[]], etc. in areas being revised.
2003-07-02Eliminate cutword(), replacing it with specific code: 'set --' in twoKenneth R Westerback
cases and a simple sed expression in the third. Add pfsync to the list of interfaces that should not be offered to the user for configuration. Display the server line selected from the ftp/http server list in a more compact form with only a single space between fields. The usual [] -> [[]], etc. in areas being revised.
2003-06-30Cleanup ask_which() logic.Kenneth R Westerback
Use first device in supplied list as default unless overridden. Eliminates repeated 'echo XXX | cutword 1' constructs. Use 'set -- $_devs' to parse _devs and find out if there are any devices in the list. Then use '_devs="$*" to eliminate all extraneous whitespace from _devs, rather than just a single trailing blank. Usual [...] -> [[...]], `` -> $(), extra '{}' and '"' eliminations in areas being fixed up.
2003-06-30Use built in pattern matching rather than cutlast() when extractingKenneth R Westerback
timezone name from '/etc/localtime' link. Use cutword() rather than cutlast() to see if there is more than one possible root disk. As these were the last two uses of cutlast(), eradicate it. Usual [...] -> [[...]], `` -> $(), extra '{}' and '"' eliminations in areas being fixed up.
2003-06-27Improve swap partition handling during install/upgrade.Kenneth R Westerback
a) Add all defined swap partitions except the default partition on the root disk to the installed /etc/fstab. b) Mount all possible swap partitions just before creating all devices, giving small memory machines a better chance to successfully install/upgrade. Should obviate the need for FAQ 4.3.6. ok deraadt@ millert@ (slightly earlier version)
2003-06-23Minor cleanups.Kenneth R Westerback
1) Don't check for the existance of /mnt/etc/hosts twice. Since we bail out at the first check the 2nd one is superfluous. 2) Shorten and clarify the upgrade network configuration logic. 3) Always ask if manual network configuration is desired when upgrading. Allows the upgrader to decline to use the existing network configuration and still have an explicit opportunity to configure the network. 4) Don't bail out if the existing network configuration fails. Instead (see 3)) offer manual network configuration and let the user decide if it is worthwhile to continue. 5) Refer to actual file that is missing when bailing out, rather than forcing user to be alert enough to prepend '/mnt'.
2003-06-21Make file selection more resistant to unexpected user input.Kenneth R Westerback
Rather than evaluating the expression case _f in $resp) ... esac use the equivalent form case _f in @($resp)) ... esac so that user input with multiple file names, user input with some special characters like ';', etc. do not cause syntax errors and premature ejection from the selection loop. A determined user can still cause problems, e.g. by using quotes. Clean up and simplify the code while in the area. Problems noted by todd@.
2003-06-02licence cleanup; agreement from krw and millertTheo de Raadt
2003-05-12More cleanup and fixes in url installs.Kenneth R Westerback
1) Filter appropriate lines (ftp or http) from ftplist once when it is downloaded rather than everytime the lines are needed. 2) Don't display the 'ftp://' or 'http://' part of the listed url's as all displayed url's are of the same type. Partially compensates for the last increase in the width of the 'cat -n' line number field. 3) Store filtered lines in /tmp/serverlist instead of /tmp/ftplist, since it can be a list of http servers too. Makes it more obvious that it is not a copy of ftplist. 4) Avoid 'ftplist: No such file' message, but add more informative 'Getting...done.' or 'Getting...FAILED.' message. Display the actual ftp error that caused the FAILED status. 5) Add 'done' to the list of available options when asking for a server location, allowing the user to return to set location selection without having to enter a server. 6) Mention the '?' option in the prompt. It re-displays the list of servers. 7) Eliminate unneeded variables 'host' and 'maxlines'. Make global tline a local (_line). Change _ftp_get_list global to more generic _get_server_list. 8) General logic cleanup.
2003-05-12Fix 'eval' statement in _url_base construction so that we use theKenneth R Westerback
contents of ftp_server_dir or http_server_dir, and not their names. ftp and http installs now work again.