aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sade/sade.h
Commit message (Collapse)AuthorAgeFilesLines
* Replace sade the extracted piece of sysinstall with sade the extractedNathan Whitehorn2012-12-301-465/+0
| | | | | | | | | | | piece of bsdinstall (although this time with a symlink instead of duplicated source code). Discussed on: freebsd-geom MFC after: 3 months Notes: svn path=/head/; revision=244859
* Port to new libdialog.Max Khon2011-11-241-16/+26
| | | | Notes: svn path=/head/; revision=227944
* Disk selection dialog is now a normal menu, not a checkboxed menu:Max Khon2011-11-241-8/+5
| | | | | | | | checkboxed menu is confusing and also can not be implemented in new libdialog. Notes: svn path=/head/; revision=227939
* Remove unused code.Max Khon2011-11-241-7/+0
| | | | Notes: svn path=/head/; revision=227928
* Remove unused functions.Max Khon2011-11-231-8/+0
| | | | Notes: svn path=/head/; revision=227903
* - Remove unused old libdialog includesMax Khon2011-11-231-14/+0
| | | | | | | - Remove unused functions Notes: svn path=/head/; revision=227902
* Better to just statically set the name vs. determine at run time.David E. O'Brien2008-05-111-0/+1
| | | | Notes: svn path=/head/; revision=178946
* Remove the keymap stuff too, it is not needed in sade.Alexander Leidinger2006-08-091-5/+0
| | | | Notes: svn path=/head/; revision=161120
* Get rid of the rtermcap stuff (embedding termcaps into the program). ThisAlexander Leidinger2006-08-091-17/+0
| | | | | | | | | | is needed in sysinstall on boot, but not in sade on a fully working system. After this change I noticed no change in behavior on a vty when TERM is not set. Notes: svn path=/head/; revision=161115
* Partitions are only meaningful for i386 and amd64 architectures, so disableXin LI2006-08-081-1/+0
| | | | | | | these code on other architectures. Notes: svn path=/head/; revision=161100
* Make sade(8) WARNS=3 clean.Xin LI2006-08-081-32/+20
| | | | Notes: svn path=/head/; revision=161099
* Say welcome to 'sade', the SysAdmins Disk Editor. It's the fdisk and ↵Alexander Leidinger2006-08-071-402/+11
| | | | | | | | | | | | | | | disklabel part of sysinstall. So sysinstall may retire now, we have the important non-install part of it covered. ATM it doesn't understand GEOM stuff (like mirror, stripe, raid, ...), but patches to change this and to clean it up internally are more than welcome. Submitted by: mami@nyitolap.hu Notes: svn path=/head/; revision=161060
* Alpha doesn't support linux ABI compat now.John Baldwin2006-05-101-1/+1
| | | | Notes: svn path=/head/; revision=158408
* Revamp base system packaging of kernels to enable up/smp selectionSam Leffler2006-03-081-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=156436
* Fix numerous warnings. Aside from menu items in system.c and menu.cJohn Baldwin2006-02-281-1/+4
| | | | | | | | | | | this now compiles on i386 with WARNS?= 3. Most of the fixes included adding missing 'static' keywords to internal functions, using fully-defined terminators in statically defined arrays of structs, and various signed vs unsigned mismatches. Also G/C'd unused configSecurity() function. Notes: svn path=/head/; revision=156123
* - Autogenerate a menu containing a list of countries and keymaps supportedJohn Baldwin2006-02-281-0/+14
| | | | | | | | | | | | | | | | | | by syscons. - If we are running as init, popup the country menu before the main menu. If a non-default country is chosen, then a second menu is brought up to let the user choose a keymap. By default the default keymap for the country that was selected is highlighted. If the user chooses the default country, then the default keymap is just assumed and the user is not presented with the keymap menu. Currently the default country is set to "United States" except for PC98 which assumes "Japan". PR: bin/93853 Submitted by: Seth Kingsley sethk at magnesium dot net MFC after: 3 days Notes: svn path=/head/; revision=156118
* Add `mediaOpen' function. This function mounts selected media device.Jung-uk Kim2006-01-271-0/+1
| | | | | | | | | | | | | | | | | | For example, you can dynamically generate and load configuration file depending on the hardware configuration with the following template: mediaSetCDROM mediaOpen command='/dist/rescue/sh /dist/scripts/install.sh' system mediaClose configFile=/tmp/generated.cfg loadConfig Now we have full access to files on the media before installation begins. Notes: svn path=/head/; revision=154925
* Remove usbd(8) and all references to it. It is no longer necessaryIan Dowse2005-12-151-3/+0
| | | | | | | | | since devd(8) now provides the same functionality. Submitted by: Anish Mistry Notes: svn path=/head/; revision=153430
* Switch from OLDCARD to NEWCARD on pc98.Yoshihiro Takahashi2005-09-271-4/+0
| | | | Notes: svn path=/head/; revision=150615
* - Fix a bug in sysinstall related to mounting CD-ROMs. If mount(2) failsJohn Baldwin2005-03-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=143065
* Minor comment fix.Ken Smith2005-01-071-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=139832
* Remove support for configuring the X server from sysinstall. GeneralKen Smith2004-08-301-2/+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 Notes: svn path=/head/; revision=134532
* Initial pass at shifting sysinstall(8) to install X.org instead of XFree86.Ken Smith2004-08-101-13/+9
| | | | | | | | | | There are still a few nits to work out (graphical config non-functional). Patches by: anholt@, adapted slightly Reviewed by: 'make release' Notes: svn path=/head/; revision=133421
* o Save pointers to the chunks for root, home, swap, usr, var and tmp inMarcel Moolenaar2004-08-071-1/+12
| | | | | | | | | | | | | | | | | | 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... Notes: svn path=/head/; revision=133241
* Join the 21st century: Cryptography is no longer an optional componentColin Percival2004-08-061-2/+0
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=133196
* Move the inclusion of libdisk.h from sysinstall.h to the source filesMarcel Moolenaar2004-08-021-1/+0
| | | | | | | | | | 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. Notes: svn path=/head/; revision=133040
* Fixed assorted misuses of NULL in integer context.Bruce Evans2004-03-111-1/+1
| | | | Notes: svn path=/head/; revision=126844
* s/package_exists/package_installed/g as that's much more descriptive ofDavid E. O'Brien2004-01-021-1/+1
| | | | | | | what the function does. Notes: svn path=/head/; revision=124068
* FBSD nit.David E. O'Brien2004-01-021-2/+1
| | | | Notes: svn path=/head/; revision=124067
* Add a Securelevel sub-menu to the Security configuration menu,Robert Watson2003-11-291-0/+7
| | | | | | | | | | | | | | | | permitting the administrator to select a securelevel top operate at. Include a helpfile summarizing some of the information from init(8). This allows for explicit configuration of securelevels, which was previously implicit in Security Profile selection. Currently, there are no checkboxes for the active securelevel, because sysinstall's facilities for deriving "current settings" from rc.conf may use only one variable, not two, and I opted for the simplest approach at this point. Approved by: re (scottl) Notes: svn path=/head/; revision=123053
* Remove security profiles from sysinstall. Currently, security profileRobert Watson2003-11-281-4/+0
| | | | | | | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=123032
* o Add PART_EFI so that we can use it instead of PART_FAT on ia64Marcel Moolenaar2003-11-021-0/+1
| | | | | | | | | | | | | to better deal with the fact that we need an EFI partition and that we need to have a mountpoint for it. o When creating a new partition, add EFI to the list of types the user can select from. This makes it easy to create an EFI. o Do not include wizard.c on ia64. o The user cannot create a partition on ia64 that's a multiple of the cylinder size. We don't have a notion of cyclinders. Notes: svn path=/head/; revision=121890
* o Do not define WITH_SYSCONS and WITH_MICE on ia64. We cannot haveMarcel Moolenaar2003-11-011-2/+2
| | | | | | | | | a generic kernel with syscons. o Do not define WITH_SLICES on ia64. We only label because we're going to create GPT disks. Notes: svn path=/head/; revision=121865
* Various NFS-related bug fixes (mostly related to using variable_get()Dag-Erling Smørgrav2003-10-191-0/+2
| | | | | | | | | instead of variable_cmp() to test boolean rc.conf variables). Submitted by: hmp Notes: svn path=/head/; revision=121245
* Add a new variable 'skipPCCARD'. This variable will cause sysinstallWarner Losh2003-08-201-0/+1
| | | | | | | | | | | | to ignore all PC Card devices. Submitted by: Anders Nordby PR: bin/37650 MFC After: 2 weeks Notes: svn path=/head/; revision=119167
* Remove the vestiges of the old pre-"X_AS_PKG" way we used to handled theDavid E. O'Brien2003-08-191-6/+0
| | | | | | | | | installing XFree86 (version 3.3.6 and before). Reviewed by: jhb Notes: svn path=/head/; revision=119152
* Give users the ability to select an alternative MTA during the installation.Tom Rhodes2003-07-121-1/+5
| | | | | | | | | | | This option adds Postfix and Exim to the list, however, qmail is not added due to license restrictions. Collaborated with: Simon L. Nielsen <simon@nitro.dk> Reviewed by: jhb, re@, -audit. Notes: svn path=/head/; revision=117475
* Teach sysinstall to recognize if acpi was turned off from the bootloader,Scott Long2003-05-311-0/+4
| | | | | | | | | and then ask the user if this should be made permanent. Approved by: re Notes: svn path=/head/; revision=115435
* Add __amd64__ ifdefs to enable the bootblock handling code, slices, etc.Peter Wemm2003-05-241-3/+3
| | | | | | | | Approved by: re (murray) Obtained from: obrien Notes: svn path=/head/; revision=115293
* Throw the switch--change to UFS2 as our default file system format forRobert Watson2003-04-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | FreeBSD 5.1-RELEASE and later: - newfs(8) will now create UFS2 file systems unless UFS1 is specifically requested (-O1). To do this, I just twiddled the Oflag default. - sysinstall(8) will now select UFS2 as the default layout for new file systems unless specifically requested (use '1' and '2' to change the file system layout in the disk labeler). To do this, I inverted the ufs2 flag into a ufs1 flag, since ufs2 is now the default and ufs1 is the edge case. There's a slight semantic change in the key behavior: '2' no longer toggles, it changes the selection to UFS2. This is very similar to a patch David O'Brien sent me at one point, and that I couldn't find. Approved by: re (telecon) Reviewed by: mckusick, phk, bmah Notes: svn path=/head/; revision=113751
* Remove a function prototype for `crc' and an associated comment whichRobert Drehmel2003-03-091-3/+0
| | | | | | | were useless for at least seven years and eight months. Notes: svn path=/head/; revision=112017
* Add a new variable `noInet6', which if set disables IPv6 configurationMaxim Sobolev2003-02-271-0/+1
| | | | | | | | | dialog for network interfaces. MFC after: 20 days Notes: svn path=/head/; revision=111644
* - Increase the maximum device name length.John W. De Boskey2003-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 Notes: svn path=/head/; revision=111592
* - Rename installFixupBin to installFixupBase to finish up the 'bin' toJohn Baldwin2003-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 Notes: svn path=/head/; revision=109434
* Add a function driverFloppyCheck() that asks the user if they would like toJohn Baldwin2003-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) Notes: svn path=/head/; revision=109333
* Teach sysinstall about rpcbind, rpc.lockd, and rpc.statd. As an addedScott Long2003-01-071-0/+2
| | | | | | | | bonus, rpcbind will be enabled automatically if rpc.lockd, rpc.statd, amd, NFS Server, or NIS is enabled. Notes: svn path=/head/; revision=108870
* Reformulate how sysinstall handles file system options in the labelRobert Watson2002-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 Notes: svn path=/head/; revision=107565
* Rename installX11package() to installPackage() and tweak it so that itJohn Baldwin2002-12-031-1/+1
| | | | | | | | | can be used to install any arbitrary package. Approved by: re Notes: svn path=/head/; revision=107560
* ia64 specific.Marcel Moolenaar2002-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) Notes: svn path=/head/; revision=107525
* - Only declare the MBR menu for i386 that is not PC98.John Baldwin2002-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 Notes: svn path=/head/; revision=107350