summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/sysinstall.h
Commit message (Collapse)AuthorAgeFilesLines
* - Increase the maximum device name length.jwd2003-02-271-1/+1
| | | | | | | | - Actually check that the entered device name does not exceed the maximum device name length. PR: misc/18466 MFC after: 2 weeks
* - Rename installFixupBin to installFixupBase to finish up the 'bin' tojhb2003-01-171-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'base' dist rename. - Rework struct dist to allow for different types of dists. There are currently three types of dists: DT_TARBALL, the traditonal gzipped and split tar file; DT_PACKAGE, a package; and DT_SUBDIST, a meta-dist in the tree that has its own array of dists as its contents. For example, the 'base' dist is a DT_TARBALL dist, the 'perl' dist is a DT_PACKAGE dist, and the 'src' dist is a DT_SUBDIST dist with its own dist table that contains 'sbase', 'ssys', etc. - Add helper macros for defining array entries for the different types of dists to try and make the statically defined dist table in dist.c more readable. - Split the logic to deal with a DT_TARBALL dist out of distExtract() and into its own distExtractTarball() function. distExtract() now calls other functions to extract each dist. - Tweak the percentage complete calculation in distExtractTarball() to do the multiply prior to the divide so it doesn't have to use floating point. - Axe the installPackage() function along with the special handling for the perl and XFree86 dists in distExtractAll() since distExtract() handles package dists directly now. - Add back in subdists for the X packages based on the split up packages that XFree86-4 uses that as closely map to the X dists we used with X 3.3.x. - Lots of things like distSetX() and the X dist masks are no longer #ifndef X_AS_PKG since we use them in both cases now. - Make the entire installFixupXFree() function #ifndef X_AS_PKG, we only call it in that case anyways, and it's not suitable for the X_AS_PKG case. - Add in X dist menus for the X_AS_PKG case. Approved by: re
* Add a function driverFloppyCheck() that asks the user if they would like tojhb2003-01-151-0/+1
| | | | | | | | | load drivers from the driver floppy if the "driver_floppy" variable is set in the kernel environment and call this function after probing devices but before displaying the main menu. X-MFC after: as soon as I finish committing to current Approved by: re@ (blanket)
* Teach sysinstall about rpcbind, rpc.lockd, and rpc.statd. As an addedscottl2003-01-071-0/+2
| | | | | bonus, rpcbind will be enabled automatically if rpc.lockd, rpc.statd, amd, NFS Server, or NIS is enabled.
* Reformulate how sysinstall handles file system options in the labelrwatson2002-12-031-6/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | editor, in order to support specifying UFS2 as a newfs option. (1) Support three different newfs types: NEWFS_UFS, NEWFS_MSDOS, and NEWFS_CUSTOM. Don't mix up the arguments to them: you can't use soft updates on an msdos file system. (2) Distinguish adding new arguments to the newfs command line from replacing it. Permit the addition of new arguments by the user for NEWFS_UFS. If we entirely replace the command line provided by sysinstall, call it NEWFS_CUSTOM. 'N' will now add additional arguments; 'Z' will opt to replace the newfs command line entirely, but will prompt the user with their current command line as a starting point. (3) Construct the newfs command line dynamically based on the options provided by the user at label-time. Right now, this means selecting UFS1 vs. UFS2, and the soft updates flag. Drop in some variables to support ACLs and MAC Multilabel in the future also, but don't expose them now. This provides sysinstall with the ability to do more "in band" editing of the newfs command line, so we can provide more support for the user, but doesn't sacrifice the ability to entirely specify the newfs command line of the user is willing to give up on the cushiness factor. It also makes it easier for us to specify defaults in the future, and define conditional behavior based on user configuration selections. For now, we default to UFS1, and permit UFS2 to be used as the root only on non-i386 systems. While I was there, I dropped the default fragment and block sizes, since newfs has much more sensible defaults now. Reviewed by: jhb, marcel Approved by: re ia64 bits from: marcel
* Rename installX11package() to installPackage() and tweak it so that itjhb2002-12-031-1/+1
| | | | | | can be used to install any arbitrary package. Approved by: re
* ia64 specific.marcel2002-12-021-0/+2
| | | | | | | | | | | | | | o Mount the EFI file system as msdosfs and not ufs as it's a FAT file system. Introduce Mount_msdos() for this to go side-by-side with Mount(). o Also, since mounting is performed as a command (which means it's queued, sorted, lost, found and executed), we cannot create a directory on the file system by calling mkdir. We must make sure the mkdir happens after the mount. Introduce Mkdir_command() to allow mkdir operations to be queued, sorted, lost, found and executed as well. Approved by: re (jhb, rwatson)
* - Only declare the MBR menu for i386 that is not PC98.jhb2002-11-271-1/+9
| | | | | | | | - Only declare mouse menus if WITH_MICE. - Only declare syscons menus if WITH_SYSCONS. - Only declare fdisk editor functions if WITH_SLICES. Approved by: re
* - Add a configOSF1() function (#ifdef __alpha__) that creates /compat/osf1jhb2002-11-271-0/+6
| | | | | | | in addition to setting osf1_enable to YES. - Only define configLinux() #ifdef WITH_LINUX. Approved by: re
* Add some helper macros to make #ifdef's in sysinstall easier to readjhb2002-11-271-0/+14
| | | | | | | | | | | | | | and more maintainable. - WITH_SYSCONS: defined on all arch's that support syscons (currently i386, alpha, and ia64) - WITH_MICE: defined on all arch's that support moused(8) (currently i386, alpha, and ia64) - WITH_SLICES: defined on all arch's that use disk slices (currently i386 and ia64) - WITH_LINUX: defined on all arch's that support Linux binary compat (currently i386 and alpha) Approved by: re
* Expand X_AS_PKG so that we don't declare distribution bitmasks or menusjhb2002-11-271-1/+6
| | | | | | | for the X distributions if X_AS_PKG is defined. Tested on: i386 Approved by: re
* - Added the MenuIPLType menu for selecting pc98 boot IPL.nyan2002-11-031-0/+4
| | | | | | | - Disabled 'Syscons, Font', 'Syscons, Screenmap' and 'Syscons, Ttys' menus on pc98. - Fixed the MenuMouseType and MenuMousePort menus for pc98. - Fixed some comments for pc98.
* Since NEWCARD is the default for i386, undef PCCARD_ARCH.matusita2002-10-201-1/+1
| | | | | | pccard.c is no longer needed for i386 also. OKed by: imp, nyan
* Add 'Sendmail' menu to set sendmail_enable variable.matusita2002-06-011-0/+1
| | | | Reviewed by: bmah (description only)
* Add a 'diskInteractive' variable that can be set to interactively partitionjhb2002-05-311-0/+1
| | | | and label a disk from a sysinstall script.
* Add the ability to use Bzip'ed packages.obrien2002-04-301-0/+6
| | | | | | | Also add the ability to use Bzip'ed distributions -- but this is exclusive of being able to use Gzip'ed distributions. Sponsored by: FreeBSD Mall, Inc.
* Add the concept of a volume to the device and package structures. Ifmurray2002-04-131-0/+2
| | | | | these values are different for a given package, then we must prompt the user to insert another disc before the package can be installed.
* GCC >= 3 and C99 handle zero-length arrays differently than oldermurray2002-04-071-0/+6
| | | | | versions of GCC. With this change, sysinstall compiles and works fine with GCC 3.1 or 2.95.
* Only build and link the pccard module on architectures that support it (andmurray2002-03-291-0/+3
| | | | that have room for pccardd on mfsroot.flp).
* o Add a configSecurity menu to generally configure security settings,rwatson2001-12-211-0/+1
| | | | | | | | | | and pull configSecurityProfile under that menu. Add a menu option to determine whether LOMAC is enabled at boot. Probably, eventually, many of the 'Security Profile' menu choices should be pulled out independently into the Security Menu, so as to make them individually selectable. Sponsored by: DARPA, NAI Labs
* cleanupdillon2001-12-101-2/+2
|
* Cleanup sysinstall's 'A'uto partitioning mode to provide more reasonabledillon2001-12-091-1/+5
| | | | | | | | | | | | | | defaults both in regards to the size of the partitions that are created and in regards to safety and functional separation. Still TODO: extend the previous partition to cover a deleted partition if the previous partiton was auto-created, and supply some sort of solution for /tmp. Reviewed by: Just about everyone Approved by: Nobody except maybe my pet mouse fred Obtained from: God, so complain to HIM MFC after: 1 week
* Remove kget() feature, which is removed from 5-current kernel.matusita2001-12-011-1/+0
| | | | | | | | | Since userconfig feature is implemented by tweaking variables (hint.*) with loader(8), we can put back an equivalent feature. Maybe the first step for this is to commit yokota-san's patch (add userconfig command for loader). Approved by: jkh
* Add the ability to load klds from a floppy as part of the installation.jkh2001-10-121-0/+2
| | | | | Submitted by: "Daniel O'Connor" <doconnor@gsoft.com.au> MFC after: 2 weeks
* DTRT in the restart casejkh2001-10-121-0/+1
|
* Add a couple of functions to create persistent variables that willmurray2001-09-241-0/+2
| | | | | | | | | | | survive a sysinstall Ctrl-C -> 'Restart'. This fixes another annoying bug where restarting sysinstall will try to reload kernel modules and do other external things that have already been done. For now, use these persistent variables to keep track of module, usbd, and pccardd initialization. Bug found by: rwatson MFC after: 1 week
* Silence warnings :murray2001-09-221-1/+1
| | | | | | Use static as necessary. Use __unused as necessary. sizeof(int) != sizeof(void *)
* Add a function to free all of sysinstall's internal variables from themurray2001-09-221-0/+1
| | | | | | | | | environment. This fixes an annoying bug where hitting Ctrl-C and telling sysinstall to 'restart' will do no such thing since many of the options are still set and so you won't be prompted for them again. MFC after: 1 week
* o Reduce the number of offered security profiles, as we now have a morerwatson2001-08-101-3/+1
| | | | | | | | | | | | | | | | | conservative default, and actually prompt specifically for inetd rather than handling it as a side effect of the security profile. Update the help file to reflect this change. o Rename "Fascist" to "Extreme" in the source code, to match the names presented to the user. o Remove portmap and inetd from profile management. Portmap is now disabled by default, but automatically turned on if a feature requires it (such as NFS, etc). This is an MFC candidate for 4.4-RELEASE. Reviewed by: freebsd-arch@FreeBSD.org Approved by: re@FreeBSD.org MFC after: 2 days
* In preparation for MFC of sysinstall changes to edit /etc/ttys inrwatson2001-08-071-1/+1
| | | | | | | post-install config, reduce the potential confusion from the existence of both configTTYs and configTtys by renaming configTTYs to configEtcTtys. While this is not a C naming conflict, it was probably a poor choice of names on my part.
* Add the ability to modify /etc/ttys before first reboot during therwatson2001-08-021-0/+1
| | | | | | | | | | | | | system installation process. This allows users installing via serial console to enable serial console login during the installation process using an un-customized install. The user is not prompted to modify /etc/ttys during a normal install, but is offered the opportunity during post-install configuration. - Introduce configTTYs(), which describes the benefits of editing /etc/ttys, and asks for confirmation before spawning the editor. - add configTTYs to the post-install configuration, as well as to the global configuration index.
* Compensate for default disabling of network services in inetd.conf(5)rwatson2001-08-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by providing the opportunity to edit inetd.conf during the system installation process. The following modifications were made: (1) Expand the Anonymous FTP description dialog to indicate that inetd and ftpd must be enabled before it can be used. (2) Introduce a new configInetd() pair of dialogs, the first describing inetd, giving a couple of examples of services that require it, and hinting at potential risk, then asking the user if they wish to enable it. The second indicates that inetd.conf must be configured to enabled specific services, and asks if the user would like to load inetd.conf into the editor to modify it. Add this configuration action to the index. There are some further improvements that might be considered: (1) Provide a more inetd.conf-specific configuration tool that speaks inetd.conf(5). However, this is made difficult by the "yet another configuration format" nature of inetd.conf, as well as its use of commenting to disable services, rather than an in-syntax way to disable a service without commenting it out. Submissions here would probably be welcome. (2) There's some overlap between settings in the somewhat obtuse Security Profile mechanism and other settings, including the inetd setting, and NFS server configuration. As features become individually tunable, they should probably be removed from the security profile mechanism. Otherwise, somewhat counter-intuitively, sysinstall (in practice) queries multiple times whether inetd, nfsd, etc, should be enabled/disabled. A possible future direction might be to drive profiles not by degree of paranoia, rather, the set of services desired. Or simply to remove the Security Profile mechanism and resort to feature-driven configuration. Reviewed by: imp, chris, jake, nate, -arch, -stable
* Add ability to configure console terminal type in /etc/ttysache2001-07-171-0/+5
| | | | Reviewed by: audit, jkh's silence
* Mark relevant functions __printflike()/__printf0like() and silence some ofkris2001-07-051-14/+14
| | | | | | the non-constant format string warnings. MFC after: 1 week
* Introduce DEVICE_INIT, DEVICE_GET, and DEVICE_SHUTDOWN macros. As thedd2001-07-021-0/+7
| | | | | | | | | names suggest, they perform methods on Device's. In addition, they check that the pointer passed to them is valid; if it isn't, they pretend that the action failed. This fixes some crashes due to NULL dereferences (e.g., PR 26509). Approved by: jkh (some time ago)
* Add terminal type configuration to the Options screen. It allows selectingolgeni2001-06-131-0/+1
| | | | | | | | a monochrome display after booting into sysinstall, if you have any trouble with the default color scheme. Approved by: jkh MFC after: 2 weeks
* Fix what was clearly a 3am brain-o; Boolean should be signed, notjkh2001-05-091-1/+1
| | | | | | unsigned. C is kinda loose about this sort of thing but it's no excuse. Spotted by: kenny
* Allow a script-using to disable the emergency holographic shell asjkh2001-03-121-0/+1
| | | | | | a security measure. Requested by: "David E. Cross" <crossd@enterprise.cs.rpi.edu>
* Support setting soft updates from the label editor.jkh2001-03-101-0/+1
|
* Ack! I finally got annoyed enough to actually kill this. There is nopeter2001-03-021-1/+0
| | | | | | need to manually force the network_interfaces variable in /etc/rc.conf, and it only ever gets in the way. rc.network and rc.network6 DTRT with the default of 'auto'. This should have died over a year ago.
* Adapt sysinstall to use the new msgNoYes() function which assumesjkh2000-12-141-0/+1
| | | | | | no as a default. Sysinstall should be both less dangerous and less annoying as a result of this change, though that's just my opinion (since they're the defaults which annoy ME the least :).
* release/sysinstall/lndir.c has not been used, but statically linkedhosokawa2000-11-061-3/+0
| | | | to sysinstall for long time. Remove it.
* Moved driver modules for some PCI NICs and PCCARD-only NICs to mfsroot.flp.hosokawa2000-10-311-0/+3
| | | | | | http://people.freebsd.org/~hosokawa/driver-floppy/ for details. Reviewed by: current@FreeBSD.org
* Teach sysinstall how to restart itself on Ctrl-C (as an addition to its oldeivind2000-10-291-0/+1
| | | | | | tricks of rebooting and continuing where it was.) Reviewed by: jkh, jhb
* Add another security configuration profile, call it "high" andjkh2000-10-141-0/+1
| | | | | | | rename the previous one to indicate that it's not just high, it's extreme (everything off, secure level raised). Submitted mostly by: Tony Finch <dot@dotat.at>
* Fix the http proxy fetch code.jkh2000-09-251-0/+1
| | | | | Submitted by: Philipp Mergenthaler <p@i609.hadiko.de> PR: 21449
* One whack at the idea of having "security profiles" which select thejkh2000-09-221-2/+5
| | | | | | | | appropriate(?) defaults for "low", "medium" and "high" security environments. Medium is basically what we currently have with a little seat-belt tightening where it made sense. Low is the same as medium but without the tightening. High is positively fascist with nothing turned on by default and an automatic call to 911 if it can find a modem.
* Terminate, with extreme prejudice, the USAResident hack whichjkh2000-07-241-2/+0
| | | | | | does bad things to /etc/make.conf in certain situations. Also soften the "don't install crypto from the USA!" messages since, except for RSA (which is still noted), that's not so true anymore.
* Add a terminal entry for xterm; a lot of people are using xtermsjkh2000-07-211-0/+1
| | | | in the serial-installation of FreeBSD.
* Allow the Fix-it functionality to detect that we are on a serial console,obrien2000-07-181-0/+3
| | | | | | | | and DTRT rather than start the fixit shell on a non-existant vty. PR: 19837 Submitted by: Doug Ambrisko <ambrisko@whistle.com> Approved by: JKH
OpenPOWER on IntegriCloud