summaryrefslogtreecommitdiff
path: root/distrib/miniroot
AgeCommit message (Collapse)Author
2017-12-18Change the question at the end of installs and upgrades to present a choiceRobert Peichaer
between exiting to the shell or to reboot the latter being the default. (On sparc64 the second choice is to halt the system which leaves it at the OpenBoot PROM prompt) While there add a newline after the CONGRATULATIONS message. OK tb@ positive feedback naddy@ deraadt@ giovanni@
2017-12-18Display $MODE (install/upgrade) in the prompt before we know the hostname.Theo Buehler
suggested by deraadt ok rpe
2017-12-17Add a new question "Escape to shell before reboot? [no]" at the end ofRobert Peichaer
the install and upgrade process. "no" or [enter] reboots the system "yes" leaves the install or upgrade at the shell prompt On selected architectures, sparc64 being the only so far, the system is halted instead of rebooted. autoinstall(8) is NOT affected by this new question as it reboots the system automatically already. Suggested by and OK deraadt@, tb@ phessler@ Feedback on sparc64 by stsp@ Positive feedback pea@ landry@
2017-12-17allow '-' in usernamesRobert Peichaer
requested and OK aja OK halex@
2017-12-01arm64 is now also a _syspatch_archTheo Buehler
2017-11-05Fix http server selection from the list of mirrors. This broke inRobert Peichaer
r1.989 in a way that when selecting a mirror from the list by entering a number, the selection was not actually set as answer. Noted by and OK tb@
2017-11-05Consolidate lib.so.*.a, ld.so.a and the kernel relink kit intoRobert Peichaer
one location under /usr/share/relink. Be more specific in src/etc/rc reorder_libs() what filesystems need r/w remount and ensure that their mount state is restored. Idea and positive feedback from deraadt@ OK aja@ tb@
2017-11-02Fix this test by adding _http_proto to INSTALL_MIRROR.Robert Peichaer
2017-10-22On systems without dhclient, ask IPv4 question again if 'dhcp' was choosen.Robert Peichaer
Spotted by halex@
2017-10-21Change v4_config() and v6_config()Robert Peichaer
- to support CIDR notation for the answers to the "IPv4 address for <if>?" and "IPv6 address for <if>?" questions - to not ask for netmask and prefix lenght if CIDR is used - to ask the questions again if ifconfig fails with the provided input Triggered by a report from landry@. Using ideas from sthen@ OK deraadt@ tb@
2017-10-13Move extraction of rootdisk information into the DONEPROFILE if-block.Robert Peichaer
OK tb@
2017-10-13Comment trap handlersRobert Peichaer
2017-10-13Tweak commentsRobert Peichaer
2017-10-13Add a comment for slaacd(8) start and replace the if-then-fi blockRobert Peichaer
with a [[ test ]] && command construct.
2017-10-11If $MODE.site fails, store random.seed and error out. Based on a diffTheo Buehler
for auto$MODE by rpe in response to a question by mpi. ok rpe mpi
2017-10-10Allow to boot into the existing bsd.rd and to download, verifyRobert Peichaer
and upgrade to the bsd.rd of the next release. The installer detects this bsd.rd only upgrade if the answer to the 'Server directory?' question points to the sets of the next release. It then limits the set selection to the bsd.rd file, verifies it using the on-disk signify key of the next release and makes a backup of the existing bsd.rd before installing it. Idea from and OK deraadt@ OK benno@
2017-10-05When installing sets from disk, change the default answer for the questionChristian Weisgerber
"Is the disk partition already mounted?" from "no" to "yes". Agreed by many.
2017-10-04Only print "done." after successful "syspatch -c".Theo Buehler
suggested by and ok ajacoutot, mpi
2017-08-25Combine the commands to fetch and extract set files with theRobert Peichaer
following if-block to extract {x}etc.tgz using the '&&' operator to ensure proper error handling. Fixes the case found by miod, where a failed extraction of the base set was not properly recognized. OK miod, tb
2017-08-24On release installs of architectures supported by syspatch, run syspatch -cTheo Buehler
from rc.firsttime. If binary patches are available, users will be informed on the console and in the rc.firsttime output mail. Based on an idea from tj; discussed with several during t2k17. Positive feedback and go ahead, deraadt, ajacoutot, rpe, tj.
2017-08-18RFC2606 gives us example.com, show that instead of another privateJoshua Stein
domain. The non-existent "my.domain" is still offered as the default choice which must not resolve. ok rpe, deraadt
2017-08-08Fix a bug introduced in r1.1028 while switching enable_network()Robert Peichaer
from _hn to _if. Found by Pontus Lundkvist
2017-07-28DEFAULTSETS, SANESETS and THESETS are set in the install.md scriptsRobert Peichaer
according to the same logic for all architectures but sgi. Consolidate setting them in one place in install.sub and incorporate the sgi specific MDSETS and MDSANESETS. Introduce MDSANESETS complementing MDSETS which makes the construction of DEFAULTSETS, THESETS and SANESETS clearer in install.sub. While here, adjust the comment about how MDSETS used now. OK deraadt@
2017-07-25Finally remove backwards compat code to support the 'rtsol' keywordRobert Peichaer
in hostname.if(5) OK mpi@ deraadt@ florian@ OK jmc@ from doc perspective
2017-07-21Rename _hn to AI_HOSTNAME and export it as global variable so it'sRobert Peichaer
visible in the MODE.site scripts too. This is useful for reporting back the autoinstall status at the end of installs or upgrades from within the MODE.site scripts. OK krw@ tb@
2017-07-21Align ifstart() in netstart and install.sub.Robert Peichaer
- in netstart, rename _file to _hn referencing hostname.if files - in install.sub switch ifstart() to be used with _if instead of _hn as parameter ok krw@ tb@
2017-07-21autoinstall(8) related global variables are prefixed with AI_.Robert Peichaer
RESPFILE -> AI_RESPFILE OK krw@ tb@
2017-07-20Move the execution of the {install,upgrade}.site script to the endRobert Peichaer
of the install/upgrade process. OK tb@
2017-07-20Zap space between function name and parens.anton
ok deraadt@ rpe@ tb@
2017-07-17Fix IPv6 default router selectionRobert Peichaer
- adjust to changed ping6 output - tighten sed expression - remove second sed, bsort() prints a unique list reported by Paul de Weerd and others prompted by a diff from Klemens Nanni OK florian@
2017-07-15add commentRobert Peichaer
2017-07-15- remove superfluous blanks from v[46]_info() outputRobert Peichaer
- tweak comments Based on a diff from and discussions with Klemens Nanni.
2017-07-15Rework vlan configuration in the installer, triggered by the vlanRobert Peichaer
releated changes in ifconfig. Put the vlan configuration into its own function vlan_config() which is called from configure_ifs(). NOTE: Depending on how you use autoinstall(8) related to vlans (espcially if you rely on the default answers) you should check that everything still works. Prompted by and OK dlg@ 'looks good' benno@ positive feedback tb@ deraadt@
2017-07-08Enable slaacd on the installer and temporarily neuter routerFlorian Obser
advertisement processing and solicitation sending like we already did for the non-install kernels. Next step will be to tedu all that code from the kernel. OK rpe@ for the installer bits move forward deraadt@
2017-07-08_slaacd user/group for installerFlorian Obser
move forward deraadt@
2017-07-08slaacd needs libevent on the ramdiskFlorian Obser
move forward deraadt@
2017-07-07Replace a doubled period and add a blank space in front of a bracket.Theo Buehler
From Klemens Nanni ok rpe
2017-07-02Shorter version of the same.Robert Peichaer
based on a mail from Klemens Nanni on tech@
2017-07-02Tweak commentRobert Peichaer
2017-07-02NIFS is checked inside start_cgiinfo() already.Robert Peichaer
No need to do this check twice. from Klemens Nanni
2017-06-30Create a unique kernel to boot from during install and upgrade.Robert Peichaer
- update the linkkit directory - chroot and relink/install new kernel using the linkkit Makefile Idea from and OK deraadt@ OK tb@
2017-06-21/var/db/kernel.SHA256 contains the hash of the /bsd kernel. UponTheo de Raadt
install or upgrade, set it correctly. diff from rpe, also thanks tb for comments and review
2017-06-03After installing, chmod og-rwx {/bsd bsd.mp bsd.sp bsd.rd }Theo de Raadt
(Should we make them kmem readable? Let's ignore that for now and see if any issues surface). ok tb rpe
2017-05-31whitespace nitTheo Buehler
2017-05-31Change cp -pR to pax copy mode with -k when copying /etc/skel. This wayTheo Buehler
we keep existing files in the user's home directory that might have been installed from siteXX.tgz. Found the hard way by Erling Westenvik. Thanks to trondd for helpful analysis. "If that's what it does, I'm all for it" halex
2017-05-28Remove _mode variable and use AI_MODE directly instead. Use theRobert Peichaer
exit code of ftp consistently to determine success of fetching the response file. discussed with and OK tb@
2017-05-27De-duplicate sets selection instructions, and give a short example.Vadim Zhukov
Still one lines shorter. Input and okay from tedu@ and deraadt@; also a "weak" okay from sthen@.
2017-05-25Move the code that runs the installer script in non-interactiveRobert Peichaer
mode into a dedicated do_autoinstall() function. OK halex@, krw@
2017-05-25Replace various echo "..."; exit 1 with a new err_exit() function.Robert Peichaer
diskussed with tb@ and halex@ OK krw@ on a similar diff
2017-05-22The DISPLAY variable is actually not a global variable as it's usedRobert Peichaer
only once in questions(). Use scan_dmesg() output directly to test for wsdisplay* in dmesg.boot instead. Change comment, now that it only refers to setting CONSOLE. no objection tb@