aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bsdinstall
Commit message (Collapse)AuthorAgeFilesLines
* bsdinstall: riscv-specific tweaksMitchell Horne2021-01-275-5/+13
| | | | | | | | | | | | Make the installer more useful, by allowing it to create a bootable installation. Also, enable the menu option for ZFS-on-root. Like arm64, RISC-V boots by UEFI only, so arm64's partedit implementation is renamed and shared among the two platforms. Reviewed by: gjb MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D28180
* bsdinstall: create /efi/boot directory in ESPMitchell Horne2021-01-271-4/+7
| | | | | | | | | | If the installer is creating a new ESP, then this directory will not exist and the subsequent cp will fail silently. This is usually of no consequence if /efi/freebsd/loader.efi is set up correctly. Reviewed by: imp MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D28176
* bsdinstall: remove VTOC8 partition scheme optionMitchell Horne2020-12-171-7/+0
| | | | | | | | | | | | | Now that sparc64 has been removed, there are no kernels built with support for the VTOC8 partitioning scheme by default. Remove the option from the installer, as it is unsupported on all installer images produced by re@. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D27641 Notes: svn path=/head/; revision=368719
* Initial support for implementing the bootXXX.efi workaroundWarner Losh2020-10-091-0/+24
| | | | | | | | | | | | | | | | | | | | | Too many version of UEFI firmware (so far only confirmed on amd64) don't really support efibootmgr selection of boot. That's the most reliable, when it works, since there's no guesswork. However, many do not save, unmolested, the variables that efibootmgr sets, so as a fallback we also install loader.efi as bootXXX.efi (where XXX is either aa64 or x64) if it doesn't already exist in /efi/boot on the ESP. The standard only defines this for removable devices, but it's almost ubiquitously used as a fallback. Many BIOSes implement a drive selection feature that takes over the efibootmgr protocol, rendinering it useless (either generally, or for those vendors not on the short list). bootxxx.efi works around this. However, we don't install it unconditionally there, as that breaks some popular multi-boot setups. MFC After: 1 week Differential Revision: https://reviews.freebsd.org/D26428 Notes: svn path=/head/; revision=366554
* Do a sweep and remove most WARNS=6 settingsKyle Evans2020-10-012-2/+0
| | | | | | | | | | | | | | | Repeating the default WARNS here makes it slightly more difficult to experiment with default WARNS changes, e.g. if we did something absolutely bananas and introduced a WARNS=7 and wanted to try lifting the default to that. Drop most of them; there is one in the blake2 kernel module, but I suspect it should be dropped -- the default WARNS in the rest of the build doesn't currently apply to kernel modules, and I haven't put too much thought into whether it makes sense to make it so. Notes: svn path=/head/; revision=366304
* bsdconfig, bsdinstall: Prune dead mirrorsNiclas Zeising2020-09-261-14/+0
| | | | | | | | | | | | | Prune dead mirrors from the list of mirrors in bsdconfig and bsdinstall. All these return NXDOMAIN when trying to resolve them. Reviewed by: emaste Approved by: emaste MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D26535 Notes: svn path=/head/; revision=366186
* Revert r361257: bsdinstall: do a `certctl rehash` upon installation [...]Kyle Evans2020-09-171-3/+0
| | | | | | | | | | | | As of r365829, any given base distribution set will now include the /etc/ssl symlinks that this rehash would've otherwise installed. This extra step is no longer required. MFC after: 1 week X-MFC-With: r365837 Notes: svn path=/head/; revision=365852
* bsdinstall: Update loader.conf for new OpenZFS depsRyan Moeller2020-08-251-3/+3
| | | | | | | | | | zfs.ko now includes the SPL but relies on cryptodev instead. Reported by: D Scott Phillips Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=364785
* s/redundacy/redundancyMarc Fonvieille2020-08-241-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=364684
* Add missing Korean doc package entry, remove non-existent Serbian docMarc Fonvieille2020-08-241-2/+2
| | | | | | | | | | package entry. Approved by: re (gjb) MFC after: 1 week Notes: svn path=/head/; revision=364682
* - Cleanups related to sparc64 removal.Yoshihiro Takahashi2020-07-281-84/+0
| | | | | | | | | | - Remove remains of sparc64 files. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D25831 Notes: svn path=/head/; revision=363644
* bsdinstall: only kill the dhclient for the interface we are restartingAllan Jude2020-07-111-1/+1
| | | | | | | | | | | PR: 205821 Reported by: mjg MFC after: 2 weeks Sponsored by: Klara Inc. Event: July 2020 Bugathon Notes: svn path=/head/; revision=363103
* bsdinstall: don't fail if fstab is emptyAllan Jude2020-07-111-1/+3
| | | | | | | | | | | | | PR: 210865 Submitted by: Tim Lukasiewicz <eclipzetech08@gmail.com>, h-fujishima@sakura.ad.jp (original version) Reported by: h-fujishima@sakura.ad.jp Reviewed by: sef MFC after: 2 weeks Sponsored by: Klara Inc. Event: July 2020 Bugathon Notes: svn path=/head/; revision=363101
* bsdinstall: kill dhclient before starting a new instanceAllan Jude2020-07-111-1/+1
| | | | | | | | | | | | PR: 205821 Submitted by: William Orr <will@worrbase.com> MFC after: 2 weeks Sponsored by: Klara Inc. Event: July 2020 Bugathon Differential Revision: https://reviews.freebsd.org/D14572 Notes: svn path=/head/; revision=363097
* Fix indentation in bsdinstall-created wpa_supplicant.confDevin Teske2020-05-201-50/+49
| | | | | | | | | | | | PR: base/221982 Reported by: emaste Reviewed by: emaste, allanjude MFC after: 0 days X-MFC-to: stable/11 Differential Revision: https://reviews.freebsd.org/D23641 Notes: svn path=/head/; revision=361300
* bsdinstall: do a `certctl rehash` upon installation of configurationKyle Evans2020-05-191-0/+3
| | | | | | | | | | | | | | | | | If certctl is installed on the system we're configuring, do a certctl rehash. Note that certctl may not be present if the world we've installed was built either WITHOUT_OPENSSL or WITHOUT_CAROOT. In this scenario, we don't currently see if the host has a certctl as this may be an indication that the system *shouldn't* have certs installed into /etc/ssl. Reviewed by: allanjude, dteske MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D24640 Notes: svn path=/head/; revision=361257
* bsdinstall: remove the Italian mirrorPhilip Paeps2020-02-281-1/+0
| | | | | | | | | | | ftp.it.FreeBSD.org has been down for several years. PR: 244481 Reported by: xgeoplasma6@gmail.com MFC after: 3 days Notes: svn path=/head/; revision=358419
* Improve documentation of bootconfig and PARTITIONSMateusz Piotrowski2020-02-061-1/+13
| | | | | | | | | | | | | | | - Mention bootconfig target in TARGETS section. - Document PARTITIONS variable, which is only mentioned in the examples, but doesn't have its own point. Submitted by: arrowd@ Reviewed by: bcr Approved by: bcr (mentor) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D22927 Notes: svn path=/head/; revision=357638
* bsdinstall: Provide help text for partitioning optionsBen Woods2020-01-271-11/+28
| | | | | | | | | | | | | | | Includes commentary of when ZFS works well by default (>= 8GB RAM), and where to go for information on ZFS tuning if required. Also hoist the options text to the top of script as variables (will help with future international translations). Reviewed by: philip, dteske, karels, imp, emaste Approved by: rgrimes Differential Revision: https://reviews.freebsd.org/D23224 Notes: svn path=/head/; revision=357185
* Fix regression in bsdinstall post r356740 - partedit errno(2) 21 EISDIRBen Woods2020-01-171-1/+1
| | | | | | | | | | | | | | | | This resulted in the partitioning step failing if either of the "Auto (UFS)" or "Manual" options were selected. Reason: partedit was attempting to open a directory (TMPDIR) read/write, which resulted in errno(2) 21 - EISDIR - Is a directory. Reported by: Clay Daniels <clay.daniels.jr@gmail.com> Reviewed by: Ryan Moeller <ryan@freqlabs.com> Approved by: emaste, bcran Differential Revision: https://reviews.freebsd.org/D23232 Notes: svn path=/head/; revision=356855
* bsdinstall: Change "default" (first) Partitioning method to ZFSBen Woods2020-01-152-6/+6
| | | | | | | | | Reported by: Ruben Schade (during his talk at linux.conf.au) Approved by: philip Differential Revision: https://reviews.freebsd.org/D23173 Notes: svn path=/head/; revision=356758
* bsdinstall: Use TMPDIR if setRebecca Cran2020-01-1510-22/+50
| | | | | | | | | Submitted by: Ryan Moeller <ryan@freqlabs.com> Reviewed by: bcran, Nick Wolff <darkfiberiru@gmail.com> Differential Revision: https://reviews.freebsd.org/D22979/ Notes: svn path=/head/; revision=356740
* o Spell "Redundancy" and "Remember" correctly.Maxim Konovalov2020-01-081-3/+3
| | | | | | | | PR: 243187 Submitted by: mikael.urankar@gmail.com (partially) Notes: svn path=/head/; revision=356488
* bsdinstall.8: Fix description of DISTRIBUTIONS environment variableMateusz Piotrowski2019-11-211-2/+2
| | | | | | | | | | Reviewed by: bcr Approved by: bcr (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D22478 Notes: svn path=/head/; revision=354967
* bsdinstall: fix ESP detection for auto ZFS layoutYuri Pankov2019-10-092-7/+14
| | | | | | | | | | | | | | Pass the list of user selected disks from zfsboot to bootconfig so that the latter doesn't rely on ESP autodetection that apparently fails for some cases, e.g. memstick installation with nvme (boot) and sata drives. While here, fix printing of debug messages in bootconfig. Reviewed by: bcran, imp, tsoome Differential Revision: https://reviews.freebsd.org/D21930 Notes: svn path=/head/; revision=353335
* Add a comment explaining why the opensolaris_load line in loader.confGlen Barber2019-10-021-0/+2
| | | | | | | | | | | | is explicitly added. Requested by: rgrimes MFC after: 3 days MFC with: r353004 Sponsored by: Rubicon Communications, LLC (Netgate) Notes: svn path=/head/; revision=353012
* Explicitly add opensolaris_load="YES" to loader.conf through theGlen Barber2019-10-021-0/+1
| | | | | | | | | | | | | | | installer when installing the system on a ZFS root filesystem. For arm64, zfs_load="YES" does not add opensolaris.ko as a kld dependency, so add it explicitly to prevent boot-time failures out-of-box. PR: 240478 MFC after: 3 days Sponsored by: Rubicon Communications, LLC (Netgate) Notes: svn path=/head/; revision=353004
* bsdinstall: up the interface before calling dhclientEmmanuel Vadot2019-04-251-0/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=346683
* powerpc/boot: Move ubldr to /boot/uboot, and make this a separate filesystemJustin Hibbits2019-02-181-4/+8
| | | | | | | | | | | | Summary: Now that mpc85xx can boot via ubldr, move ubldr to a separate filesystem, mounted on /boot/uboot, so that a fresh install can boot correctly. Reviewed By: nwhitehorn Differential Revision: https://reviews.freebsd.org/D18709 Notes: svn path=/head/; revision=344242
* Use the --activate efibootmgr(8) flag when creating entries in bootconfigRebecca Cran2018-12-311-7/+1
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=342638
* Fix ESP generation when using a gmirror, and when booting from RO mediumRebecca Cran2018-12-311-8/+15
| | | | | | | | | | | | | | | | | When using a gmirror, entries in /dev can be removed. So instead of using kern.disks, get the list of disks from "gpart status -sg" instead. We assume that any 'efi' partition that can't be mounted as msdosfs should be used as an ESP. However, the ESP on the CD/DVD can't be mounted read-write and so was being treated as if unformatted. Try the mount as read-only instead, to catch cases like this. Relnotes: yes Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D18645 Notes: svn path=/head/; revision=342637
* Rework UEFI ESP generationRebecca Cran2018-12-205-56/+139
| | | | | | | | | | | | | | | | Currently, the installer uses pre-created 800KB FAT12 filesystems that it dd's onto the ESP partition. This changeset improves that by having the installer generate a FAT32 filesystem directly onto the ESP using newfs_msdos and then copying loader.efi into /EFI/freebsd. For live installs it then runs efibootmgr to add a FreeBSD boot entry in the BIOS. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D17947 Notes: svn path=/head/; revision=342283
* Sort i18n messages in bsdinstall zfsbootDevin Teske2018-10-281-1/+1
| | | | | | | | | No functional change. Sponsored by: Smule, Inc. Notes: svn path=/head/; revision=339845
* Adjust for 80-columns.Devin Teske2018-10-281-4/+4
| | | | | | | | | No functional change. Sponsored by: Smule, Inc. Notes: svn path=/head/; revision=339830
* Adjust bsdinstall zfsboot code to 80-columns and whitespace fixesDevin Teske2018-10-261-47/+51
| | | | | | | | | No functional changes. Sponsored by: Smule, Inc. Notes: svn path=/head/; revision=339768
* Fix dialog autosizing in bsdinstall auto error messagesDevin Teske2018-10-261-19/+47
| | | | | | | Sponsored by: Smule, Inc. Notes: svn path=/head/; revision=339760
* Whitespace alignment in bsdinstall hostnameDevin Teske2018-10-261-6/+6
| | | | | | | | | | Aligning line-continuation characters to prevent mistakes. This is also the prevalent style replication throughout. Sponsored by: Smule, Inc. Notes: svn path=/head/; revision=339759
* Sort i18n strings in bsdinstall hostnameDevin Teske2018-10-261-3/+3
| | | | | | | Sponsored by: Smule, Inc. Notes: svn path=/head/; revision=339758
* Add improved error checking to bsdinstall hostnameDevin Teske2018-10-261-2/+9
| | | | | | | Sponsored by: Smule, Inc. Notes: svn path=/head/; revision=339756
* Fix dialog autosizing in bsdinstall hostnameDevin Teske2018-10-261-15/+81
| | | | | | | Sponsored by: Smule, Inc. Notes: svn path=/head/; revision=339755
* Fix the distribution path for -ALPHA builds, which are underGlen Barber2018-10-081-1/+1
| | | | | | | | | | | the snapshots directory, not releases. Reported by: David Marec david.marec _at_ davenulle _dot_ org Approved by: re (rgrimes) Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=339244
* bsdinstall(8): Fix a typo.Mateusz Piotrowski2018-10-051-1/+1
| | | | | | | | | | Reported by: Jose Luis Duran Reviewed by: bcr Approved by: re (gjb), krion (mentor, implicit), mat (mentor, implicit) Differential Revision: https://reviews.freebsd.org/D17409 Notes: svn path=/head/; revision=339193
* bsdinstall(8): Document ZFS installation scripting.Mateusz Piotrowski2018-10-041-10/+189
| | | | | | | | | | | | | | | | | | | | | | | | | - Extend the bsdinstall(8) man page with ZFS installation scripting details. [1] - Extend the bsdinstall(8) man page with the description of all the ZFS variables involved in a scripted installation of ZFS-based systems. [1] - Extend the SCRIPTING section with an example for a ZFS-based scripted installation. [1] - Create a new section explaining how ZFS datasets must be written into a variable to get them set on the final system. [1] While here: - Add Roberto to the copyrights for recognition as changes to the manual page are huge. - Use "Dq" for default values. - Use sysrc(8) instead of echo in examples. Submitted by: Roberto Fernandez Cueto <roberfern@gmail.com> [1] Reviewed by: dteske Approved by: re (gjb), krion (mentor, implicit), mat (mentor, implicit) Differential Revision: https://reviews.freebsd.org/D14169 Notes: svn path=/head/; revision=339179
* Add an installer option to disable destructive dtrace.Dag-Erling Smørgrav2018-09-211-0/+5
| | | | | | | | | | Submitted by: Jörg Pernfuß <code.jpe@gmail.com> Approved by: re (kib) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D12474 Notes: svn path=/head/; revision=338852
* Fix variable name typo in the bsdinstall ttys hardening code.Mark Johnston2018-09-201-3/+3
| | | | | | | | | | Submitted by: Jörg Pernfuß <code.jpe@gmail.com> Reviewed by: allanjude, dab, emaste Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D12476 Notes: svn path=/head/; revision=338832
* bsdinstall/zfsboot: Enable new UEFI+GELI supportAllan Jude2018-08-231-9/+42
| | | | | | | | | | | | | | | | | | | After r336252 it is no longer necessary to have a separate bootpool when booting from an encrypted disk with UEFI. This change also switches the EFI System Partition contents from the 800 KB boot1.efifat to a new 200 MB filesystem created with newfs_msdos and uses loader.efi directly, instead of boot1.efi. PR: 228916 Reviewed by: dteske MFC after: 1 month Relnotes: yes Sponsored by: Klara Systems Differential Revision: https://reviews.freebsd.org/D12315 Notes: svn path=/head/; revision=338282
* Remove unused MAPDESCFILE.Kevin Lo2018-08-111-5/+0
| | | | Notes: svn path=/head/; revision=337628
* Add partition scheme for mpc85xx devicesJustin Hibbits2018-06-071-3/+8
| | | | | | | | | | | | | Some mpc85xx devices with u-boot need MBR partitioning with a FAT boot partition. Since the infrastructure is already in place to have a dedicated boot partition, this adds the necessary bits to use that infrastructure with mpc85xx boards. Reviewed By: nwhitehorn Differential Revision: https://reviews.freebsd.org/D15664 Notes: svn path=/head/; revision=334745
* Set kernelname in bootconfig to the kernel fileJustin Hibbits2018-06-041-1/+1
| | | | | | | | | | | | Summary: The kernel reads 'kernelname' to set the kern.bootfile sysctl. By setting this, 'make installkernel' will backup the running kernel as appropriate. Reviewed by: nwhitehorn Differential Revision: https://reviews.freebsd.org/D15660 Notes: svn path=/head/; revision=334615
* Use sysrc(8) in the documentation rather than echoing things to rc.confNathan Whitehorn2018-05-181-2/+2
| | | | | | | | | | | in order to encourage good habits. PR: 228325 Submitted by: Mateusz Piotrowski MFC after: 2 weeks Notes: svn path=/head/; revision=333804