gpm (woody)
Chad Walstrom
chad at ima.umn.edu
Mon Nov 26 18:46:15 CET 2001
On Mon, Nov 26, 2001 at 05:59:55PM +0100, Ingo Herz wrote:
> Hi,
>
> I'm trying to get gpm installed with fai. postinstall gives an endless
> loop showing the common configuration. As I want to copy gpm.conf in
> place by script after installation there is no need to configure gpm.
>
> Any hints?
Yep. ;-) In a ../hooks/instsoft.CLASS file, where CLASS is the class in
which gpm is installed, you need to do a "mkdivert /usr/sbin/gpmconfig"
to push the gpm configuration out of the way. Remember to remove this
diversion in a ../hooks/final.CLASS file.
Here's a list of packages that you'll want to divert applications for.
PACKAGE APPLICATION
--------------- ---------------------------------
gpm /usr/sbin/gpmconfig
apache* /usr/sbin/apacheconfig
ispell** /usr/sbin/update-ispell-dictionary
* Included in this list should be all of the libapache-mod-* packages as
well.
** Included in this list should be all of the iamerican, idutch, etc.
dictionary packages as well.
Example:
#! /bin/sh
#
# ../hooks/instsoft.WORKSTATION
#
# 1. Divert configuration apps (stdin dependent)
# - update-ispell-dictionary
# - gpmconfig
mkdivert /usr/sbin/gpmconfig
mkdivert /usr/sbin/update-ispell-dictionary
# EOF
#! /bin/sh
#
# ../hooks/final.WORKSTATION
#
# 1. Divert configuration apps (stdin dependent)
# - update-ispell-dictionary
# - gpmconfig
rmdivert /usr/sbin/gpmconfig
rmdivert /usr/sbin/update-ispell-dictionary
# EOF
If you want to copy over files after the 'install' action, add a script
to fcopy over your desired /etc/gpm.conf.
#! /bin/sh
#
# ../scripts/WORKSTATION
#
# 1. Copy over gpm.conf from ../files/etc/gpm.conf/CLASS
# ...
# Copy over the gpm.conf file or create a null file
fcopy /etc/gpm.conf || touch ${target}/etc/gpm.conf
# EOF
Hope this helped.
--
Chad C. Walstrom <chad at ima.umn.edu> http://www.ima.umn.edu
Assistant Systems Manager, IMA Phone: 612-624-4353
Fax: 612-626-7370
More information about the linux-fai
mailing list