summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdinstall
Commit message (Collapse)AuthorAgeFilesLines
* Switch default MBR bootcode from /boot/boot0 to /boot/mbr.dteske2013-11-111-1/+1
| | | | | Reviewed by: Allan Jude, nwhitehorn Discussed on: -current
* Check the partition scheme before blowing away disks, instead of after.dteske2013-11-111-8/+12
| | | | | | The effects of this patch would only be noticeable if you were purposefully setting a bad value and trying to see what happens; and leaving the disks intact if a bad value has been set seems fair.
* mdoc: add missing El.joel2013-11-081-0/+1
|
* I often forget that debugFile can begin with a + for deciding that debugdteske2013-11-081-1/+1
| | | | should be sent to both the file (minus the leading +) and stdout.
* Copy the install log to the deployed /var/log directory so that we havedteske2013-11-081-0/+2
| | | | post-mortem data on how the machine was configured/installed.
* Semi-revert this one file out of r257842. The ttys(5) stuff, as wedteske2013-11-081-77/+0
| | | | | | | discussed on -current, was not supposed to go in but get solved in a different way -- e.g., init(8) logic). Discussed on: -current
* A series of changes tested together as a whole:dteske2013-11-0811-446/+1105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Add a `-D FILE" command-line option for overriding the path to the bsdinstall log file (BSDINSTALL_LOG env var). + Document new `-D FILE' in the man page for bsdinstall. + If FILE in `-D FILE' begins with a +, debug output goes to stdout (interleaved between dialog(1) invocations/output) as well as to FILE (minus the leading + of course). + If BSDINSTALL_LOG cannot be written, then debugging is disabled (except in the case of a leading + in the pathname, wherein debug will still be printed to stdout). + Update source code formatting style. + Fix a dangling participle ("Begun ..." -> "Began ...") + Rewrite the docsinstall script (was necessary to abate direct dependency on BSDINSTALL_LOG (instead, use fault-tolerant bsdconfig framework which displays appropriate errors for package management). NB: docsinstall is still using pkg(8) after this change. + Add additional debug output for dhclient/rtsol/wpa_cliscan + Display script errors in a textbox rather than just on stdout + Update many coments. + Add new f_show_err() API call (like f_show_msg but changes the dialog title to "Error")(see bsdconfig's `common.subr'). + Add new f_eval_catch() API call for executing a command via eval but not before logging the command to debug. Several example cases documented in API header for function in bsdconfig's `common.subr'. + Fix dialog auto-sizing when launched as an rvalue to a pipe for indirected scripts (previously would default to 24x80 sizing in this case, now it can autosize to full size even when in a pipe chain). + Fix bug in f_snprintf if $format argument began with "-"; printf would misinterpret as a flag. (this is in bsdcofig's `strings.subr'). + Add accompanying f_sprintf() and f_vsprintf() to go along with already existing f_snprintf() and f_vsnprintf() (see bsdconfig's `strings.subr'). + Remove some unnecessary default ZFS datasets from the automatic "zfsboot" script. Such as: /usr/ports/distfiles /usr/ports/packages /usr/obj /var/db /var/empty /var/mail and /var/run (these can all be created as-needed once the system is installed). + Remove setuid=off for /usr/home (as discussed from last round of CFT). + Fix some i18n string violations in "zfsboot". + Bolster debugging output in "zfsboot". + Fix some string quoting issues in "zfsboot". + Fix some variable scope issues in "zfsboot". + Change "Create" to "Install" in "zfsboot" main menu. + Increase error checking in "zfsboot" (type-check arguments and such). + Add call to "graid destroy" killing automatic metadata (part of the series of pedantic destructions we do when bootstrapping a new/naked disk). + Make judicious use of new f_eval_catch() in "zfsboot". + Fixup some variable names for consistency (zfsboot). + Fix an underride syntax parameter expansion folly (zfsboot). + Confirm layout if not explicitly chosen when blindly proceeding (no longer have to touch anything on the ZFS menu if it scares you, just choose the omnibus "Install" option at the top and you'll be prompted to select vdev type and disks in the layout confirmation dialog). + Change numbered menu items to alphabetic for more efficient navigation. + Consolidate vdev selection and disk selection into a single stateful menu which performs validation and allows backing out to each previous menu as you go deeper. + Redesign the ``Last Chance'' dialog (still using the same colors, but make it conform to a tolerable width and make disks appear in a block- quote style indented region). + Fix a bug wherein we used the a lowercase variable name by accident (actual variable name declared as all-uppercase) at the time of initializing fstab(5) (not believed to cause any issues though). + Update the geli setup infobox for each provider being initialized (not just at the onset -- since each ``geli init'' causes kernel messages to push our infobox off-screen). Reviewed by: Allan Jude <freebsd@allanjude.com> Discussed on: -current MFC after: 3 days
* Switch to using pkg(8) for the doc install in bsdinstall(8).gjb2013-11-061-2/+9
| | | | | | | | | This also bootstraps the system with pkg(8) for future use. PR: 183488 Submitted by: Joe Ennis MFC after: 3 days Sponsored by: The FreeBSD Foundation
* Make ZFSBOOT_BEROOT_NAME be ROOT by default. This is what sysutils/beadmdteske2013-10-151-4/+1
| | | | | | | | | | | | | | | | | and OpenSolaris/Illumos beadm use. Remove /usr/local and /var/db/pkg datasets. Andriy Gapon writes: I want to note that a good implementation of BEs should support a dependent datasets feature. Unfortunately, it seems that we do not have any good BE implementation for FreeBSD right now. If we had, personally I'd prefer to have /usr/local in separate filesystem. NOTE: Until then, remove these datasets. Discussed on: src-committers Submitted by: Bryan Drewery <bryan@shatow.net> Reviewed by: Allan Jude <freebsd@allanjude.com> MFC after: 3 days
* Bump .Dd date (should have been part of SVN r256549)dteske2013-10-151-1/+1
|
* Man page updates to go along with SVN r256343, introducing zfsboot.dteske2013-10-151-0/+24
|
* Fix SVN r256540: s/TMPETC/TMPBOOT/ for loader.conf(5) GELI entries.dteske2013-10-151-3/+3
|
* Document BSDINSTALL_TMPBOOT environment variable introduced by SVN r256343.dteske2013-10-151-0/+8
|
* gjb writes: when doing encrypted zfs install, loader.conf should be updateddteske2013-10-151-1/+9
| | | | | | | | | | | | so bootpool is imported after boot: zpool_cache_load="YES" zpool_cache_type="/boot/zfs/zpool.cache" zpool_cache_name="/boot/zfs/zpool.cache" otherwise /boot is a broken symlink after the system is up. http://lists.freebsd.org/pipermail/freebsd-fs/2013-July/017891.html NOTE: Fix a comment while here. Reviewed by: gjb
* Add executable bit to docsinstall [old] and entropy [new] scripts.dteske2013-10-152-0/+0
| | | | Approved by: re (gjb)
* Remove the dumpdev configuration dialog, merge it into the regulardteske2013-10-111-10/+11
| | | | | | | | services configuration and enable it by default. Committed with slight change to menu text for length and content. Submitted by: Allan Jude <freebsd@allanjude.com> Approved by: re (glebius)
* Incorporate PR bin/161547 to detect when an interface is wireless.dteske2013-10-111-3/+9
| | | | | | | | | Patch from PR modified slightly for whitespace and style. PR: bin/161547 Submitted by: Warren Block <wblock@wonkity.com> Reviewed by: Allan Jude <freebsd@allanjude.com> Approved by: re (glebius)
* Rewrite the keymap module to display an actual menu of selectabledteske2013-10-111-6/+208
| | | | | | | | | | | keymaps *and* provide a mechanism for testing the selection. With this commit, bsdinstall is no longer dependent on kbdmap(1). The keymap test menu was originally submitted by Warren Block but was modified). Submitted by: Warren Block <wblock@wonkity.com> Reviewed by: Allan Jude <freebsd@allanjude.com> Approved by: re (glebius)
* Add zfsboot module as an option for automatic configuration. Default isdteske2013-10-115-8/+1080
| | | | | | | | | | | | | to run interactively but it can be scripted too (optinally completely non-interactive). Currently supports GELI and all ZFS vdev types. Also performs validation on selections/settings providing error messages if necessary, explaining (in plain language) what the issue is. Currently the auto partitioning of naked disks only supports GPT and MBR (VTOC8 pending for sparc64), so is only available for i386/amd64 install. Submitted by: Allan Jude <freebsd@allanjude.com>, myself Reviewed by: Allan Jude <freebsd@allanjude.com> Approved by: re (glebius)
* After installation, dump 4096 bytes from /dev/random to /entropy in thedes2013-10-116-4/+43
| | | | | | | | newly installed system. This should greatly increase the amount of entropy available when SSH host keys are generated during first boot. Reviewed by: markm, nathanw Approved by: re (gjb)
* Remove ftp5.se.f.o, as per request to -hubs@gavin2013-09-281-1/+0
| | | | | Approved by: re (glebius) MFC after: 3 days
* - Remove the is (Iceland) mirror per mail from the admins.brd2013-09-271-1/+0
| | | | | Approved by: re With hat: clusteradm@
* Add installer support for CHRP/PAPR PowerPC systems that use MBR+BSDnwhitehorn2013-09-232-2/+4
| | | | | | | formatting, like x86, but with an additional MBR slice containing a raw boot partition. Approved by: re (gjb)
* Make sure bootonly.iso for -BETAs and -RCs use the releases/gjb2013-08-131-1/+1
| | | | | | | | directory on the FTP mirrors to fetch distributions, since these are always pushed to releases/ during the release cycle. MFC after: 3 days X-MFC-To: stable/9, releng/9.2
* Remove ftp2.tr.freebsd.org, it is out of date.gavin2013-07-231-1/+0
| | | | MFC after: 3 days
* Update mirror list to more closely matchgavin2013-07-221-38/+7
| | | | | | http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html MFC after: 1 week
* Fix bindings of keys when in the partition editor. By adding the usual input ↵bapt2013-06-171-1/+17
| | | | | | | | binding to the "partlist" sub window. This is a workaround, as for unknown yet reason the keys binded on the Partition Edition window are the one from partlist instead of the one from standard "formfield" Reported by: alfred, nwhitehorn
* Add some missing DPADD.antoine2013-05-113-0/+3
|
* Replace deprecated (or remove obsolete) libarchive 2.8 functionsmm2013-03-221-2/+2
| | | | with libarchive 3.0 counterparts
* If no resolv.conf has been made for the new system already and the installnwhitehorn2013-01-271-0/+5
| | | | | | media has one already, copy it in lieu of leaving things blank. This reduces the foot-shooting potential for PXE installs that immediately add packages.
* Properly quote argument.nwhitehorn2013-01-271-1/+1
| | | | MFC after: 3 days
* Improve error handling and remove an unnecessary check on geom providernwhitehorn2013-01-223-17/+17
| | | | | | | type. GEOM provider names can't duplicate (or shouldn't -- devfs will either break or only use the first one if they do) so using the first provider by that name is a sufficient check. This also lets the scripted partitioner install onto gmirror and geli and such things.
* Improve documentation of BSDINSTALL_DISTSITE and mdoc.nwhitehorn2013-01-221-5/+24
|
* Clarify that the setup script is optional.nwhitehorn2013-01-221-2/+4
|
* Update change date.nwhitehorn2013-01-221-2/+2
|
* Document bsdinstall scripting as it currently operates. It may change innwhitehorn2013-01-221-4/+118
| | | | | the future depending on feedback from people using it to do unattended system setup.
* Remove some debugging code that snuck in.nwhitehorn2013-01-211-3/+1
|
* Add a scripting frontend. Documentation and release(7) support coming later.nwhitehorn2013-01-212-1/+88
| | | | | | | | | | | | | | | | | | Scripts take the form: ------------------------------------ PARTITIONS=ada0 DISTRIBUTIONS="kernel.txz base.txz ports.txz" #!/bin/sh echo "sshd_enable=YES" >> /etc/rc.conf pkg add puppet echo "System setup complete" ------------------------------------ The second part of the script (beginning with #!) is run in the newly installed system after the installation onto ada0 (with default partitioning, see scriptedpart for more complicated scenarios) is complete.
* If no partition configuration is specified in {}, use the automatic setupnwhitehorn2013-01-203-5/+11
| | | | | | | the interactive installer uses. Example: bsdinstall scriptedpart ada0 Result: Use entire disk for a FreeBSD system with default partition layout
* Add a simple scripted partitioner. Documentation and more scripting supportnwhitehorn2013-01-204-3/+222
| | | | | | | | | | | | will come soon. This lets the install process have a line like: bsdinstall scriptedpart 'ada0 GPT {1.5G freebsd-ufs /, 10G freebsd-swap, auto freebsd-ufs /usr}' to set up a system with a 1.5GB /, some swap space, and a /usr using the rest of ada0. MFC after: 1 month
* Make "Finish" the default choice in the partition editor. This lets younwhitehorn2013-01-201-1/+1
| | | | | | | successfully complete an installation with all defaults by pressing Enter repeatedly until your machine reboots. MFC after: 3 weeks
* Note that cpufreq(4) is not available on all hardware.nwhitehorn2013-01-121-1/+1
| | | | | PR: bin/175139 MFC after: 2 weeks
* Remove EOL whitespace.joel2013-01-121-1/+1
|
* Make sade actually be a symlink to partedit, as per the commit message innwhitehorn2013-01-021-1/+2
| | | | | | | r244859, rather than a hardlink. This fixes installation if /usr/sbin is on a different filesystem than /usr/libexec. Submitted by: se
* Add a man page for the new sade(8), which is mostly the same uninformativenwhitehorn2012-12-302-1/+76
| | | | manpage as the old sade(8).
* Replace sade the extracted piece of sysinstall with sade the extractednwhitehorn2012-12-301-1/+1
| | | | | | | | piece of bsdinstall (although this time with a symlink instead of duplicated source code). Discussed on: freebsd-geom MFC after: 3 months
* If invoked as sade, don't complain about having a filesystem on / alreadynwhitehorn2012-12-301-2/+6
| | | | | | -- it's something you expect (and indeed hope for). MFC after: 1 week
* Add missed BETA* to list.gjb2012-12-091-1/+1
| | | | | | Approved by: simon (implicit) MFC after: 3 days X-MFC-With: r244058
* Get 'uname -r' earlier, so it can be used to determine what branch isgjb2012-12-091-1/+12
| | | | | | | | being run to set BSDINSTALL_DISTSITE accordingly. This change allows non-RELEASE branches to use the FTP snapshots directory for bootonly.iso installations. Approved by: simon
* Remove snapshots.jp.freebsd.org. It stopped working years ago.joel2012-12-041-1/+0
| | | | Discussed with: hrs
OpenPOWER on IntegriCloud