summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade
Commit message (Collapse)AuthorAgeFilesLines
...
* - Rename installFixupBin to installFixupBase to finish up the 'bin' tojhb2003-01-174-41/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '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 'vlan' as a network device.jhb2003-01-171-0/+1
| | | | Tested by: dcs
* Add a function driverFloppyCheck() that asks the user if they would like tojhb2003-01-152-0/+7
| | | | | | | | | 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)
* If you don't create a /usr filesystem, / will need 200MB.kuriyama2003-01-131-1/+1
|
* Teach sysinstall about rpcbind, rpc.lockd, and rpc.statd. As an addedscottl2003-01-073-6/+38
| | | | | bonus, rpcbind will be enabled automatically if rpc.lockd, rpc.statd, amd, NFS Server, or NIS is enabled.
* save_realloc() should use reallocf() to close memory leaks.obrien2003-01-061-2/+2
| | | | item_add() should use safe_realloc() as it does no error checking itself.
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* Since our default boot block now supports UFS1 and UFS2 even onrwatson2002-12-281-7/+2
| | | | | | | | i386, remove the seatbelt preventing users from setting the UFS2 flag on the root file system on i386. This seatbelt did not exist on other platforms. MFC candidate.
* Add a new ftp mirror in Ireland which offers a service over IPv6.dwmalone2002-12-231-0/+4
| | | | | MFC after: 1 week Reviewed by: ume
* Correct path to /usr/sbin/sysinstall for HEAD since that's where it lives now.jkh2002-12-201-3/+3
|
* Update ROOT_MIN_SIZE for i386 to 118MB (and other ROOT_*_SIZE).kuriyama2002-12-152-5/+5
|
* When things get bigger than 99GB our fields run over.phk2002-12-111-5/+20
| | | | | | Use GB from 100GB and upwards. Approved by: re
* Unhook LOMAC sysinstall twiddle for the time being: mac_lomac requiresrwatson2002-12-091-0/+2
| | | | | | | the MAC Framework to be compiled into the kernel, and that's not well-expressed in sysinstall. Approved by: re (bmah)
* - Use some macros to define common text between the dialog boxes to set thejhb2002-12-051-38/+25
| | | | | | | | | | | | type of new slices and to change the type of existing slices. This also has the advantage of moving a few #ifdef PC98's up to where the macros are defined instead of in the middle of the code. - Change the behavior of the 'T' option in the slice editor so that the default value in the dialog box is the current type of the existing slice rather than defaulting to changing the slice to a FreeBSD slice as this is more intuitive. Approved by: re
* Fixed a partition type for pc98 when create or change slices in the fdisknyan2002-12-041-0/+8
| | | | | | editor. Approved by: re (jhb)
* Reformulate how sysinstall handles file system options in the labelrwatson2002-12-034-69/+286
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Oops, forgot this cosmetic tweak to the perl menu item in my previousjhb2002-12-031-1/+1
| | | | | | commit. Approved by: re (this is what they actually reviewed)
* - Convert the installation of the X package to using installPackage()jhb2002-12-031-0/+2
| | | | | | | | | | | rather than installX11package(). - Add a perl psuedo-dist that installs the perl package. The perl distribution is selected by default when a User distribution set is selected. It is not selected when a Minimal distribution set is selected. The perl distribution may be toggled manually in the custom menu just as other distributions. Approved by: re
* Rename installX11package() to installPackage() and tweak it so that itjhb2002-12-032-6/+4
| | | | | | can be used to install any arbitrary package. Approved by: re
* Fix a bug in the fdisk editor that partially masked the chunk deletionjhb2002-12-031-2/+2
| | | | | | | | bug fixed yesterday. New slices created in the fdisk editor and slices whose sub-type is changed are of type 'mbr' if their sub-type is not a magic type, not type 'unknown'. Approved by: re
* ia64 specific.marcel2002-12-023-3/+53
| | | | | | | | | | | | | | 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)
* ia64: make link /boot->efi/boot relative.marcel2002-11-301-1/+6
| | | | Approved by: re (murray)
* - 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
* Only include the fdisk editor and associated code if WITH_SLICES isjhb2002-11-271-8/+10
| | | | | | | defined. Tested on: i386, alpha, sparc64 Approved by: re
* Only define the MBR or IPL menu on i386 (PC98 uses IPL, other i386 usejhb2002-11-271-0/+2
| | | | | | MBR). Approved by: re
* - Only define syscons menus and syscons menu items in other menus ifjhb2002-11-271-6/+24
| | | | | | | | | | | | | | | WITH_SYSCONS is defined. - Only define mouse menus and mouse menu items if WITH_MICE is defined. - Use WITH_SLICES instead of explicit lists of architectures to control the layout of menus dependent on if slices are used on this arch or not. - Only include the linux startup option if WITH_LINUX is defined. - Only include the SVR4 startup option on i386. It doesn't work on sparc64, and it is debatable that it even works on i386. - Change the OSF1 startup option to execute configOSF1() instead of just setting the variable so that /compat/osf1 gets created. Tested on: i386, alpha, sparc64 Approved by: re
* If the user choose to Undo everything in the label editor, only run thejhb2002-11-271-0/+2
| | | | | | | | fdisk editor if WITH_SLICES. Before this on arch's that didn't support slices such as alpha and sparc64 you would drop into the fdisk editor after doing an Undo in the label editor. Approved by: re
* - Use WITH_SLICES to conditionalize the fdisk editor during install insteadjhb2002-11-271-6/+14
| | | | | | | | | | | | | | | | of an explicit list of architecture defines. - Tweak the message prior to the label editor in the !WITH_SLICES case to make it slightly less awkward since this is the first dialog we see after starting an install. - Only offer to customize syscons settings if WITH_SYSCONS. - Offer to enable Linux compat if WITH_LINUX. Before we only did this for i386. - On the alpha, offer to enable OSF/1 compat after asking about Linux compat. - Only offer to configure moused(8) if WITH_MICE is defined. Tested on: i386, alpha, sparc64 Approved by: re
* Only include the diskPartitionEditor script command if WITH_SLICES isjhb2002-11-271-0/+2
| | | | | | defined. Approved by: re
* Only try to setup moused(8) before setting up the X server if WITH_MICE isjhb2002-11-271-0/+4
| | | | | | defined. Approved by: re
* - Add a configOSF1() function (#ifdef __alpha__) that creates /compat/osf1jhb2002-11-272-0/+19
| | | | | | | 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
* Only display the APM option in the Startup menu on i386.jhb2002-11-271-0/+2
| | | | Approved by: re
* Use #elif defined(__alpha__) instead of #elif __alpha__.jhb2002-11-271-1/+1
| | | | Approved by: re
* - Assume __FreeBSD__ is greater than 3.jhb2002-11-271-8/+1
| | | | - Only include compat4x distribution if this is either i386 or alpha.
* Expand X_AS_PKG so that we don't declare distribution bitmasks or menusjhb2002-11-273-5/+24
| | | | | | | for the X distributions if X_AS_PKG is defined. Tested on: i386 Approved by: re
* Don't use fake 'c' or 'a' BSD partitions for CD-ROM devices. This fixesjhb2002-11-271-5/+5
| | | | | | | sysinstall to create /cdrom entries in /etc/fstab that just use the raw CD-ROM device /dev/cd0, etc. Approved by: re
* configXEnvironment doesn't work in sysinstall now.keramida2002-11-261-1/+6
| | | | | | | Change the manpage to reflect that it's now called configXSetup. Also document configXDesktop. Submitted by: pirat <pirat@access.inet.co.th>
* Add GNOME 2 to the sysinstall desktop configuration menu, removebmah2002-11-262-23/+10
| | | | | | | | | | the two GNOME 1-based alternatives. While here, note that a majority of the items in this menu are not sentences, and remove trailing dots to make the remainder consistent. Reviewed by: marcus Approved by: re (bmah)
* Create a link /boot -> /<efi>/boot, where <efi> is the mountpointmarcel2002-11-181-0/+15
| | | | | | | | of the EFI file system. This makes the EFI partition non-optional. I don't think that the links are actually correct, given that all the mount points are under /mnt when sysinstall is run as init. (ie a non-upgrade). Thus: I think I need to go in once more, but at least this doesn't get lost...
* Enable selecting the type of partition menu on pc98.nyan2002-11-161-17/+17
|
* Fix to build for pc98.nyan2002-11-151-1/+1
|
* Add conditional code specific to ia64 to allow newfs(8)-ing FATmarcel2002-11-142-3/+59
| | | | | | | | | | | partitions marked as being of type efi. This change adds code to 1. actually run the newfs command at mount time (install.c), 2. display the newfs state on screen (label.c) 3. allow toggling of the newfs state (label.c) Even though newfs(8)-ing FAT partitions can be of use on i386 machines in general, it has been opted to minimize impact for now.
* Also test for type efi everywhere we currently test for type fat.marcel2002-11-135-6/+11
| | | | | | | With this change there's no a priori difference between EFI and FAT partitions. With this change and the corresponding change to libdisk, we can create EFI partitions, just like regular FAT partitions.
* Use a clean flags variable when creating chunks from scripts instead ofjhb2002-11-121-3/+2
| | | | | | | leaking flags from earlier chunks into later ones. PR: bin/40655 Submitted by: Thomas Zenker <thz@Lennartz-electronic.de>
* Remove a line that set the status to success. We already do that at thejhb2002-11-121-2/+1
| | | | | beginning, so the best this could achieve would be to mask an earlier failure. Break instead of continue for another failure case.
* Try to cleanup the non-interactive disk labeling code a bit. Reworkjhb2002-11-121-49/+39
| | | | | | | | | the loop that runs through the environment variables to be a bit more intuitive. Also, change some 'continue's in failure cases to 'break's instead. If we are going to fail, we should just do it. PR: bin/40654 Submitted by: Thomas Zenker <thz@Lennartz-electronic.de> (partially)
* Do a bit of cleanup. new_part() basically ignored the passed in sizejhb2002-11-121-19/+11
| | | | | | | argument as of revision 1.52 (July 12, 1996, about a month after I graduated from high school) when 'newfs -u' support was axed, so remove it. This also allows us to remove a hack in the create partition case where we created the partition twice since we didn't have the size the first time.
* Doh, fix a bug in previous commit. The default is to newfs for newjhb2002-11-121-1/+1
| | | | partitions, not to !newfs.
* When setting the mountpoint name, remember any previous setting of thejhb2002-11-121-2/+7
| | | | | | | newfs flag for this partition. PR: bin/31837 Reported by: Oliver Breuninger <ob@www.partner.de>
OpenPOWER on IntegriCloud