45
Element Description Required?
<script> Where the post-install-script is.
Attributes:
stage: filesystem-populated, installation-start, or installation-
complete
When filesystem-populated is used, the script is invoked just
before root file system is unmounted (for example, after
installation/upgrade, initrds already built, etc.). The script will
receive an argument that is the mount point of the root file
system.
When installation-complete is used, the script will be run
once the installer has finished all operations (and hence the
root file system will be unmounted). The script will receive
an argument that will have a value of zero if the installation
completed successfully, and will be non-zero if the installation
failed for any reason.
type: url, nfs, or local
If url or nfs, put the URL or NFS path in the PCDATA; if local,
leave the PCDATA empty. For example,
<script stage="filesystem-populated"
type="url">
http://prehost.example.com/post-install-script
</script>
<script stage="installation-start"
type="local">
file:///scripts/run.sh
</script>
<script stage="installation-complete"
type="nfs">
server:/scripts/installation-pass-fail-script
</script>
Note that if a local file is used, ensure that the path is absolute.
This will generally mean that the file:// prefix will be
followed by a further forward slash, and the complete path to
the script.
N