aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bsdinstall/scripts/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* bsdinstall: Mount /dev and /packages after using the shell to partition disksJohn Baldwin2025-12-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Normally after partitions are created by the installer, the 'mount' script is used to mount the target disk partitions under /mnt. The tail end of this script also mounts a couple of additional filesystems under /mnt so that chrooted programs can work such as devfs and /packages. When the "Shell" option is used to permit the user to manually mount the destination filesystem, the "mount" script is not used as the user is instructed to mount the target filesystems and construct /mnt/etc/fstab, etc. However, this means that the user is responsible for mounting devfs (which is not included in /etc/fstab) and /packages as well. The help message for the "Shell" option doesn't mention these requirements, so users may not know to do so. This can lead to confusing errors as chrooted commands can fail to find needed /dev entries. For example, running fwget to fetch wireless firmware fails because /dev/pci doesn't exist. To make this less painful for users using this option, split out the bottom half of the 'mount' script that mounts these non-fstab-related filesystems into a separate 'mount_aux' script. Invoke 'mount_aux' after using "Shell" to create the filesystem to ensure that these filesystems are always present. PR: 290901 Reported by: Peter <freebsd@peterk.org> Tested by: Peter <freebsd@peterk.org> Differential Revision: https://reviews.freebsd.org/D53770
* bsdinstall: add pkgbase targetIsaac Freund2025-04-281-0/+6
| | | | | | | Reviewed by: ziaee (manpages), kevans (lua), emaste Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D49822
* bsdinstall: add menu to install firmwareBjoern A. Zeeb2024-11-201-0/+1
| | | | | | | | | | | | | | | | Add a menu to the installer to run fwget(8) inside the newly installed system to install firmware known to be needed. This requires working netowrking. This is needed at least for wireless currently for when we entirely stop shipping new firmware in src.git to have working networking on the installed system (we already do need this for at least rtw89). Sponsored by: The FreeBSD Foundation Tested with: 4 different iwlwifi chipsets in a system (earlier version) Suggested improvments by: jrtc27 MFC after: 8 hours Differential Revision: https://reviews.freebsd.org/D47491
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* bsdinstall: revisit the finalconfig stepPierre Pronchery2023-10-131-0/+1
| | | | | | | | | This moves the "finalconfig" step into a dedicated script, where it uses a loop instead of recursing into itself. Reviewed by: bapt Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D42046
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* bsdinstall: break list of scripts out to one per line to make ↵Brad Davis2022-05-241-4/+25
| | | | | | | | adding/removing entries easier Approved by: allanjude, asiciliano Differential Revision: https://reviews.freebsd.org/D35249 Sponsored by: Rubicon Communications, LLC ("Netgate")
* Fix scripted installation from media without local distfiles.Nathan Whitehorn2021-05-281-4/+4
| | | | | | | | | | | | | | | | | | | | | | The bsdinstall script target did not have the infrastructure to fetch distfiles from a remote server the way the interactive installer does on e.g. bootonly media. Solve this by factoring out the parts of the installer that deal with fetching missing distributions into a new install stage called 'fetchmissingdists', which is called by both the interactive and scripted installer frontends. In the course of these changes, cleaned up a few other issues with the fetching of missing distribution files and added a warning if fetching the MANIFEST file, which is used to verify the integrity of the distribution files. We should at some point add cryptographic signatures to MANIFEST so that it can be fetched safely if not present on the install media (which it is for bootonly media). Initial patch by: Vinícius Zavam PR: 255659, 250928 Reviewed by: dteske MFC after: 4 weeks Differential Revision: https://reviews.freebsd.org/D27121
* Add installer support for PS3 and PowerNV systems, also laying theNathan Whitehorn2018-01-021-3/+4
| | | | | | | | | | | | | | | | | | foundation for invoking efibootmgr as part of new-style EFI booting on x86. On PS3 and PowerNV, which are booted using Linux kexec from petitboot rather than by loader(8), install the kernel and the rest of /boot to a FAT partition and set up the appropriate petitboot configuration file there. The new bootconfig installer stage can do platform-dependent modifications more complex than partition layout and installation of boot blocks and can be used to (as here) set up some special configuration files, run efibootmgr, or boot0cfg. MFC after: 1 month Notes: svn path=/head/; revision=327487
* Add new System Hardening menu and options to bsdinstall.Bartek Rutkowski2016-07-151-1/+1
| | | | | | | | | | | | | | | | | This patch add new 'hardening' file responsible for new bsdinstall 'System Hardening' menu allowing users to set some sane and carefully picked system security options (like random process id's, hiding other users/groups processes and others). All options are OFF by default in this patch due to POLA principle with intention to turn change some of them to ON by default in future. Reviewed by: adrian, allanjude, bdrewery, nwhitehorn Approved by: adrian, allanjude MFC after: 7 days Notes: svn path=/head/; revision=302897
* Use LIBEXECDIR for /usr/libexec.Bryan Drewery2015-11-261-1/+1
| | | | | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291348
* NO_MAN= has been deprecated in favor of MAN= for some time, go aheadWarner Losh2014-04-131-1/+1
| | | | | | | | | 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. Notes: svn path=/head/; revision=264400
* Add zfsboot module as an option for automatic configuration. Default isDevin Teske2013-10-111-1/+1
| | | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=256343
* After installation, dump 4096 bytes from /dev/random to /entropy in theDag-Erling Smørgrav2013-10-111-3/+3
| | | | | | | | | | | 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) Notes: svn path=/head/; revision=256338
* Add a scripting frontend. Documentation and release(7) support coming later.Nathan Whitehorn2013-01-211-1/+1
| | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=245702
* Per request of the docs team, install docs as packages, instead of viaNathan Whitehorn2011-07-091-3/+3
| | | | | | | | | | the normal distfile mechanism. Thanks to Marc Fonvieille for the patch and for putting up with me taking entirely too long to commit this! Submitted by: blackend Notes: svn path=/head/; revision=223897
* Split netconfig into three parts:Bjoern A. Zeeb2011-05-291-1/+2
| | | | | | | | | | | | | | | | | | - netconfig - what auto will call which in turn will check for IPv4 and IPv6 to be available and ask the user to configure it by calling - netconfig_ipv4 doing DHCP and static IPv4 addresses, and - netconfig_ipv6 doing rtsol and static IPv6 addresses, and then checking, querying and updating resolv.conf upon return. Both DHCP and rtsol (in the future) might update resolv.conf already so we seed ourselves from that file if available. Reviewed by: nwhitehorn Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Notes: svn path=/head/; revision=222468
* Add mirror selection for FTP installs. To support TBEMD installsNathan Whitehorn2011-03-271-2/+2
| | | | | | | | | | | | | (e.g. powerpc64), this looks in a slightly different default path than now, specifying both $MACHINE and $MACHINE_ARCH: MIRROR/pub/FreeBSD/releases/`uname -p`/`uname -m`/`uname -r` How to handle TBEMD properly probably merits some more discussion, but, since no such 9.0-CURRENT distfiles exist at the moment, all existing mirrors presently fail anyway. Notes: svn path=/head/; revision=220080
* Add generation of an installation manifest containing SHA256 checksums asNathan Whitehorn2011-03-131-2/+2
| | | | | | | | well as package descriptions and add code in the installer to check the checksums. Notes: svn path=/head/; revision=219615
* Import bsdinstall. This is meant to be (eventually in conjunction withNathan Whitehorn2011-02-181-0/+9
pc-sysinstall) a replacement for sysinstall in the 9.0 release and beyond. Currently supported platforms are sparc64, pc98, i386, amd64, powerpc, and powerpc64. Integration into the build system will occur in the coming weeks. Merging with pc-sysinstall will use this code as a frontend, while temporarily retaining the interactive partition editor here. This work will be done in parallel with improvements on this code and release integration. Thanks to all who have provided testing and comments! Notes: svn path=/head/; revision=218799