summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdinstall/scripts
Commit message (Collapse)AuthorAgeFilesLines
* MFC r313448:garga2017-02-151-3/+4
| | | | | | | | | | | | | | | bsdinstall: Make sure chroot filesystems are umounted after use * DISTDIR_IS_UNIONFS is set every time BSDINSTALL_DISTDIR is mounted inside BSDINSTALL_CHROOT. Use this flag to decide if it needs to be umounted * BSDINSTALL_CHROOT/dev is mounted when 'bsdinstall mount' is called, there is no need to mount it again when user goes to shell after installation Reviewed by: allanjude Obtained from: pfSense MFC after: 1 week Sponsored by: Rubicon Communications (Netgate) Differential Revision: https://reviews.freebsd.org/D8573
* MFC: r296988allanjude2016-03-171-5/+5
| | | | | | Remove 50% ZFS conditional from bsdinstall/zfsboot Approved by: re (marius)
* MFC: r295074allanjude2016-02-041-68/+47
| | | | | | | | The zfsboot (zfs auto mode) part of bsdinstall now supports UEFI Approved by: re (marius) Relnotes: yes Sponsored by: ScaleEngine Inc.
* MFC r293860vangyzen2016-01-241-1/+1
| | | | | | | | | | | | | | | | | bsdinstall: Suggest the GPT+Active workaround on Dell T5810 The Dell Precision Tower 5810 fails to boot from GPT in Legacy/BIOS mode without the Active flag in the Protective MBR. Suggest the workaround during installation. Since an increasing number of Dell systems exhibit this behavior, I imagine all Dells past a certain date will do so. I would like to suggest the workaround for all Dells with a BIOS date of, say, 2014 or later, but I would need to test a variety of systems before committing such a change. Relnotes: We should probably suggest using GPT+Active on "recent" Dells. Sponsored by: Dell Inc.
* MFC: r285732allanjude2016-01-231-2/+54
| | | | | | | | | Add the Dell E7240 laptop and Intel DP965LT motherboard to the list for the GPT active workaround MFC: r287843 Add the HP ProBook 4330s, Intel DP965LT, D510MO, and Acer Veriton M6630G to the GPT workaround list Sponsored by: ScaleEngine Inc.
* MFC: r294191allanjude2016-01-211-1/+3
| | | | | | Never 4k align the MBR bootpool because zfsldr can not deal with a gap Sponsored by: ScaleEngine Inc.
* MFC r291348:bdrewery2015-12-041-1/+1
| | | | Use LIBEXECDIR for /usr/libexec.
* MFC r287683: Ignore error results from newaliases(1)dteske2015-11-021-0/+2
|
* MFC r287685: Remove use of return outside of functiondteske2015-11-021-1/+1
|
* MFC r287686: Produce meaningful exit codedteske2015-11-021-1/+4
|
* MFC r287687: Update copyrightsdteske2015-11-023-2/+3
|
* MFC r287688: Explicitly exit with successdteske2015-11-021-1/+2
|
* MFC r287689: Explicitly exit with successdteske2015-11-021-1/+2
|
* MFC r287690: Produce meaningful exit codedteske2015-11-022-6/+14
|
* MFC r287691: Remove trailing newline at EOFdteske2015-11-021-1/+0
|
* MFC r287694: Use a variable for readabilitydteske2015-11-021-2/+2
|
* MFC r287695: Replace `return' outside of function with exitdteske2015-11-021-1/+1
| | | | Pointy hat to: me
* MFC r287692: Better to reset trap and explicitly exit successdteske2015-11-021-1/+2
|
* MFC r287693: Update copyrightdteske2015-11-021-1/+1
|
* MFC r286285:gjb2015-08-041-1/+1
| | | | | | | | Ensure the local MANIFEST is always used when verifying remote distribution sets. Approved by: re (glebius, insta-MFC) Sponsored by: The FreeBSD Foundation
* MFC: r285679allanjude2015-07-212-3/+110
| | | | | | | | | | | | | Add auto-detecting workaround for Lenovo GPT boot issue Add auto-detecting workaround for "GPT Active" boot issue Allow user to select partitioning scheme in the ufs wizard PR: 184910 PR: 194359 Approved by: re (gjb), marcel Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3144
* MFC: r285482svnmir2015-07-201-24/+51
| | | | | | | | | | | | | | | | | | | | | | | A variable was misspelled resulting in chmod executing on the installer instead of on the target chroot PR: 191402 MFC: r285553 make /var/audit its own dataset so it is not part of the OS boot environment PR: 199864 MFC: r285554 Set a mountpoint on the root of the pool so user-created datasets have a mountpoint to inherit MFC: r285557 Make bsdinstall's zfsboot script align partitions to 4k/1m when the user requests it PR: 195174 Approved by: re (gjb), brueffer Relnotes: yes Sponsored by: ScaleEngine Inc.
* MFC SVN revisions 280310-280311,281160,281167,282443,283023,283288:dteske2015-06-011-49/+77
| | | | | | | | | | r280310: Whitespace cleanup(s) r280311: Update copyright(s) r281160: [mergeinfo only] Fix root encryption key permissions (see r281230) r281167: [mergeinfo only] Unbreak ZFS+GELI install option (see r281230) r282443: Add swap size sanity check (allanjude) r283023: Skip adding swap to fstab(5) if unused (allanjude) r283288: Fix a syntax error (allanjude)
* MFC SVN revisions 280234-280235:dteske2015-06-011-1/+4
| | | | | r280234: Fix the handbook install option in bsdinstall (allanjude) r280235: Fixup to previous (allanjude)
* MFC revisions 277693,278335,280382-280385,280923-280926,280931,dteske2015-04-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 280933-280939,280974-280976,281002,281009,281081,281176-281180, 281271,281275,281616 (described in-breif below): r277693: Font fix (des) r278335: Revert that r280382: Whitespace, comments, and copyright update r280383: Prevent inadvertent bootlock condition r280384: Increase max passowrd length from 16 to 255 chars r280385: Add missing variable hints to loader.conf(5) defaults r280923: Whitespace r280924: Comments r280925: Optimize bootmsg to use fg/bg/me from screen.4th r280926: Whitespace and cleanup r280931: Comments r280933: Move beastie to logo-*.4th; brands to brand-*.4th r280934: Add remainder of supported ANSI escape sequences r280935: Securely overwrite (zero) user input after password checks r280936: Use equals for ASCII double frames r280937: Solve dreaded "dictionary full" issue r280938: Add "GELI Passphrase:" prompt to boot loader r280939: Revert that (premature commit) r280974: Use fg/b/me from screen.4th instead of literals r280975: Eliminate literal escape sequences from *.4th r280976: Use ^[[m mode-ending versus ^[[37m r281002: Install newly added brand-*.4th and logo-*.4th files (jkim) r281009: Revert .PATH changes to fix mips build (jkim) r281081: Make sure forth manpages are only installed once (bapt) r281176: Back to previous mode-endings based on feedback r281177: Back to previous mode-endings based on feedback r281178: Back to previous mode-endings based on feedback r281179: Back to previous mode-endings based on feedback r281180: Eliminate literal escape sequences from *.rc r281271: Fix a bootlock condition if loader_version is set NB: Commit message of r281271 has a typo, s/_logo/_version/ r281275: Re-do proper mode-endings r281616: Add "GELI Passphrase:" prompt to boot loader Relnotes: Added "GELI Passphrase:" prompt to boot loader
* Improve patch for SA-15:04.igmp to solve a potential buffer overflow.delphij2015-04-071-0/+3
| | | | | | | | Fix multiple vulnerabilities of ntp. [SA-15:07] Fix bsdinstall(8) insecure default GELI keyfile permissions. [SA-15:08] Fix Denial of Service with IPv6 Router Advertisements. [SA-15:09]
* MFC r276027:smh2015-02-011-46/+22
| | | | | | | | | Switch zfsboot installer force 4K option to use vfs.zfs.min_auto_ashift=12 MFC r277333: Fix bsdinstall when working with geli boot disks Sponsored by: Multiplay
* MFC r264400,r265836:ngie2014-12-311-1/+1
| | | | | | | | | | | | | | r264400: NO_MAN= has been deprecated in favor of MAN= for some time, go ahead and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. r265836: Remove last two NO_MAN= in the tree. In both of these cases, MAN= is what is needed.
* MFC r271539,273003,273005:nwhitehorn2014-10-292-2/+1
| | | | | | Add ZFS support to the bsdinstall partition editor and sade Submitted by: Kurt Lidl (original version)
* MFH (r272173): offer to enable local_unbound after installationdes2014-10-131-0/+1
|
* MFC r272274:allanjude2014-10-021-1/+1
| | | | | | | | | | | | | Change the /var dataset in the default ZFS layout to have the ZFS property canmount=off, making /var/db/pkg part of the / dataset, so installed package files are consistent with the package database when using ZFS boot environments (beadm). PR: 193971 Reviewed by: Shawn Webb, bcr Approved by: re (gjb), jmg Relnotes: yes Sponsored by: ScaleEngine Inc.
* MFC revisions 271553, 271567:dteske2014-09-271-5/+5
| | | | | | | r271553: Rename choices in partitioning method dialog (nwhitehorn) r271567: ZFS support isn't actually experimental anymore (nwhitehorn) Approved by: re (gjb)
* MFC r271563:allanjude2014-09-181-0/+58
| | | | | | | | | Make the root-on-zfs part of the installer warn a user who booted the installer via UEFI that we do not support booting ZFS via UEFI yet PR: 193595 Approved by: re (gjb), nwhitehorn Sponsored by: ScaleEngine Inc.
* MFC r271552:nwhitehorn2014-09-181-1/+2
| | | | | | | Make the default choice for the chroot shell at the end be "No". This allows just pressing enter repeatedly to successfully install a reasonable system. Approved by: re (gjb)
* MFH (r269653): Give a brief error messagethompsa2014-08-262-27/+35
|
* MFH (r269074): strip patch level from release namedes2014-08-231-0/+1
|
* Fix syntax error thrown at the point of creating the root pool, caused byroberto2014-06-041-12/+17
| | | | | | | | | | | | | | | | | an embedded newline appearing within the options string surrounded by double-quotes. Rework the logic that goes into setting dataset options on the root pool dataset while we're here -- added two new variables (which can be altered via scripting) ZFSBOOT_POOL_CREATE_OPTIONS and also ZFSBOOT_BOOT_POOL_CREATE_OPTIONS for setting pool/dataset attributes at the time of pool creation. The former is for setting options on the root pool (zroot) and the latter is for setting options on the optional separate boot pool (bootpool) implicitly enabled when using either GELI or MBR. The default value for the root pool variable (ZFSBOOT_POOL_CREATE_OPTIONS) is "-O compress=lz4 -O atime=off" and the default value for separate boot pool variable (ZFSBOOT_BOOT_POOL_CREATE_OPTIONS) is NULL (no additional options for the separate boot pool dataset). Reviewed by: allanjude
* MFC r266107,r266108,r266109:roberto2014-06-041-27/+108
| | | | | | | | | | | | | | | | | | | | | | | | Here is a patch for the bsdinstall root-on-zfs stuff that adds optional encryption for swap, and optional gmirror for swap (which can be combined) Updates to the datasets created by zfsboot. Set compress=lz4 for the entire pool, removing it from the individual datasets Remove exec=no from /usr/src, breaks the test suite. Fix the "disks" variable reuse. It starts off being used to track the grammar for the number of disks (singular vs plural) and then it is reused as the list of available disks. Replace the variable with disks_grammar and move 'disk' and 'disks' to msg_ vars so they can be translated in the future. Submitted by: Allan Jude <freebsd@allanjude.com> Reviewed by: roberto Sponsored by: ScaleEngine Inc.
* MFC r264841: Update zfsboot to coincide with MFC of r264840dteske2014-05-171-23/+71
| | | | adding GEOM support.
* 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 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-141-2/+2
| | | | | | | | | | | | | | | | | | | | | 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-219-449/+976
| | | | | | | | | | | | | | | | | 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)
OpenPOWER on IntegriCloud