summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/install.c
Commit message (Collapse)AuthorAgeFilesLines
* Farewall, sysinstall! You served us well for many years, but 10.0 is onenwhitehorn2011-10-031-1349/+0
| | | | | | | | digit beyond your time. Various sysinstall dependencies (e.g. libftpio, libdisk, libodialog, etc.) will be cleaned up in coming days. Some will take longer than others due to a few other consumers (tzsetup and sade).
* Fix typos - remove duplicate "the".brucec2011-02-211-1/+1
| | | | | | PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days
* Reduce the amount of text users need to read on each screen. Also try andbrucec2011-01-171-4/+7
| | | | | | | make it more relevant to modern systems: for example users will be familiar with the MBR but possibly less so with MS-DOS. After installation has finished don't return to the main menu but exit.
* Ignore any failures with the "local" distribution since it's not presentbrucec2010-12-061-1/+1
| | | | | | | | | on release CDs and so will normally fail. installCommit() returns a DITEM_ value, not a Boolean. distExtractAll() returns a Boolean, not a DITEM_ value. Reported by: kensmith MFC after: 3 days
* "Web" should not be all upper-case because it's not an acronym.brucec2010-11-141-1/+1
| | | | | | PR: bin/130366 Submitted by: Royce Williams <royce at alaska.net> MFC after: 1 week
* We still support PLIP devices, so mention them in addition to ethernet.brucec2010-11-131-1/+1
|
* Extend sysinstall to handle powerpc64 by teaching it that powerpc64 hasnwhitehorn2010-10-031-1/+1
| | | | | | | | | a lib32 distribution, and that the GENERIC kernel is named GENERIC64. More modifications will be required later for installations from ftp due to the shared platform name with 32-bit powerpc, but this is enough for snapshot CDs to work. Reviewed by: brucec
* To restart, sysinstall calls execl. Since it will create a new process, webrucec2010-08-171-1/+1
| | | | | | | | | | | can't check to see if sysinstall is running as init just by checking if the PID is 0. Introduce a new option that sets the RunningAsInit flag, and update the code to check RunningAsInit intstead of getpid(). PR: bin/38854 Submitted by: Peter Sedeffow <peter at trumanbrewery.com> Approved by: rrs (mentor) MFC after: 1 month
* FreeBSD 8 doesn't support kernel PPP or SLIP; remove code for configuringbrucec2010-07-161-1/+1
| | | | | | | | and installing via such devices from sysinstall. Reviewed by: randi Approved by: rrs (mentor) MFC after: 1 month
* Revert r209787 pending further discussion.randi2010-07-081-5/+15
| | | | Approved by: cperciva (mentor)
* Remove the ability to upgrade via sysinstall. This feature has been flakyrandi2010-07-081-15/+5
| | | | | | | | and broken for a number of years. freebsd-update now provides a reasonable way to handle upgrades, so keeping this functionality in sysinstall only serves to mislead users. Approved by: cperciva (mentor)
* Make it easier to cancel a failing installation by only attempting tobrucec2010-06-231-2/+4
| | | | | | | | | extract distributions once. If a distribution fails to fetch/extract and the user doesn't want to retry, abort the installation. Reviewed by: randi Approved by: rrs (mentor) MFC after: 1 month
* When installing on a machine which doesn't have a VGA card installed, enablebrucec2010-06-231-0/+29
| | | | | | | | | | | a getty on the serial port so that it's possible to login when the system is rebooted. PR: bin/23098 Submitted by: Doug Ambrisko <ambrisko at whistle.com> Reviewed by: randi Approved by: rrs (mentor) MFC after: 1 month
* Fix build breakages on ia64 introduced some commits ago.marcel2010-06-131-2/+0
|
* Unbreak the build on less common architectures.ed2010-06-131-1/+6
| | | | Submitted by: Andreas Tobler <andreast list fgznet ch>
* Make sysinstall WARNS=2 clean.randi2010-06-111-1/+0
| | | | | Approved by: cperciva (mentor) MFC after: 1 month
* Remove a bunch of code used to detect SMP on ((i386 && !pc98) || amd64) anddes2009-11-101-14/+1
| | | | | | | | | | | | | | | offer to install an SMP kernel. The way this worked was: on supported platforms, code to read ACPI tables and BIOS MP tables was compiled into sysinstall, and if an SMP kernel config was present in the source tree when sysinstall was built, code that called it was also compiled. Since we haven't had SMP kernel configs in years, the latter was never compiled and the former never ran. This only removes dead and unreachable code; it does *not* remove the NCpus variable, nor the code that sets it to 1, nor the code that asks the user to select a kernel from a list. Discussed with: re@, randi@ and others
* Fix references to the kernel distributions to use the correct namesjhb2009-08-121-1/+1
| | | | | | | | | (uppercase). PR: docs/137415 Submitted by: Yuri Gorchakov Approved by: re (rwatson, kib) MFC after: 3 days
* Add support for using a livefs from a USB disk.cperciva2009-07-081-0/+27
| | | | | Submitted by: randi Approved by: re (kensmith)
* Refactor code from installFixitCDROM into a new function, fixit_livefs_common.cperciva2009-07-081-49/+70
| | | | | | | | | | While doing so, improve style and reword some comments. This should not result in any functional changes, but the fixit_livefs_common function will be used by future code. Submitted by: randi Approved by: re (kensmith)
* Remove vestiges of OLDCARD PC Card support. We haven't needed/usedimp2009-02-151-1/+0
| | | | this since 5.x.
* Remove the offer to install Linux compatibility on i386 in the mainlinekensmith2008-12-121-6/+0
| | | | | portion of sysinstall. Leave it to be treated as a regular package along with all the other packages...
* Begin the sysinstall cleanup. Remove the support for configuring OSFkensmith2008-12-121-6/+0
| | | | binary compatibility.
* Remove sysinstall's ability to adjust the tape block size. Installs fromkensmith2008-08-201-1/+0
| | | | | | | | tape have been broken for quite a while, and I'll be removing the rest of sysinstall's knowledge of tapes shortly. I'm doing this piece now because I want to switch from gnu's cpio to bsdcpio being integrated into the installation environment and bsdcpio doesn't seem to handle block sizes at all.
* Fix a number of documentation-lags-behind-reality bugs in sysinstall(8).philip2007-06-251-1/+1
| | | | | | | While here, fix a couple of comments too. Submitted by: Oliver Fromme <olli -at- lurza.secnetix.de> Approved by: re (kensmith)
* Remove a warning regarding disk entries in /dev.ceri2006-11-111-2/+1
| | | | | Approved by: ru (mentor) MFC after: 4 days
* Fix typos in comments.ceri2006-11-071-1/+1
|
* If the user did not chose a distribution from the menu, a sensibleerwin2006-10-231-0/+2
| | | | | | | | default distribution (user) will be installed, however, no kernel will be installed. Fix this by installing a sensible default kernel, SMP/GENERIC, depending on WITH_SMP and number of CPUS found. Reviewed by: jhb
* Fix the output glitch.ru2006-08-211-1/+1
|
* Add FreeBSD version information to the menu title so it's possible tosimon2006-07-151-15/+3
| | | | | | | | | | see which release you are installing (really which FreeBSD version the installer is running, but that shouldn't matter in all normal cases). PR: bin/100309 Submitted by: Joao Barros <joao.barros@gmail.com> (original version) Idea from: FreeBSD ideas page MFC after: 1 week
* Disable an SMP detection on pc98.nyan2006-03-101-1/+1
|
* missed a case that needs WITH_SMPsam2006-03-091-0/+2
| | | | Noticed by: kensmith
* Revamp base system packaging of kernels to enable up/smp selectionsam2006-03-081-1/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | at runtime and to support distributing additional kernels: o remove kernel from the base tarball o add new kernel tarballs o build + package both SMP and GENERIC kernels when an <arch>/conf/SMP config file is present o add sysinstall support for multiple kernels o update sysinstall to probe for the number of cpus on a system and auto-select smp/up kernel accordingly o add a post-kernels install hook to fixup /boot/kernel o add -ldevinfo to boot crunch for sysinstall's cpu probing logic Notes: 1. On HEAD this code is not currently used because GENERIC kernels include SMP. This work is mainly intended for RELENG_6 where the GENERIC kernel is UP. If HEAD changes to match then just enable WITH_SMP in sysinstall/Makefile. 2. The cpu probing support is done with acpi and MPTable; this means some systems will require work for auto-detection to work. 3. The handling of /boot/kernel may need to be revisited; for now we rename one kernel at the last moment (SMP if installed, otherwise GENERIC). There are other, possibly better, approaches. Lots of help from ru, emaste, scottl, and jhb.
* An i386 machine with 32MB of RAM requires a 700MB disk for auto-layout toceri2005-12-291-2/+2
| | | | | | | succeed, whilst an i386 with 256MB of RAM requires more. Up the amount of disk hinted at as a minimum requisite for auto-layout. MFC after: 1 week
* Automatically switch to ttyv3 where the fixit shell is running when usingjhb2005-03-021-0/+2
| | | | | | the standard console and any fixit mode. MFC after: 1 day
* - Fix a bug in sysinstall related to mounting CD-ROMs. If mount(2) failsjhb2005-03-021-5/+23
| | | | | | | | | | | | | | | | | | | | | | | | | with EBUSY and a cdrom is not mounted at /cdrom, sysinstall fails to treat it as an error and thinks that the disk mounted ok. However, it doesn't find a cdrom.inf file so it complains. Later when it tries to unmount the disk due to a mediaClose() umount(2) returns an error, and it never clears its internal mounted flag. The fix here is to properly handle EBUSY as an error if there isn't a CD already mounted at /cdrom. - Add a new CDROMInitQuiet variable that can be used to shut up the dialog box about the mount(2) system call failing when trying to mount a CD-ROM. This is used by the feature described below. - When using a fixit CD, first try to see if we can mount the disc in the drive now and use it as a fixit CD. If not, then prompt the user to insert the disc and try again. If we do succeed on the first "silent" probe then we don't ask the user to eject the disk after leaving fixit mode. - Add a simple file existence test to make sure that the disc that we mount really is a livefs disc. - Explicitly switch back to ttyv0 when using the standard console after the fixit shell dies. Previously this behavior worked accidentally because all the fixit modes popped up a dialog box which contained a hidden switch to ttyv0. MFC after: 1 day
* Remove /stand when we are done with it.obrien2005-02-071-0/+3
| | | | Submitted by: Ryan Sommers <ryans@gamersimpact.com>
* Removed bitrot.ru2005-01-131-5/+2
|
* Remove support for configuring the X server from sysinstall. Generalkensmith2004-08-301-6/+0
| | | | | | | | | concensus seems to be that is best left for doing post-install. Discussed on: freebsd-current@ Tested with: make release Approved by: re@ MFC after: 3 days
* o Save pointers to the chunks for root, home, swap, usr, var and tmp inmarcel2004-08-071-99/+65
| | | | | | | | | | | | | | | global variables. On ia64, save a pointer to the efi chunk as well. o At the same time, change checkLabels() to define these globals instead of having the caller of checkLabels() pass addresses to variables for these. Change the two callers correspondingly. o Spent a bit more time adjusting try_auto_label() to prepate for having the EFI partition created on ia64. o Remove efi_mountpoint(). The EFI chunk is now available without having to iterate over the disks and chunks to find it every time we need it. o On ia64, now that the root chunk is globally available, set the vfs.root.mountfrom tunable in loader.conf. This avoids that one cannot boot into FreeBSD after an install. The kernel cannot find the root device without a little help...
* Join the 21st century: Cryptography is no longer an optional componentcperciva2004-08-061-1/+1
| | | | | | | | | | of releases. The -DNOCRYPT build option still exists for anyone who really wants to build non-cryptographic binaries, but the "crypto" release distribution is now part of "base", and anyone installing from a release will get cryptographic binaries. Approved by: re (scottl), markm Discussed on: freebsd-current, in late April 2004
* ia64 specific:marcel2004-08-041-21/+46
| | | | | | | | | | | | | | | | | | | | | | | | | o Remove the code that creates the boot directory on the EFI file system after it has been mounted, as well as remove the code that creates the symlink from /boot -> /efi/boot (*). As a result, /boot will be extracted onto the root file system. o Add a function efi_mountpoint() that returns the mount point of the EFI file system or NULL if no EFI partition is created. This function is used to both check whether there's an EFI file system and to return what its mount point is. o When there's no EFI file system, ask the user if this is what he or she wants. Since we extract /boot onto the root file system, we do not actually need an EFI file system for the installation to work. Whether one wants to install without an EFI partition is of course an entirely different question. We allow it... o When we're done installing and need to fix up the various bits and pieces, check if there's an EFI partition and if yes, move /boot to /efi/boot and create a symlink /boot -> /efi/boot (*). This is a much more reliable way to get /boot onto the EFI partition than creating the symlink up front and hope its being respected. It so happened that we never had the boot directory end up on the EFI partition. We make the symlink relative. (*) /efi is a place holder for the actual EFI mount point of course.
* Move the inclusion of libdisk.h from sysinstall.h to the source filesmarcel2004-08-021-0/+1
| | | | | | | that actually need it. This makes it easier for a platform porter to find the files that may need tweaking to support whatever MD specific partitioning is needed. It also helps to prevent that the libdisk API gets exposed and/or used where it's not needed.
* Mods for powerpc.grehan2004-05-151-10/+20
| | | | Submitted by: Suleiman Souhlal <refugee@segfaulted.com>
* Minor fixes for ia64 installs:jhb2004-05-071-0/+6
| | | | | | | - Don't look for partitions inside a FreeBSD chunk on ia64 when mounting the filesystems just before the chroot and install. - Write entries out to /etc/fstab for filesystems that aren't inside a FreeBSD chunk, but are a top-level chunk under the disk.
* Remove unused variables.jhb2004-03-111-3/+0
|
* In checkLabels(), deal with the fact that on ia64 we do not have amarcel2004-01-301-0/+12
| | | | disklabel.
* Teach the Fixit environment how to deal with a dynamic root. Symlinkscottl2003-12-211-6/+6
| | | | | | | | /libexec to /mnt2/libexec, and execute /mnt2/rescue/ldconfig to add the /mnt2/lib and /mnt2/usr/lib library directories. Thanks to John Baldwin for working to track this down. Submitted by: jhb
* Remove security profiles from sysinstall. Currently, security profilerwatson2003-11-281-11/+4
| | | | | | | | | | | | | | | | | selection is used to drive two configuration parameters: (1) Default enable/disable for sshd (2) Default enable/disable for securelevels Replace this with an explicit choice to enable/disable sshd. A follow-up commit will add a configuration option to the Security post-install configuration menu to set the securelevel in rc.conf explicitly. This should reduce the level of foot-shooting associated with accidental enabling of securelevels, make the nature and implications of the securelevel configuration options more explicit, as well as make the choice to enable/disable sshd more explicit. Approved by: re (scottl)
* Various NFS-related bug fixes (mostly related to using variable_get()des2003-10-191-0/+2
| | | | | | instead of variable_cmp() to test boolean rc.conf variables). Submitted by: hmp
OpenPOWER on IntegriCloud