Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 0f3d74e12f904a3d431a7b6139ebab6c > files > 46

system-config-kickstart-2.9.0-1.fc18.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>Post-Installation Script</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
"><LINK
REL="HOME"
TITLE="Kickstart Configurator"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Pre-Installation Script"
HREF="system-config-kickstart-prescript.html"><LINK
REL="NEXT"
TITLE="Use an Interpreter"
HREF="system-config-kickstart-interpreter.html"></HEAD><link rel="stylesheet" type="text/css" href="rhdocs-man.css"
><BODY
CLASS="CHAPTER"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Kickstart Configurator</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="system-config-kickstart-prescript.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="system-config-kickstart-interpreter.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="REDHAT-CONFIG-KICKSTART-POSTINSTALL"
></A
>Chapter 12. Post-Installation Script</H1
><DIV
CLASS="FIGURE"
><A
NAME="REDHAT-CONFIG-KICKSTART-POSTINSTALL-FIG"
></A
><DIV
CLASS="MEDIAOBJECT"
><P
><IMG
SRC="./figs/ksconfig-postscript.png"></P
></DIV
><P
><B
>Figure 12-1. Post-Installation Script</B
></P
></DIV
><P
>	You can also add commands to execute on the system after the
	installation is completed. If you have properly configured the network
	in the kickstart file, the network is enabled, and the script can
      include commands to access resources on the network. If you would like to
	include a post-installation script, type it in the text area. 
      </P
><DIV
CLASS="CAUTION"
><P
></P
><TABLE
CLASS="CAUTION"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/caution.png"
HSPACE="5"
ALT="Caution"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>Caution</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>	  Do not include the <TT
CLASS="COMMAND"
>%post</TT
> command. It will be added
	  for you.
	</P
></TD
></TR
></TABLE
></DIV
><P
>	For example, to change the message of the day for the newly
	installed system, add the following command to the
	<TT
CLASS="COMMAND"
>%post</TT
> section:
      </P
><TABLE
CLASS="SCREEN"
BGCOLOR="#DCDCDC"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="COMMAND"
>echo "Hackers will be punished!" &#62; /etc/motd</TT
></PRE
></TD
></TR
></TABLE
><DIV
CLASS="TIP"
><P
></P
></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="REDHAT-CONFIG-KICKSTART-NOCHROOT"
></A
>Chroot Environment</H1
><P
>	  If you want your post-installation script to run outside of the chroot
	  environment, click the checkbox next to this option on the top of
	  the <B
CLASS="GUILABEL"
>Post-Installation</B
> window. This is equivalent to
	  the using the <TT
CLASS="COMMAND"
>--nochroot</TT
> option in the
	  <TT
CLASS="COMMAND"
>%post</TT
> section.
	</P
><DIV
CLASS="TIP"
><P
></P
><TABLE
CLASS="TIP"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/tip.png"
HSPACE="5"
ALT="Tip"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>Tip</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>	    If you want to make any changes to the newly installed file system in
	    the post-installation section outside of the chroot environment, you
	    must append the directory name with
	    <TT
CLASS="FILENAME"
>/mnt/sysimage</TT
>.
	  </P
></TD
></TR
></TABLE
></DIV
><P
>	  For example, if you check the <B
CLASS="GUILABEL"
>Run outside of the chroot
	    environment</B
> button, the previous example needs to be changed
	  to the following:
	</P
><TABLE
CLASS="SCREEN"
BGCOLOR="#DCDCDC"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="COMMAND"
>echo "Hackers will be punished!" &#62; /mnt/sysimage/etc/motd</TT
></PRE
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="system-config-kickstart-prescript.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="system-config-kickstart-interpreter.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Pre-Installation Script</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Use an Interpreter</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>