summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdinstall
Commit message (Collapse)AuthorAgeFilesLines
* MFC r264488:dteske2014-04-182-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When merging docsinstall and zfsboot updates to stable/9 it was discovered that the slightly older dialog(1) requires --separate-output when using the --checklist widget to force response to produce unquoted values (whereas in stable/10 --checklist widget without --separate-output will only quote the checklist labels in the response if the label is multi-word (contains any whitespace). Since these enhancements (see revisions 263956 and 264437) were developed originally on 10, the --separate-output option was omitted. When merged to stable/9, we (Allan Jude) and I found during testing that the "always- quoting" of the response was causing things like struct interpolation to fail (`f_struct device_$dev' would produce `f_struct device_\"da0\"' for example -- literal quotes inherited from dialog(1) --checklist response). To see the behavior, execute the following on stable/9 versus stable/10: dialog --checklist disks: 0 0 0 da0 "" off da1 "" off Check both items and hit enter. On stable/10, the response is: da0 da1 On stable/9 the response is: "da0" "da1" If you use the --separate-output option, the response is the same for both: da0 da1 So applying --separate-output on every platform until either one of two things occurs 1) dialog(1,3) gets synchronized between stable/9, higher or 2) we drop support for stable/9. Reviewed by: Allan Jude
* MFC r260866,260900,261960 (3 revisions; summarized below):dteske2014-04-142-13/+17
| | | | | | 260866: Fix a bad comparison operator and fix dumpdev comment 260900: Dummy commit; show r260866 was in-part by Christoph Mallon 261960: Add zfsboot to bsdinstall(8) scripted interface
* MFC r264448: Fix typo in debug/log statement.dteske2014-04-141-1/+1
| | | | Submitted by: Rick Miller <vmiller@hostileadmin.com>
* MFC r261296:brooks2014-03-013-6/+36
| | | | | | | | | | | | | Merge from CheriBSD: commit c1acf022c533c5ae27e0cd556977eafe3f5959eb Author: Brooks Davis <brooks@one-eyed-alien.net> Date: Fri Jan 17 21:46:44 2014 +0000 Add an option WITHOUT_NCURSESW to suppress building and linking to libncursesw. While wide character support it useful we'd like to only need one ncurses library on embedded systems. Sponsored by: DARPA, AFRL
* MFC r260261 (gavin):dteske2014-01-151-1/+24
| | | | | | | | | | | | | | | | | Lower the priority of the "connect to any open wireless network" network description, so guaranteeing that any other defined network will be tried first. MFC r260262 (gavin): Allow bsdinstall to use WPA-Enterprise networks when installing. This only allows basic username/password config, and does not provide the ability to set any of the other WPA options. Regardless, this is generally sufficient to associate. Perhaps in the future this could allow full configuring (e.g. being able to set "anonymous identity", and perhaps some of the more obscure WPA options), though perhaps that will better belong in bsdconfig when that grows wlan config ability.
* MFC r260260 (gavin): Remove what appears to be a stray debugging printf.dteske2014-01-151-1/+0
|
* MFC r259686:dteske2014-01-151-4/+0
| | | | | | | | | Move the installer's keymap solution introduced by SVN r259468. The new location of /etc/rc.local on the install media is more appropriate as it knows serial vs. non-serial and can also do the change earlier (so that even the initial Install dialog can benefit from the change). Discussed with: nwhitehorn
* MFC r259276,259468-259470,259472,259474,259476-259478,259480-259481,259570,dteske2013-12-194-311/+321
| | | | | | | | | | | | | | | | | | | | 259572, and 259597-259598... r259276: Fix bug in `services' script in adding dumpdev comment to rc.conf r259468: Ignore spurious escape generated by VMware's Ctrl-Cmd combination r259469: Mask errors in `config' script from newaliases(1) about non-FQHN r259470: Set atime=on for /var/mail zfsboot dataset to support mail server r259472: Accept NULL input for zfsboot SWAP to indicate SWAP of zero bytes r259474: Multiple changes, including bug-fixes and debugging improvements r259476: Change default ZFS disk layout, making it easier to resize r259477: fletcher4 is now the default (zfsboot related) r259478: De-uglify the geli(8)-setup infobox (zfsboot related) r259480: Fix ghosted zroot issue by always performing labelclear on swap r259481: Auto-enable 4k sector alignmet when geli(8) is enabled (zfsboot) r259570: Fix numerical comparison error (zfsboot) r259572: Mask spurious rm error in bsdinstall_log from `auto' script r259597: Fix zfsboot regression when installing to 3+ disks r259598: Set cachefile property of bootpool so it imports to new system
* MFC r259132,r259133,r259143:eadler2013-12-161-1/+1
| | | | | | | | | | | | Per the resolution of POSIX bug 0000779 (note 0002050) add support for using 'i' as a case insensitive flag. Add regression test for recently added 'i' flag in r259132. the i modifier was added in r259132 since POSIX recently agreed to add it. Switch uses of /I to /i. PR: standards/184641
* MFC r259113, r259115, r259144, r259148:gjb2013-12-142-2/+3
| | | | | | | | | | | | | | | | | | | | | r259113 (dteske): Fix failed attempt to send pkg(8) stderr to /dev/null r259115 (dteske): Prevent truncating /tmp/bsdinstall_log each time we exec a module. r259144 (dteske): Fix a regression after successfully installing to encrypted ZFS root, the passphrase is not accepted and a message about "incorrect key" is displayed. r259148 (dteske): Fix a regression resulting in mountroot prompt after attempting to install to encrypted ZFS root (caused by a typo in a variable name -- ZFSBOOT_BOOT_FSNAME -> ZFSBOOT_BOOTFS_NAME). Sponsored by: The FreeBSD Foundation
* MFC r258927: Fix a regression introduced by SVN r257842 that preventsdteske2013-12-071-4/+6
| | | | | | Encryption from being enabled. Approved by: re (gjb)
* MFC Revisions:dteske2013-11-2111-454/+1064
| | | | | | | | | | | | | | | | | 256549: man-page updates 256551: .Dd bump in manpage 256553: bootenv -> ROOT fix 257842: monster list of fixes 257843: minor touchup 257844: copy install log 257845: fixup to last 257872: mdoc fixup 257939: debug check 258021: MBR bootcode fixup Reviewed by: many Discussed on: -current Approved by: re (hrs)
* MFC r257749:gjb2013-11-091-2/+9
| | | | | | | | | Switch to using pkg(8) for the doc install in bsdinstall(8). This also bootstraps the system with pkg(8) for future use. Approved by: re (delphij) PR: 183488 Sponsored by: The FreeBSD Foundation
* MFC r256540, r256544:gjb2013-11-011-1/+9
| | | | | | | | | | | | r256540 (dteske): Add loader.conf(5) entries to import bootpool after boot when using full-disk encryption and ZFS. r256544 (dteske): Fix loader.conf(5) entries from r256540. Approved by: re (hrs) Sponsored by: The FreeBSD Foundation
* MFC r256489:dteske2013-10-183-0/+8
| | | | | | | | | Add executable bit to docsinstall [old] and entropy [new] scripts. MFC r256541: Document BSDINSTALL_TMPBOOT environment variable introduced by SVN r256343. Approved by: re (gjb)
* MFC revisions 256321-256323,256331,256333,256335,256343:dteske2013-10-118-27/+1308
| | | | | | | | | | | | | | | | | | | | | | | | Bring in a new zfsboot auto script for performing automatic setup of a boot pool (optionally encrypted) with many other options, validations, features. Originally submitted by Allan Jude; modified in collaboration. MFC revisions 256325,256330,256345: Rewrite the keymap selection menu to display keymaps and provide a test mechanism. Test mechanism originally submitted by Warren Block; modified. MFC r256347: Prominently display "Wireless" for each wireless network interface. Part of PR bin/161547; submitted by Warren Block; slightly modified. MFC r256348: Remove the dumpdev configuration dialog, merge it into the regular services configuration and enable it by default. Originally submitted by Allan Jude; slightly modified. PR: bin/161547 Submitted by: Allan Jude, Warren Block <wblock@wonkity.com> In collaboration with: Allan Jude <freebsd@allanjude.com> Approved by: re (glebius)
* MFH (r256338): store some entropy after installationdes2013-10-116-4/+43
| | | | 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
* - Remove snapshots.se.freebsd.org [1]joel2012-12-031-1/+1
| | | | | | - Add ftp6.se.freebsd.org Discussed with: brd [1]
* Fix bug introduced by r241902 (MANIFEST uses TAB delimiter).dteske2012-10-271-1/+1
| | | | | PR: bin/173140 Approved by: adrian (co-mentor)
* Optimize syntax to use builtins and reduce unnecessary forking where possible.dteske2012-10-222-14/+10
| | | | | Reviewed by: nwhitehorn Approved by: adrian (co-mentor)
OpenPOWER on IntegriCloud