summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdinstall/scripts
Commit message (Collapse)AuthorAgeFilesLines
* bsdinstall/zfsboot should create /tmp and /var/tmp if they do not existallanjude2016-04-081-0/+2
| | | | | | | PR: 208629 PR: 208568 Submitted by: Galael LAPLANCHE <ganael.laplanche@corp.ovh.com> MFC after: 2 weeks
* Do not add swap to fstab when swapsize is 0allanjude2016-04-081-2/+2
| | | | | | | | | If a user requested encrypted swap, but 0 sized, it would still be added to fstab PR: 208630 Submitted by: Ganael LAPLANCHE <ganael.laplanche@corp.ovh.com> MFC after: 2 weeks Sponsored by: ScaleEngine Inc.
* Remove 50% ZFS conditional from bsdinstall/zfsbootallanjude2016-03-171-5/+5
| | | | | | | | Remove the requirement that the resulting partition table be atleast 50% ZFS PR: 208094 Requested by: brooks Sponsored by: ScaleEngine Inc.
* The zfsboot automated part of bsdinstall now supports UEFIallanjude2016-01-301-68/+47
| | | | | | MFC after: 3 days Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D4960
* Never 4k align the MBR bootpool because zfsldr can not deal with a gapallanjude2016-01-161-1/+3
| | | | | | | | | | | | | | | | If the bootpool does not start at the first sector of the BSD partition then zfsldr seeks to the wrong offset inside the ZFS vdev label, and is unable to find zfsboot, so the system does not boot If 4k alignment is requested, align the BSD partition in the MBR table, and align the swap and data pool, but the bootpool must start at sector 1 While here, if 4k alignment is requested, disable MBR CHS alignment, as this results in not-4k aligned partitions. Reported by: Alex Wilkinson MFC after: 5 days Sponsored by: ScaleEngine Inc.
* bsdinstall: Suggest the GPT+Active workaround on Dell T5810vangyzen2016-01-141-1/+1
| | | | | | | | | | | | | | | | | | 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. Reviewed by: allanjude, dteske MFC after: 5 days Relnotes: We should probably suggest using GPT+Active on "recent" Dells. Sponsored by: Dell Inc. Differential Revision: https://reviews.freebsd.org/D4075
* Merge ^/projects/release-install-debug:gjb2016-01-051-4/+60
| | | | | | | | | | | | - Rework MANIFEST generation and parsing via bsdinstall(8). - Allow selecting debugging distribution sets during install. - Rework bsdinstall(8) to fetch remote debug distribution sets when they are not available on the local install medium. - Allow selecting additional non-GENERIC kernels during install. At present, GENERIC is still required, and installed by default. Tested with: head@r293203 Sponsored by: The FreeBSD Foundation
* Explicitly set permissions on entropy filesdteske2015-12-281-1/+6
| | | | | | | | | Differential Revision: https://reviews.freebsd.org/D3933 Submitted by: jmg Reviewed by: delphij, markm Approved by: secteam (delphij) MFC after: 3 days X-MFC-to: stable/10 stable/9
* Adapt to new wireless scheme where base wlan interfaces do not show up innwhitehorn2015-12-061-8/+13
| | | | ifconfig anymore.
* Use LIBEXECDIR for /usr/libexec.bdrewery2015-11-261-1/+1
| | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Add a number of models to the bsdinstall GPT hack blacklistallanjude2015-09-161-1/+27
| | | | | | | | PR: 194359 Approved by: bapt (mentor) MFC after: 2 weeks Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3525
* Replace `return' outside of function with exitdteske2015-09-111-1/+1
| | | | | | MFC after: 3 days X-MFC-to: stable/10 Pointy hat to: me
* Use a variable for readabilitydteske2015-09-111-2/+2
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Update copyrightdteske2015-09-111-1/+1
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Better to reset trap and explicitly exit successdteske2015-09-111-1/+2
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Remove trailing newline at EOFdteske2015-09-111-1/+0
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Produce meaningful exit codedteske2015-09-112-6/+14
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Explicitly exit with successdteske2015-09-111-1/+2
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Explicitly exit with successdteske2015-09-111-1/+2
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Update copyrightsdteske2015-09-113-2/+3
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Produce meaningful exit codedteske2015-09-111-1/+4
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Remove use of return outside of functiondteske2015-09-111-1/+1
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Ignore error results from newaliases(1)dteske2015-09-111-0/+2
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Ensure the local MANIFEST is always used when verifying remotesvnmir2015-08-041-1/+1
| | | | | | | distribution sets. MFC after: immediately Sponsored by: The FreeBSD Foundation
* Add the Dell E7240 laptop and Intel DP965LT motherboard to the list for the ↵allanjude2015-07-211-2/+28
| | | | | | | | | | | | GPT active workaround PR: 194359 Requested by: sbruno, hiren Approved by: marcel MFC after: 3 days Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3139
* Add support for two workarounds for known issues booting GPT in legacy mode ↵allanjude2015-07-182-3/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | on some hardware For Lenovo laptops with buggy bios (x220, t420, t520): Write the 0xee entry into the second slot in the pmbr instead of the first For some Dell and HP models: The BIOS gives a warning message when booting in legacy mode from a GPT partitioned disk where the 0xee partition in the pmbr is not flagged active For models known to have this problem, mark the pmbr active during installation Use smbios data to identify machines known to be affected by any of the above, and offer the user the option to apply the workaround In bsdinstall's ufs auto mode (autopart partition wizard): Allow users to select which type of partition table to use Keep current defaults: MBR for BIOS, GPT for UEFI This allows users to choose GPT for legacy boot if they wish PR: 184910 PR: 194359 Reviewed by: Michael Dexter Approved by: marcel MFC after: 3 days X-MFC-With: r285594 Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3091
* Make bsdinstall's zfsboot script align partitions to 4k/1m when the user ↵allanjude2015-07-141-22/+39
| | | | | | | | | | | | requests it PR: 195174 Reviewed by: darius Approved by: brueffer MFC after: 3 days Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3062
* Set a mountpoint on the root of the pool so user-created datasets have a ↵allanjude2015-07-141-1/+10
| | | | | | | | | | | mountpoint to inherit Reviewed by: darius Approved by: brueffer MFC after: 3 days Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3063
* Have bsdinstall's zfsboot script make /var/audit its own dataset, so it is ↵allanjude2015-07-141-0/+1
| | | | | | | | | | | not part of the OS boot environment PR: 199864 Submitted by: Jason Unovitch Approved by: brueffer MFC after: 3 days Relnotes: yes Differential Revision: https://reviews.freebsd.org/D2861
* Fix a typo in bsdinstallallanjude2015-07-131-1/+1
| | | | | | | | | | | A variable was misspelled resulting in chmod executing on the installer instead of on the target chroot PR: 191402 Submitted by: Martin Simmons <martin@lispworks.com> Approved by: brueffer MFC after: 3 days Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3061
* Add META_MODE support.sjg2015-06-131-0/+11
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-272-96/+109
| |\ | |/ |/|
| * Merge from head@274682sjg2014-11-195-36/+103
| |\
| * \ Merge head from 7/28sjg2014-08-192-37/+124
| |\ \
| * \ \ Merge headsjg2014-04-2814-110/+2053
| |\ \ \
| * \ \ \ Merge head@256284sjg2013-10-131-2/+0
| |\ \ \ \
| * | | | | New dependenciessjg2013-10-131-0/+12
| | | | | |
* | | | | | Fix a syntax error in bsdinstall/zfsbootallanjude2015-05-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D2571 Submitted by: Michael Dexter Approved by: dteske MFC after: 1 week X-MFC-With: r283023, r282443 Sponsored by: ScaleEngine Inc.
* | | | | | bsdinstall/zfsboot: Skip adding swap lines to /etc/fstab if swap is 0 sizedallanjude2015-05-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D2571 Reviewed by: dim Approved by: eadler (mentor) Sponsored by: ScaleEngine Inc.
* | | | | | Add a sanity check to the swap size in zfsboot of bsdinstallallanjude2015-05-051-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Loop until the user enters a valid size (>100mb or 0) Differential Revision: https://reviews.freebsd.org/D2299 Reported By: Shawn Webb Reviewed by: roberto Approved by: brd MFC after: 2 weeks Sponsored by: ScaleEngine Inc.
* | | | | | Add "GELI Passphrase:" prompt to boot loader.dteske2015-04-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A new loader.conf(5) option of geom_eli_passphrase_prompt="YES" will now allow you to enter your geli(8) root-mount credentials prior to invoking the kernel. See check-password.4th(8) for details. Differential Revision: https://reviews.freebsd.org/D2105 Reviewed by: imp, kmoore Discussed on: -current MFC after: 3 days X-MFC-to: stable/10 Relnotes: yes
* | | | | | Unbreak ZFS+GELI install option.dteske2015-04-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: delphij Submitted by: delphij Pointy hat to: dteske (me) MFC after: 3 days X-MFC-to: stable/10 stable/9 X-MFC-with: r281160
* | | | | | Fix permissions on ZFS root encryption key (644 -> 600).dteske2015-04-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10 stable/9 Security: CVE-2015-1415 Reported by: Pierre Kim
* | | | | | Whoops! "arc commit --revision" != "arc diff --update"dteske2015-04-011-3/+0
| | | | | |
* | | | | | Add "GELI Passphrase:" prompt to boot loader.dteske2015-04-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Add "GELI Passphrase:" prompt to boot loader. A new loader.conf(5) option of geom_eli_passphrase_prompt="YES" will now allow you to enter your geli(8) root-mount credentials prior to invoking the kernel. See check-password.4th(8) for details. Differential Revision: https://reviews.freebsd.org/D2105 Reviewed by: (your name[s] here) MFC after: 3 days X-MFC-to: stable/10 Relnotes: yes Test Plan: Drop a head copy of check-password.4th into /boot and then apply the patch (only the patch to /boot/check-password.4th is required; no other changes are required but you do have to have a HEAD copy of check-password.4th to apply the patch). NB: The rest of your /boot files can be up to 2 years old but no older. NB: The test won't work unless your kernel has the following change https://svnweb.freebsd.org/base?view=revision&revision=273489 Now, put into /boot/loader.conf: geom_eli_passphrase_prompt="YES" and reboot. You should be prompted for a GELI passphrase before the menu (if enabled), just after loading loader.conf(5). NB: It doesn't matter if you're using GELI or not. However if you are using GELI and a sufficiently new enough release (has SVN r273489) and you entered the proper passphrase to mount your GELI encrypted root device(s), you should notice that the boot process did not stop (you went from loader all the way to login). Reviewers: cperciva, allanjude, scottl, kmoore Subscribers: jkh, imp Differential Revision: https://reviews.freebsd.org/D2105
* | | | | | Update copyright(s)dteske2015-03-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10
* | | | | | Whitespace cleanup(s).dteske2015-03-211-43/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 3 days X-MFC-to: stable/10
* | | | | | Remove a non-required unsafe condition added in the previous commitallanjude2015-03-181-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: bapt Approved by: dteske Sponsored by: ScaleEngine Inc.
* | | | | | Fix the handbook install option in bsdinstallallanjude2015-03-181-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bsdconfig's f_package_add doesn't seem to support using the pkg repo from /etc/pkg/FreeBSD.conf, it also tries to run the commands on the installer image, not in the destination chroot Instead, manually bootstrap pkg in the chroot, and then install the requested packages (in the chroot) Doesn't use pkg -c, because pkg is not installed on the installer image PR: 196250 Differential Revision: https://reviews.freebsd.org/D2026 Approved by: bapt Sponsored by: ScaleEngine Inc.
OpenPOWER on IntegriCloud