summaryrefslogtreecommitdiff
path: root/distrib/miniroot
AgeCommit message (Collapse)Author
2015-11-20don't auto-skip X sets on systems without wscons, you can remove them easilyStuart Henderson
with -x*, and "no wscons" doesn't cover all of the systems where one might intentionally want to skip them anyway. ok bmercer deraadt espie rpe
2015-11-18Now that the transition is over, have the installer set 'prohibit-password'Stuart Henderson
in sshd_config instead of 'without-password'. "it is time" deraadt@
2015-11-14no longer need -locurses, since more is selfcontainedTheo de Raadt
2015-09-27HEAD is past 5.8 now, so remove /var/tmp removal tweak.Alexander Hall
ok krw@
2015-09-09zap trailing whitespaceAlexander Hall
2015-09-09At some point back in time, the disk info (obtained by responding '?' atAlexander Hall
the root disk question) got some extra linefeeds in it. This fixes the output to be one line per disk again. ok krw@
2015-08-24/usr/share/sysmerge -> /var/sysmergeAntoine Jacoutot
requested by several discussed with deraadt@
2015-08-06match change to prohibit-password. however, also default to "no", asTheo de Raadt
as strong secure-by-default stance. people who upload root keys via site.tgz need to adjust sshd_config; those who load a root key via autoinstall should trigger on this question and select prohibit-password. discussed at length
2015-08-06spellingTheo de Raadt
2015-08-06Change the ssh root login question to avoid the unnatural keywordTheo de Raadt
"without-password". Instead use "pubkeys-only" which people will find conceptually easier. Still quietly accept "w" or "without-password" as an option. Place a warning beforehands: WARNING: root is targetted by password guessing attacks, pubkeys are safer. Everyone happy now, or at learning to not use root passwords?
2015-08-01- Be more specific as to what accept as answer to the "Allow rootRobert Peichaer
ssh login?" question. Either the first letter or the whole word - Use grep to check for the default in sshd_config - Simplify sed expression for changing sshd_config Based on feedback from and OK halex@
2015-07-30Change installer to cope with the new sshd_config(5) default forRobert Peichaer
the PermitRootLogin option. Additionally to 'yes' and 'no' allow 'without-password' and make that the proposed default answer for the "Allow root ssh login?" question. Modify sshd_config only if the user choice is not the default. OK deraadt discussed with halex@, sthen@ and others
2015-07-20Fix some typos and reformat comments.Robert Peichaer
OK halex@
2015-07-19Replace two instances where ed is used for inplace editing of filesRobert Peichaer
with the new sed -i. "Nice" deraadt@ OK krw@ jasper@
2015-07-19Use the %c (version or snapshots) and %a (package architecture) forRobert Peichaer
installpath in pkg.conf instead of hardcoding that information. This fixes the problem, that installpath has a path from an older release after updating from disk for a while. NOTE: This matches fw_update behaviour in that during a beta cycle, it will expand to 5.8 (for e.g.) instead of snapshots. requested by and OK ajacoutot@ OK halex@ krw@
2015-07-17Remove spaces before the double semicolons in case-blocks.Robert Peichaer
OK krw@ halex@
2015-07-16zap trailing whitespaceAlexander Hall
with rpe's blessing
2015-07-05In case-statements where single and multiline commands are used,Robert Peichaer
put the terminating ;; always on its own line. discussed with and OK krw@ halex@
2015-07-03Use [aA]* instead of a*|A* in case-blocks.Robert Peichaer
OK krw@ @halex agreed on this in a similar diff
2015-07-01Use ksh style tests like in the rest of the installer scripts.Robert Peichaer
OK krw@ halex@
2015-06-02Remove the $FSTABFLAG variable and use -F directly. The installerRobert Peichaer
uses disklabel UIDs unconditionally for a while already. OK krw@ "looks good" deraadt@
2015-05-31Replace identical code in the MD scripts of the installer with a newRobert Peichaer
MI function disklabel_autolayout() which now handles all aspects of the disklabel auto-layout and autopartitioning case for the root disk. Remove get_disklabel_template() and merge it with the new function. "move forward" deraadt@
2015-05-20Merge the get_drive() function with install_disk(), which is theRobert Peichaer
only remaining consumer. OK krw@
2015-05-19Fix installing sets from cdrom if more than one drive is present.Robert Peichaer
Run makedev in install_cdrom() to create the necessary device nodes, which got lost in a recent change. Found by James Hartley, thanks for the bug report! OK krw@
2015-05-18enable ntpd by default at install time. We use pools and a reliableTheo de Raadt
constraint to keep them in check. in the worst case of being on a dark net, nothing changes. this is being enabled by default to allow gathering of more operational information from users. and if the operational heuristics in ntpd can be suitable refined, this may stay the default into the future. if not, ntpd will become even more awesome along the way. with reyk rpe
2015-05-15Remove the 'Use DUIDs rather than device names in fstab?' questionRobert Peichaer
and use DUIDs unconditionally. DUIDs in the installed /etc/fstab has been the default for quite some time now. OK deraadt@, krw@, guenther@, beck@
2015-05-14Extend autoinstall(8) to allow for <hostname>-<mode>.conf response filesRobert Peichaer
and to put response files in a subdir of the webserver's document root. Based on diffs from Nathanael Rensen, thanks! While here fix a buglet introduced by the $_server -> $AI_SERVER change. OK krw, halex
2015-05-04Add the new template file based autopartitioning feature of disklabel(8)Robert Peichaer
to the OpenBSD installer. It is available during unattended installation. The template file is fetched from an url, provided as answer to a new question in the response file: URL to autopartitioning template for disklabel = url Original diff from and OK henning@ 'no objection' krw@
2015-04-28ajacoutot spotted a problem with the new sshd logic (to disable root loginsStuart Henderson
by default completely in most cases, except where a public ssh key was provided to autoinstall) - in the case where a (non-root) account was created, sshd was being disabled; this diff fixes it. Looks good ajacoutot, OK djm@, extensive testing+OK rpe@,
2015-04-27Rework sshd enable root login questions in light of sshd PermitRootLoginDamien Miller
default change. The new default is not to ask to enable root logins when a non-root user has been addedi. There is some additional sublety for auto-installs that provide root ssh keys. patch by myself and rpe@ with feedback from sthen@; ok rpe@ deraadt@ sthen@
2015-04-26get_responsefile: instead of keeping the dhcp-supplied next-server whereHenning Brauer
we fetch the response file from in a local _server var, put it in an exported AI_SERVER one. last not least that allows install.site to see it. ok krw rpe
2015-04-21append the setdir ("5.7/amd64", "snapshots/vax") as get-parameter "path"Henning Brauer
when fetching the autoinstall response file. a webserver that serves static files doesn't give a damn. if I map that to something that dynamically creates the response file, i can use that to construct the sets path, or play other arch and/or version dependent games. ok krw uwe
2015-04-20Fix asking for list of http servers via '?'. The 'more' now usedKenneth R Westerback
on the install media does not (currently) support '-e' or other posix nifties, but does exit after displaying the last line. Should fix scanning for wireless networks too. Reported by Adam Wolk on misc@. ok deraadt@
2015-04-13pwd_mkdb now fits onto the install media. no more chroot games.Theo de Raadt
2015-04-07Tweak previous.Robert Peichaer
OK halex@ krw@
2015-04-06Moar comments !! Explain what's going on during install / upgrade.Robert Peichaer
OK krw@
2015-04-06Use if then else instead of testing $_fstype twice.Robert Peichaer
OK krw@
2015-04-05Cope with the removal of less from install media.Robert Peichaer
Noted by Adam Wolk, thanks. OK krw@ deraadt@
2015-04-04I contributed substantially to the installer, so add copyright.Robert Peichaer
prodded by deraadt@
2015-04-04Moar comments !!Robert Peichaer
Add comment headers to each function, briefly explaining its purpose and arguments. Feedback and OK halex@ krw@
2015-04-03Eleminate the last occurrences of backticks and replace constructsRobert Peichaer
like `cat file` or $(cat file) with $(<file) in places, where we can be sure that file exists. OK krw@
2015-04-02more -> less; not less -> moreTheo de Raadt
2015-03-28fix typosRobert Peichaer
noted by Mikolaj Kucharski, thx OK krw@
2015-03-28- Start comments with capital letters.Robert Peichaer
- End comments with a full stop. OK krw@
2015-03-27Tame the more than 70 functions in install.sub.Robert Peichaer
Regroup them by their purpose and add section headers. go for it halex@, OK krw@
2015-03-21Fold the single command from update_firmware() into finish_up()Robert Peichaer
and remove the update_firmware() function all together. OK halex@ krw@
2015-03-21Move code that gets executed when install.sub is sourcedRobert Peichaer
to the bottom of the file to make it easier to see what code is actually executed. OK krw@ halex@
2015-03-21Bourne to Korn shellRobert Peichaer
OK krw@
2015-03-17Restore previous behaviour that got lost with 1.780.Robert Peichaer
Don't ask about xdm if the answer to the X question was no. Noted by mlarkin@ "Looks good" deraadt@ OK krw@
2015-03-15Eliminate the question 'Which cd?' and just show the available cd'sKenneth R Westerback
in the 'Location of sets?' prompt. Idea from deraadt@ Developed with and tested by rpe@ ok deraadt@ rpe@