History log of /freebsd-9.3-release/usr.sbin/sade/dispatch.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 161099 08-Aug-2006 delphij

Make sade(8) WARNS=3 clean.


# 161060 07-Aug-2006 netchild

Say welcome to 'sade', the SysAdmins Disk Editor. It's the fdisk and 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


# 161059 07-Aug-2006 netchild

Forced commit to note repo copy from sysinstall.

Repo copy by: markm


# 154925 27-Jan-2006 jkim

Add `mediaOpen' function. This function mounts selected media device.

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.


# 134532 30-Aug-2004 kensmith

Remove support for configuring the X server from sysinstall. General
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


# 119152 19-Aug-2003 obrien

Remove the vestiges of the old pre-"X_AS_PKG" way we used to handled the
installing XFree86 (version 3.3.6 and before).

Reviewed by: jhb


# 109434 17-Jan-2003 jhb

- Rename installFixupBin to installFixupBase to finish up the 'bin' to
'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


# 107339 27-Nov-2002 jhb

Only include the diskPartitionEditor script command if WITH_SLICES is
defined.

Approved by: re


# 107330 27-Nov-2002 jhb

Expand X_AS_PKG so that we don't declare distribution bitmasks or menus
for the X distributions if X_AS_PKG is defined.

Tested on: i386
Approved by: re


# 97778 03-Jun-2002 jhb

Fix handling of the 'noError' variable. According to the code comments,
one can set the 'noError' variable to ignore any errors that occur for the
next command. However, the code was only unsetting 'noError' when an error
actually occurred, so if you set 'noError', the next command completed ok,
and the command after that failed, the second command's failure would be
ignored. This fixes this by performing the 'noError' check earlier and
then unsetting 'noError' after every command that is run.

Sponsored by: The Weather Channel


# 97777 03-Jun-2002 jhb

Add a 'mediaClose' script command to close the open media. An example use
would be to unmount the CD you installed from and prompt the user to
eject it before rebooting the machine.

Sponsored by: The Weather Channel


# 93691 02-Apr-2002 obrien

Switch to using XFree86 version 4. We do this thru installing the package,
so know we have proper PKG registration and dependency information.

This is a WIP for 5.0 DP #1, so it is still rough around the edges and
does not GC the old XFree86 3.3.6 handling stuff that should be GC'ed.
Sponsored by: FreeBSD Mall, Inc.


# 81023 02-Aug-2001 rwatson

Compensate for default disabling of network services in inetd.conf(5)
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


# 79304 05-Jul-2001 kris

Mark relevant functions __printflike()/__printf0like() and silence some of
the non-constant format string warnings.

MFC after: 1 week


# 79065 01-Jul-2001 dd

Introduce DEVICE_INIT, DEVICE_GET, and DEVICE_SHUTDOWN macros. As the
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)


# 66263 22-Sep-2000 jkh

One whack at the idea of having "security profiles" which select the
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.


# 57613 29-Feb-2000 jkh

Revise this for the brave new world of "crypto"

Submitted by: markm
Approved by: me!


# 57315 18-Feb-2000 jkh

Don't call it a Novice install, call it Standard.
Also say thousands of packages, not hundreds.


# 55392 04-Jan-2000 jkh

Add support for FTP installation via HTTP proxies.

Submitted by: Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de>
PR: 11316


# 54587 14-Dec-1999 jkh

Completely rip-out and redesign sysinstall's refresh model as well
as redoing all the menus to have proper, or at least non-hallucinogenic,
keyboard accelerators.

This requires my recent update to libdialog to work properly and will
probably also exhibit some other "interesting" behavior while the last
few missing screen clears are found (which is why I'm not going to MFC
immediately). At least now, however, sysinstall does not gratuitously
redraw random screens at the drop of a hat and drive serial console
installers out of their minds.


# 53015 08-Nov-1999 jkh

Allow distributions to be excluded more easily in scripts.

Submitted by: Brian Dean <brdean@unx.sas.com>


# 50479 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 46117 27-Apr-1999 jkh

o Make package matching for specific package loading use the Latest/
feature of packages now so that no version info is embedded.

o Add a default X desktop menu offering afterstep, enlightenment, KDE, GNOME
and Windowmaker desktops instead of the boring twm(1) based one if the
user so chooses. This will require a little testing.


# 45971 23-Apr-1999 jkh

Remove the registration stuff; we're redoing this and the emailed
registrations have a high failure rate for various reasons.


# 43685 05-Feb-1999 jkh

Totally change the way variables are accounted for in sysinstall.
Now we know which variables are internal and which need to be
backed to /etc/rc.conf.site. rc.conf is not touched now.

Also kget kernel change information back properly and set up a loader.rc
file to use it.


# 41162 15-Nov-1998 jkh

o Break fixups into binary fixups and XFree86 based fixups.
o Move fixups into extraction routine so all consumers don't have to duplicate
the right behavior.
o Make some things more orthogonal (just for asthetics sake)
o Add option to go back and do it again if XF86Setup fails (possibly with
a different setup - this one has always annoyed me).


# 37735 18-Jul-1998 jkh

MF22: Paul Traina's changes.


# 29539 17-Sep-1997 pst

Put all variables in VAR_ #define's to force a single location for all
of these magic knobs. This is purely cosmetic and a documentation issue
so we don't have to glop through the source code looking for gems.


# 29517 16-Sep-1997 jkh

Much better dispatch code and scripting support.
Submitted by: pst


# 29222 08-Sep-1997 jkh

Make upgrade potentially a little less interactive.
Add and document new loadConfig function (sort of like a script #include).
Make TCP/IP setup far less chatty when it doesn't need to be.


# 28075 11-Aug-1997 jkh

Make some changes to the way the label editor reads script variables
so you don't need to re-enter it for each and every filesystem. Heads up!
This change is incompatible with the previous scripting format,
so those folks (all 2 of you) using config files should take a look
at the changes to the sample install.cfg file for the diskLabelEditor's
new calling syntax.

Finally write a man page for this thing, documenting all of the above
and more. I can't drive a stake through this thing's heart without
properly documenting it first, so please consider this step #1 in that
process (to be honest, sysinstall will also live on for some time in
the 2.2. branch since it's unlikely that the new install tools will ever
make it over there - they're strictly 3.0 material).


# 27433 16-Jul-1997 jkh

Eliminate Samba configuration. Sorry, but this was another one of
those ideas that, like the Apache server setup, was well-intentioned
but doomed to fail in the face of change. That and the fact that it
shouldn't be part of the installation tool, it should be part of the
post-installation setup tool (which we need to write). Combining the
two utilities into one utility was my first conceptual mistake.

Apologies also to Coranth Gryphon, who worked hard on the Apache
and Samba server setup code. These features were quite useful
for awhile, if that's any consolation, I just simply had the wrong
ideas about where to put them. :-(


# 26795 22-Jun-1997 jkh

Adjust my installation script to more closely match reality.

Add a system command to script mechanism (so you can call things like
tzsetup from scripts).

Add noError variable for causing script errors to be ignored.


# 26764 21-Jun-1997 jkh

Change the way that X configuration method is selected.


# 26613 13-Jun-1997 jkh

YAMF22


# 26601 13-Jun-1997 jkh

YAMF22


# 26572 12-Jun-1997 jkh

YAMF22


# 26456 05-Jun-1997 jkh

Resurrect / implement some of the more esoteric scripting features,
such as partitioning a disk or overriding an interactive prompt.


# 25989 21-May-1997 jkh

Actually, rethink last commit and simply remove the apache configuration
entirely, as promised earlier (it's outdated now and doesn't really belong
in sysinstall).


# 23629 10-Mar-1997 jkh

Sync with 2.2.


# 23588 09-Mar-1997 jkh

Add a registration screen so we can finally start counting our little user
puppies.


# 22988 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21764 16-Jan-1997 jkh

Clean up a long-standing bug in the scripting code. You could set variables,
but you couldn't call functions! Now you can do both.
Guard against whitespace pollution in variable names.


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 20484 14-Dec-1996 jkh

Now that I've got my source tree sorted out, bring all the things
I've been committing into 2.2 directly all this time.


# 19385 04-Nov-1996 jkh

Use macros for package names so it's easier to update them in one
place (sysinstall.h) when packages change rev.

Change the way that the routing daemon is configured entirely, to
placate Joerg. Also auto-load gated if it's specified, while we're at it.


# 18619 01-Oct-1996 jkh

Installation cleanup, round II.


# 16895 02-Jul-1996 jkh

Document shortcuts.
Fix a bug which prevented variables from working properly


# 16766 26-Jun-1996 jkh

Allow argv[0] to be a command also.


# 16208 08-Jun-1996 jkh

Implement selective text attributes for the syscons vty / vt100 emulator
selection since an attribute which looks good on a color console doesn't
necessarily look good in an xterm.


# 15788 16-May-1996 jkh

Fix some long-standing malloc bugs in the package handling code (freeing garbage
in one place, leaking memory in another).

Add a facility to invoke subsystems directly by naming them on
sysinstall's command-line when running post-install. A replacement
for pkg_manage might, for example, be `/stand/sysinstall configPackages'

Fix bogon where upgrade shell was entered with tty modes spammed.

Fix bug with release name checking in ftp_strat. Turned a bunch of
bogus exit()s into proper calls to systemShutdown().