Activating And Deactivating System Services; Setting Up The Time Zone; Writing Postinstall Scripts - Novell SLRS 8 Admin Manual

Table of Contents

Advertisement

11 Creating Operating System Images

11.6.3 Activating and Deactivating System Services

These tasks are all done in the config.system file. To activate or deactivate
a service the according runlevel, links must be set or removed. This should
be done using the insserv command. To activate a service, include a call like
this:
sbin/insserv /etc/init.d/ service
To deactivate a service, include a call like this:
sbin/insserv -r /etc/init.d/ service

11.6.4 Setting up the Time Zone

The time zone setup is done within the config file.
timezone:Timezone
The parameter Timezone describes the path to the zone file relative to the
/usr/share/zoneinfo directory. For example: timezone:America/New_York

11.6.5 Writing Postinstall Scripts

A postinstall script is always bound to a package from the setup file and is
mostly used to remove stuff from this package that is not needed for the image.
Such a script always has the same name as the corresponding package and is
stored in the script directory of the image source tree. The script itself is called
within the image environment, which means it is not possible to damage the
host system with your script even if you are using absolute paths.
Such a script should look like the following template:
#!/bin/sh
echo -n "Image [ name ]..."
test -f /.profile && . /.profile
... script code
echo done
122

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux retail solution 8

Table of Contents