[yast-commit] r66725 - /trunk/autoinstallation/doc/xml/ScriptsSection.xml
Author: emap
Date: Sun Nov 6 15:15:59 2011
New Revision: 66725
URL: http://svn.opensuse.org/viewcvs/yast?rev=66725&view=rev
Log:
edited by emap
Modified:
trunk/autoinstallation/doc/xml/ScriptsSection.xml
Modified: trunk/autoinstallation/doc/xml/ScriptsSection.xml
URL: http://svn.opensuse.org/viewcvs/yast/trunk/autoinstallation/doc/xml/ScriptsSection.xml?rev=66725&r1=66724&r2=66725&view=diff
==============================================================================
--- trunk/autoinstallation/doc/xml/ScriptsSection.xml (original)
+++ trunk/autoinstallation/doc/xml/ScriptsSection.xml Sun Nov 6 15:15:59 2011
@@ -17,58 +17,57 @@
]>
<section id="createprofile.scripts">
- <title>Custom user scripts</title>
+ <title>Custom User Scripts</title>
<para>
By adding scripts to the auto-installation process you can customize the
- installation for your needs and take control in different stages of the
- installation.
+ installation according to your needs and take control in different
+ stages of the installation.
</para>
<para>
In the auto-installation process, five types of scripts can be executed and they
will be described here in order of "appearance" during the installation.
</para>
- <remark>FIXME: Is this a title?</remark>
+ <remark>FIXME: Is this a title?</remark><remark>emap 2011-11-06: Don't think so.</remark>
<para>All scripts have to be in the <scritps> section.</para>
-
<itemizedlist>
- <listitem><para><emphasis>pre-scripts</emphasis> (very early, before anything else really happened)</para></listitem>
- <listitem><para><emphasis>postpartitioning-scripts</emphasis> (after partitioning and mounting to /mnt but before RPM installation - since openSUSE 11.2)</para></listitem>
+ <listitem><para><emphasis>pre-scripts</emphasis> (very early, before anything else really happens)</para></listitem>
+ <listitem><para><emphasis>postpartitioning-scripts</emphasis> (after partitioning and mounting to /mnt but before RPM installation—since openSUSE 11.2)</para></listitem>
<listitem><para><emphasis>chroot-scripts</emphasis> (after the package installation, before the first boot)</para></listitem>
<listitem><para><emphasis>post-scripts</emphasis> (during the first boot of the installed system, no services running)</para></listitem>
- <listitem><para><emphasis>init-scripts</emphasis> (during the first boot of the installed system, all servies up and running)</para></listitem>
+ <listitem><para><emphasis>init-scripts</emphasis> (during the first boot of the installed system, all services up and running)</para></listitem>
</itemizedlist>
<section id="pre-install.scripts">
<title>Pre-Install Scripts</title>
<para>
- Executed before &yast2; does any real change to the system
- (Before partitioning and package installation but after the hardware detection)
+ Executed before &yast; does any real change to the system
+ (before partitioning and package installation but after the hardware detection).
</para>
<para>
- You can use the pre-script to modify your profile and let autoyast read it again.
- If you want to do that, you can find your profile in "/tmp/profile/autoinst.xml".
- Do what you want to do with that file and store the modified version in
- "/tmp/profile/modified.xml". Autoyast will read that modified script then again after
- the pre-script is done.
+ You can use a pre-script to modify your profile and let &ay; reread it.
+ Find your profile in "/tmp/profile/autoinst.xml". Adjust the file and
+ store the modified version in "/tmp/profile/modified.xml". &ay; will
+ read the modified file after the pre-script finishes.
</para>
<para>
- With SUSE Linux 10.0 and all following versions it's possible to change the partitioning with fdisk
- in your pre-script. With pre 10.0 versions of SUSE Linux (like SLES9), that was not possible.
+ With SUSE Linux 10.0 and all later versions, it is possible to change
+ the partitioning with fdisk in your pre-script. With pre-10.0 versions
+ of SUSE Linux (like SLES9), this was not possible.
</para>
- <note><title>Pre-Install Scripts with confirmation</title>
+ <note><title>Pre-Install Scripts with Confirmation</title>
<para>
Pre-scripts are executed at an early stage of the installation.
This means if you have requested to confirm the installation, the
- pre-scripts will be executed before the confirmation screen
- shows up. (<emphasis>profile/install/general/mode/confirm</emphasis>)
+ pre-scripts will be executed before the confirmation screen
+ shows up (<emphasis>profile/install/general/mode/confirm</emphasis>).
</para>
</note>
<para>
- The following elements must be between the <scripts><pre-scripts config:type="list"><script> ... </script></pre-scripts>...</scripts> tags
+ The following elements must be between the <scripts><pre-scripts config:type="list"><script> ... </script></pre-scripts>...</scripts> tags.
</para>
<table frame='top'>
- <title>pre script XML representation</title>
+ <title>Pre-script XML Representation</title>
<tgroup cols="3">
<thead>
<row>
@@ -80,67 +79,68 @@
<tbody>
<row>
<entry>location</entry>
- <entry><para>you can define a location from where the script gets fetched.
- Locations can be the same like for the profile (http,ftp,nfs,...).
+ <entry><para>Define a location from where the script gets fetched.
+ Locations can be the same as for the profile (http, ftp, nfs, etc.).
</para><screen><location>http://10.10.0.1/myPreScript.sh</location></screen></entry>
- <entry>either <location> or <source> must be defined</entry>
+ <entry>Either <location> or <source> must be defined.</entry>
</row>
<row>
<entry>source</entry>
- <entry><para>the script itself. The source code of the script if you want so. Encapsulated in a CDATA tag. If you don't want
- to put the whole shell script into the XML profile, look at the location parameter.</para>
+ <entry><para>The script itself (source code), encapsulated in
+ a CDATA tag. If you do not want to put the whole shell script
+ into the XML profile, refer to the location parameter.</para>
<screen><source>
<![CDATA[
echo "Testing the pre script" > /tmp/pre-script_out.txt
]]>
</source></screen></entry>
- <entry>Either <location> or <source> must be defined</entry>
+ <entry>Either <location> or <source> must be defined.</entry>
</row>
<row>
<entry>interpreter</entry>
- <entry><para>the interpreter that must be used for the script. Supported options are shell and perl.
+ <entry><para>Specify the interpreter that must be used for the script. Supported options are shell and perl.
</para><screen><interpreter>perl</interpreter></screen></entry>
- <entry>optional (default is shell)</entry>
+ <entry>Optional (default is "shell").</entry>
</row>
<row>
<entry>filename</entry>
- <entry><para>the filename of the script. It will be stored in a temporary directory under /tmp/...
+ <entry><para>The filename of the script. It will be stored in a temporary directory under /tmp/...
</para><screen><filename>myPreScript5.sh</filename></screen></entry>
- <entry>optional. The default is the type of the script (pre-scripts) in this case. If you have more than one script, you should set the filename to a reasonable value</entry>
+ <entry>Optional. Default is the type of the script (pre-scripts in this case). If you have more than one script, you should set the filename to a reasonable value.<remark>emap 2011-11-06: Should this read: If you have more than one script, choose a reasonable filename? Or: select the correct file?</remark></entry>
</row>
<row>
<entry>feedback</entry>
- <entry><para>if this boolean is true, stdout and stderr of the script will be shown in a popup that the
- user has to confirm via ok-button. If stdout and stderr are empty, no popup is shown and so
+ <entry><para>If this boolean is "true", stdout and stderr of the script will be shown in a popup, which the
+ user has to confirm via the OK button. If stdout and stderr are empty, no popup is shown and therefore
no confirmation is needed.
</para><screen><feedback config:type="boolean">true</feedback></screen></entry>
- <entry>optional. The default is false. This option was invented with SL 10.1 / SLES10</entry>
+ <entry>Optional, default is "false". This option was introduced with SL 10.1/SLES10.</entry>
</row>
<row>
<entry>feedback_type</entry>
- <entry><para>this can be "message", "warning", "error" and you can control the timeout of those popups with the <report> section.
+ <entry><para>This can be "message", "warning" or "error". Set the timeout for these popups in the <report> section.
</para><screen><feedback_type>warning</feedback_type></screen></entry>
- <entry>optional. If missing, an always blocking popup is used. This option was invited with openSUSE 11.2 (not SLES11)</entry>
+ <entry>Optional, if missing, an always blocking popup is used. This option was introduced with openSUSE 11.2 (not SLES11).</entry>
</row>
<row>
<entry>debug</entry>
- <entry><para>if this is true, every single line of a shell script is logged. Perl scripts are run with warnings
+ <entry><para>If this is "true", every single line of a shell script is logged. Perl scripts are run with warnings
turned on.
</para><screen><debug config:type="boolean">true</debug></screen></entry>
- <entry>optional. The default is true. This option was invented with SL 10.1 / SLES10</entry>
+ <entry>Optional, default is "true". This option was introduced with SL 10.1/SLES10.</entry>
</row>
<row>
<entry>notification</entry>
- <entry><para>This text will be shown in a popup for the time the script is running in the background
- </para><screen><notification>Please wait while script is running ...</notification></screen></entry>
- <entry>optional. If not configured, no notification popup will be shown. This option was invented with openSUSE 11.3/SLES11 SP2 (not SLES10)</entry>
+ <entry><para>This text will be shown in a popup for the time the script is running in the background.
+ </para><screen><notification>Please wait while script is running...</notification></screen></entry>
+ <entry>Optional, if not configured, no notification popup will be shown. This option was introduced with openSUSE 11.3/SLES11 SP2 (not SLES10).</entry>
</row>
<row>
<entry>rerun</entry>
- <entry><para>a script is only run once. So even if you use ayast_setup to run a XML file multiple times, the script is only run once. You can change that with this boolean.
+ <entry><para>A script is only run once. Even if you use ayast_setup to run a XML file multiple times, the script is only run once. Change this default behavior by setting this boolean to "true".
</para><screen><rerun config:type="boolean">true</rerun></screen></entry>
- <entry>optional. The default is false which makes scripts only run one time</entry>
+ <entry>Optional, default is "false" (scripts only run once).</entry>
</row>
</tbody>
</tgroup>
@@ -151,18 +151,17 @@
<section id="postpartitioning-install.scripts">
<title>Postpartitioning Scripts</title>
<note>
- <para>Available starting from openSUSE 11.2 only (not SLES11).</para>
+ <para>Available since openSUSE 11.2 only (not SLES11).</para>
</note>
<para>
- Executed after &yast2; did the partitioning and wrote the fstab. The empty system is mounted to /mnt already.
- This type of script is available since openSUSE 11.2 (not SLES11).
+ Executed after &yast; has done the partitioning and written the fstab. The empty system is mounted to /mnt already.
</para>
<para>
The following elements must be between the <scripts><postpartitioning-scripts config:type="list"><script> ... </script></postpartitioning-scripts>...</scripts> tags
</para>
<table frame='top'>
- <title>postpartitioning script XML representation</title>
+ <title>Postpartitioning Script XML Representation</title>
<tgroup cols="3">
<thead>
<row>
@@ -174,67 +173,68 @@
<tbody>
<row>
<entry>location</entry>
- <entry><para>you can define a location from where the script gets fetched.
- Locations can be the same like for the profile (http,ftp,nfs,...).
+ <entry><para>Define a location from where the script gets fetched.
+ Locations can be the same as for the profile (http, ftp, nfs, etc.).
</para><screen><location>http://10.10.0.1/myScript.sh</location></screen></entry>
- <entry>either <location> or <source> must be defined</entry>
+ <entry>Either <location> or <source> must be defined.</entry>
</row>
<row>
<entry>source</entry>
- <entry><para>the script itself. The source code of the script if you want so. Encapsulated in a CDATA tag. If you don't want
- to put the whole shell script into the XML profile, look at the location parameter.
+ <entry><para>The script itself (source code), encapsulated in
+ a CDATA tag. If you don't want to put the whole shell script
+ into the XML profile, refer to the location parameter.
</para><screen><source>
<![CDATA[
echo "Testing postpart script" > /mnt/postpart_test.txt
]]>
</source></screen></entry>
- <entry>Either <location> or <source> must be defined</entry>
+ <entry>Either <location> or <source> must be defined.</entry>
</row>
<row>
<entry>interpreter</entry>
- <entry><para>the interpreter that must be used for the script. Supported options are shell and perl.
+ <entry><para>The interpreter that must be used for the script. Supported options are shell and perl.
</para><screen><interpreter>perl</interpreter></screen></entry>
- <entry>optional (default is shell)</entry>
+ <entry>Optional, default is "shell".</entry>
</row>
<row>
<entry>filename</entry>
- <entry><para>the filename of the script. It will be stored in a temporary directory under /tmp/...
+ <entry><para>The filename of the script. It will be stored in a temporary directory under /tmp/...
</para><screen><filename>myScript5.sh</filename></screen></entry>
- <entry>optional. The default is the type of the script (postpartitioning-scripts in this case). If you have more than one script, you should set the filename to a reasonable value</entry>
+ <entry>Optional, default is the type of the script (postpartitioning-scripts in this case). If you have more than one script, set the filename to a reasonable value.<remark>emap 2011-11-06: Should this read: If you have more than one script, choose a reasonable filename? Or: select the correct file?</remark></entry>
</row>
<row>
<entry>feedback</entry>
- <entry><para>if this boolean is true, stdout and stderr of the script will be shown in a popup that the
- user has to confirm via ok-button. If stdout and stderr are empty, no popup is shown and so
+ <entry><para>If this boolean is "true", stdout and stderr of the script will be shown in a popup, which the
+ user has to confirm via the OK button. If stdout and stderr are empty, no popup is shown and therefore
no confirmation is needed.
</para><screen><feedback config:type="boolean">true</feedback></screen></entry>
- <entry>optional. The default is false. This option was invented with SL 10.1 / SLES10</entry>
+ <entry>Optional, the default is "false". This option was introduced with SL 10.1/SLES10.</entry>
</row>
<row>
<entry>feedback_type</entry>
- <entry><para>this can be "message", "warning", "error" and you can control the timeout of those popups with the <report> section.
+ <entry><para>This can be "message", "warning" or "error". Set the timeout for these popups in the <report> section.
</para><screen><feedback_type>warning</feedback_type></screen></entry>
- <entry>optional. If missing, an always blocking popup is used. This option was invited with openSUSE 11.2 (not SLES11)</entry>
+ <entry>Optional, if missing, an always blocking popup is used. This option was introduced with openSUSE 11.2 (not SLES11).</entry>
</row>
<row>
<entry>debug</entry>
- <entry><para>if this is true, every single line of a shell script is logged. Perl scripts are run with warnings
+ <entry><para>If this is "true", every single line of a shell script is logged. Perl scripts are run with warnings
turned on.
</para><screen><debug config:type="boolean">true</debug></screen></entry>
- <entry>optional. The default is true. This option was invented with SL 10.1 / SLES10</entry>
+ <entry>Optional, default is "true". This option was added with SL 10.1/SLES10.</entry>
</row>
<row>
<entry>notification</entry>
- <entry><para>This text will be shown in a popup for the time the script is running in the background
- </para><screen><notification>Please wait while script is running ...</notification></screen></entry>
- <entry>optional. If not configured, no notification popup will be shown. This option was invented with openSUSE 11.3/SLES11 SP2 (not SLES10)</entry>
+ <entry><para>This text will be shown in a popup for the time the script is running in the background.
+ </para><screen><notification>Please wait while script is running...</notification></screen></entry>
+ <entry>Optional, if not configured, no notification popup will be shown. This option was added with openSUSE 11.3/SLES11 SP2 (not SLES10).</entry>
</row>
<row>
<entry>rerun</entry>
- <entry><para>a script is only run once. So even if you use ayast_setup to run a XML file multiple times, the script is only run once. You can change that with this boolean.
+ <entry><para>A script is only run once. Even if you use ayast_setup to run a XML file multiple times, the script is only run once. Set this boolean to "true" if you want to change this default behavior.
</para><screen><rerun config:type="boolean">true</rerun></screen></entry>
- <entry>optional. The default is false which makes scripts only run one time</entry>
+ <entry>Optional, default is false (scripts only run once).</entry>
</row>
</tbody>
</tgroup>
@@ -244,20 +244,17 @@
<section id="chroot.scripts">
- <title>Chroot environment scripts</title>
- <para>Chroot scripts are executed before the machine reboots for the first time.
- Actually chroot scripts are two differnt kind of script with
- one name. You can execute chroot script before the installation chroots into
- the installed system and configures the boot loader and you can execute a script
- after the chroot into the installed system has happend (look at the "chrooted" parameter for that). Both types of scripts are
- executed before yast2 boots for the first time.
+ <title>Chroot Environment Scripts</title>
+ <para>Chroot scripts are executed before the machine reboots for the first time. You can execute chroot scripts before the installation chroots into
+ the installed system and configures the boot loader or you can execute a script
+ after the chroot into the installed system has happened (look at the "chrooted" parameter for that).
</para>
<para>
The following elements must be between the <scripts><chroot-scripts config:type="list"><script> ... </script></chroot-scripts>...</scripts> tags
</para>
<table frame='top'>
- <title>chroot script XML representation</title>
+ <title>Chroot Script XML Representation</title>
<tgroup cols="3">
<thead>
<row>
@@ -269,74 +266,73 @@
<tbody>
<row>
<entry>location</entry>
- <entry><para>you can define a location from where the script gets fetched.
- Locations can be the same like for the profile (http,ftp,nfs,...).
+ <entry><para>Define a location from where the script gets fetched.
+ Locations can be the same as for the profile (http, ftp, nfs, etc.).
</para>
<screen><location>http://10.10.0.1/myChrootScript.sh</location></screen>
</entry>
- <entry>either <location> or <source> must be defined</entry>
+ <entry>Either <location> or <source> must be defined.</entry>
</row>
<row>
<entry>source</entry>
- <entry><para>the script itself. The source code of the script if you want so. Encapsulated in a CDATA tag. If you don't want
- to put the whole shell script into the XML profile, look at the location parameter.
- </para><screen><source>
-<![CDATA[
-echo "Testing the chroot script" > /tmp/chroot_out.txt
-]]>
-</source></screen></entry>
- <entry>either <location> or <source> must be defined</entry>
+ <entry><para>The script itself (source code), encapsulated in
+ a CDATA tag. If you do not want to put the whole shell script
+ into the XML profile, use the location parameter.
+ </para><screen><source> <![CDATA[ echo "Testing the
+ chroot script" > /tmp/chroot_out.txt ]]>
+ </source></screen></entry>
+ <entry>Either <location> or <source> must be defined.</entry>
</row>
<row>
<entry>chrooted</entry>
- <entry><para>this value can be true or false. "False" means that the installed system is still mounted at "/mnt" and no chrooting has happened till now. The bootloader is not installed too at that stage. "True" means, we did a chroot into /mnt, so we are now in the installed system. The bootloader is installed and if you want to change anything in the installed system, you don't have to use the "/mnt/" prefix anymore.
+ <entry><para>This value can be "true" or "false". If set to "false", the installed system remains mounted at "/mnt" and no chroot happens. The bootloader is not installed either at this stage. Set to "true" means, a chroot into /mnt is performed, where the installed system is mounted. The bootloader is installed, and if you want to change anything in the installed system, you don't have to use the "/mnt/" prefix anymore.
</para><screen><chrooted config:type="boolean">true</chrooted></screen></entry>
- <entry>optional (the default is false)</entry>
+ <entry>Optional, default is "false".</entry>
</row>
<row>
<entry>interpreter</entry>
- <entry><para>the interpreter that must be used for the script. Supported options are shell and perl.and if you are in a chrooted=true condition, you can use python too if it's installed.
+ <entry><para>The interpreter that must be used for the script. Supported options are shell and perl. If you are in a chrooted=true condition, you can also use python if installed.
</para><screen><interpreter>perl</interpreter></screen></entry>
- <entry>optional (default is shell)</entry>
+ <entry>Optional, default is shell.</entry>
</row>
<row>
<entry>filename</entry>
- <entry><para>the filename of the script. It will be stored in a temporary directory under /tmp/...
+ <entry><para>The filename of the script. It will be stored in a temporary directory under /tmp/...
</para><screen><filename>myPreScript5.sh</filename></screen></entry>
- <entry>optional. The default is the type of the script (chroot-scripts) in this case. If you have more than one script, you should set the filename to a reasonable value</entry>
+ <entry>Optional, default is the type of the script (chroot-scripts in this case). If you have more than one script, you should set the filename to a reasonable value.<remark>emap 2011-11-06: Should this read: If you have more than one script, choose a reasonable filename? Or: select the correct file?</remark></entry>
</row>
<row>
<entry>feedback</entry>
- <entry><para>if this boolean is true, stdout and stderr of the script will be shown in a popup that the
- user has to confirm via ok-button. If stdout and stderr are empty, no popup is shown and so
+ <entry><para>If this boolean is "true", stdout and stderr of the script will be shown in a popup, which the
+ user has to confirm via the OK button. If stdout and stderr are empty, no popup is shown and therefore
no confirmation is needed.
</para><screen><feedback config:type="boolean">true</feedback></screen></entry>
- <entry>optional. The default is false. This option was invented with SL 10.1 / SLES10</entry>
+ <entry>Optional, default is "false". This option was added with SL 10.1/SLES10.</entry>
</row>
<row>
<entry>feedback_type</entry>
- <entry><para>this can be "message", "warning", "error" and you can control the timeout of those popups with the <report> section.
+ <entry><para>This can be "message", "warning" or "error". Set the timeout for these popups in the <report> section.
</para><screen><feedback_type>warning</feedback_type></screen></entry>
- <entry>optional. If missing, an always blocking popup is used. This option was invited with openSUSE 11.2 (not SLES11)</entry>
+ <entry>Optional, if missing, an always blocking popup is used. This option was introduced with openSUSE 11.2 (not SLES11).</entry>
</row>
<row>
<entry>debug</entry>
- <entry><para>if this is true, every single line of a shell script is logged. Perl scripts are run with warnings
+ <entry><para>If this is true, every single line of a shell script is logged. Perl scripts are run with warnings
turned on.
</para><screen><debug config:type="boolean">true</debug></screen></entry>
- <entry>optional. The default is true. This option was invented with SL 10.1 / SLES10</entry>
+ <entry>Optional, default is "true". This option was added with SL 10.1/SLES10.</entry>
</row>
<row>
<entry>notification</entry>
- <entry><para>This text will be shown in a popup for the time the script is running in the background
- </para><screen><notification>Please wait while script is running ...</notification></screen></entry>
- <entry>optional. If not configured, no notification popup will be shown. This option was invented with openSUSE 11.3/SLES11 SP2 (not SLES10)</entry>
+ <entry><para>This text will be shown in a popup for the time the script is running in the background.
+ </para><screen><notification>Please wait while script is running...</notification></screen></entry>
+ <entry>Optional, if not configured, no notification popup will be shown. This option was added with openSUSE 11.3/SLES11 SP2 (not SLES10).</entry>
</row>
<row>
<entry>rerun</entry>
- <entry><para>a script is only run once. So even if you use ayast_setup to run a XML file multiple times, the script is only run once. You can change that with this boolean.
+ <entry><para>A script is only run once. Even if you use ayast_setup to run a XML file multiple times, the script is only run once. You can change the default behavior by setting this boolean to "true".
</para><screen><rerun config:type="boolean">true</rerun></screen></entry>
- <entry>optional. The default is false which makes scripts only run one time</entry>
+ <entry>Optional, default is "false" (scripts only run once).</entry>
</row>
</tbody>
</tgroup>
@@ -346,21 +342,21 @@
<section id="post-insall.scripts">
<title>Post-Install Scripts</title>
<para>
- These scripts are executed after AutoYaST has completed the
+ These scripts are executed after &ay; has completed the
system configuration and after it has booted the system for the first time.
</para>
<para>
- It is possible to execute the post scripts in an earlier phase while
- the installation network is still up and before AutoYaST configures
- the system. To run network enabled post scripts, the boolean
- property <emphasis>network_needed</emphasis> has to be set to true.
+ It is possible to execute post scripts in an earlier phase while
+ the installation network is still up and before &ay; configures
+ the system. To run network-enabled post scripts, the boolean
+ property <emphasis>network_needed</emphasis> has to be set to "true".
</para>
<para>
- The following elements must be between the <scripts><post-scripts config:type="list"><script> ... </script></post-scripts>...</scripts> tags
+ The following elements must be between the <scripts><post-scripts config:type="list"><script> ... </script></post-scripts>...</scripts> tags.
</para>
<table frame='top'>
- <title>post script XML representation</title>
+ <title>Post Script XML Representation</title>
<tgroup cols="3">
<thead>
<row>
@@ -372,75 +368,75 @@
<tbody>
<row>
<entry>location</entry>
- <entry><para>you can define a location from where the script gets fetched.
- Locations can be the same like for the profile (http,ftp,nfs,...) but then you need a running network interface of course
+ <entry><para>Define a location from where the script gets fetched.
+ Locations can be the same as for the profile (http, ftp, nfs, etc.).
</para>
<screen><location>http://10.10.0.1/myPostScript.sh</location></screen>
</entry>
- <entry>either <location> or <source> must be defined</entry>
+ <entry>Either <location> or <source> must be defined.</entry>
</row>
<row>
<entry>source</entry>
- <entry><para>the script itself. The source code of the script if you want so. Encapsulated in a CDATA tag. If you don't want
- to put the whole shell script into the XML profile, look at the location parameter.
+ <entry><para>The script itself (source code), encapsulated in a CDATA tag. If you do not want
+ to put the whole shell script into the XML profile, use the location parameter.
</para><screen><source>
<![CDATA[
echo "Testing the chroot script" > /tmp/chroot_out.txt
]]>
</source></screen></entry>
- <entry>either <location> or <source> must be defined</entry>
+ <entry>Either <location> or <source> must be defined.</entry>
</row>
<row>
<entry>network_needed</entry>
<!-- FIXME: double check that. I'm very unsure if this is correct -->
- <entry><para>this value can be true or false. On "false" the script will run after the yast modules like the user configuration and everything else are done. The network is configured but still not up and running. With this value on "true", the script runs before(!) all yast modules are configured. So there is no local user and no network is configured but the installation network is still up and running (of course only if you did a network installation).
+ <entry><para>This value can be "true" or "false". On "false" the script will run after the &yast; modules like the user configuration and everything else are done. The network is configured but not up and running yet. With this value set to "true", the script runs before all &yast; modules are configured. So there is no local user and no network is configured but the installation network is still up and running (if you did a network installation).
</para><screen><network_needed config:type="boolean">true</network_needed></screen></entry>
- <entry>optional (the default is false)</entry>
+ <entry>Optional, default is "false".</entry>
</row>
<row>
<entry>interpreter</entry>
- <entry><para>the interpreter that must be used for the script. Supported options are shell, perl and python if it's installed.
+ <entry><para>The interpreter that must be used for the script. Supported options are shell, perl and python if installed.
</para><screen><interpreter>perl</interpreter></screen></entry>
- <entry>optional (default is shell)</entry>
+ <entry>Optional, default is shell.</entry>
</row>
<row>
<entry>filename</entry>
- <entry><para>the filename of the script. It will be stored in a temporary directory under /tmp/...
+ <entry><para>The filename of the script. It will be stored in a temporary directory under /tmp/...
</para><screen><filename>myPostScript5.sh</filename></screen></entry>
- <entry>optional. The default is the type of the script (post-scripts) in this case. If you have more than one script, you should set the filename to a reasonable value</entry>
+ <entry>Optional, default is the type of the script (post-scripts in this case). If you have more than one script, set the filename to a reasonable value.<remark>emap 2011-11-06: Should this read: If you have more than one script, choose a reasonable filename? Or: select the correct file?</remark></entry>
</row>
<row>
<entry>feedback</entry>
- <entry><para>if this boolean is true, stdout and stderr of the script will be shown in a popup that the
- user has to confirm via ok-button. If stdout and stderr are empty, no popup is shown and so
+ <entry><para>If this boolean is "true", stdout and stderr of the script will be shown in a popup, which the
+ user has to confirm via the OK button. If stdout and stderr are empty, no popup is shown and therefore
no confirmation is needed.
</para><screen><feedback config:type="boolean">true</feedback></screen></entry>
- <entry>optional. The default is false. This option was invented with SL 10.1 / SLES10</entry>
+ <entry>Optional, default is "false". This option was added with SL 10.1/SLES10.</entry>
</row>
<row>
<entry>feedback_type</entry>
- <entry><para>this can be "message", "warning", "error" and you can control the timeout of those popups with the <report> section.
+ <entry><para>This can be "message", "warning" or "error". Set the timeout for these popups in the <report> section.
</para><screen><feedback_type>warning</feedback_type></screen></entry>
- <entry>optional. If missing, an always blocking popup is used. This option was invited with openSUSE 11.2 (not SLES11)</entry>
+ <entry>Optional, if missing, an always blocking popup is used. This option was added with openSUSE 11.2 (not SLES11).</entry>
</row>
<row>
<entry>debug</entry>
- <entry><para>if this is true, every single line of a shell script is logged. Perl scripts are run with warnings
+ <entry><para>If this is "true", every single line of a shell script is logged. Perl scripts are run with warnings
turned on.
</para><screen><debug config:type="boolean">true</debug></screen></entry>
- <entry>optional. The default is true. This option was invented with SL 10.1 / SLES10</entry>
+ <entry>Optional, default is "true". This option was added with SL 10.1/SLES10.</entry>
</row>
<row>
<entry>notification</entry>
- <entry><para>This text will be shown in a popup for the time the script is running in the background
- </para><screen><notification>Please wait while script is running ...</notification></screen></entry>
- <entry>optional. If not configured, no notification popup will be shown. This option was invented with openSUSE 11.3/SLES11 SP2 (not SLES10)</entry>
+ <entry><para>This text will be shown in a popup for the time the script is running in the background.
+ </para><screen><notification>Please wait while script is running...</notification></screen></entry>
+ <entry>Optional, if not configured, no notification popup will be shown. This option was introduced with openSUSE 11.3/SLES11 SP2 (not SLES10).</entry>
</row>
<row>
<entry>rerun</entry>
- <entry><para>a script is only run once. So even if you use ayast_setup to run a XML file multiple times, the script is only run once. You can change that with this boolean.
+ <entry><para>A script is only run once. Even if you use ayast_setup to run a XML file multiple times, the script is only run once. Change this default behavior by setting this boolean to "true".
</para><screen><rerun config:type="boolean">true</rerun></screen></entry>
- <entry>optional. The default is false which makes scripts only run one time</entry>
+ <entry>Optional, default is "false" (scripts only run once).</entry>
</row>
</tbody>
</tgroup>
@@ -450,11 +446,10 @@
<section id="init.scripts">
<title>Init Scripts</title>
<para>
- These scripts are executed during the initial boot process and after
- &yast2; has finished. The final scripts are executed using a special
- <emphasis>init.d</emphasis> script which is executed only
- once. The final scripts are executed toward the end of the boot
- process and after network has been intialized.
+ These scripts are executed when &yast; has finished, during the
+ initial boot process after the network has been initialized. These
+ final scripts are executed using a special
+ <emphasis>init.d</emphasis> script executed only once.
</para>
<para>
Init scripts are configured using the tag <emphasis>init-scripts</emphasis> and
@@ -465,7 +460,7 @@
</para>
<table frame='top'>
- <title>init script XML representation</title>
+ <title>Init script XML representation</title>
<tgroup cols="3">
<thead>
<row>
@@ -477,35 +472,35 @@
<tbody>
<row>
<entry>location</entry>
- <entry><para>you can define a location from where the script gets fetched.
- Locations can be the same like for the profile (http,ftp,nfs,...) but then you need a running network interface of course
+ <entry><para>Define a location from where the script gets fetched.
+ Locations can be the same as for the profile (http, ftp, nfs, etc.).
</para>
<screen><location>http://10.10.0.1/myInitScript.sh</location></screen>
</entry>
- <entry>either <location> or <source> must be defined</entry>
+ <entry>Either <location> or <source> must be defined.</entry>
</row>
<row>
<entry>source</entry>
- <entry><para>the script itself. The source code of the script if you want so. Encapsulated in a CDATA tag. If you don't want
- to put the whole shell script into the XML profile, look at the location parameter.
+ <entry><para>The script itself (source code), encapsulated in a CDATA tag. If you do not want
+ to put the whole shell script into the XML profile, use the location parameter.
</para><screen><source>
<![CDATA[
echo "Testing the init script" > /tmp/init_out.txt
]]>
</source></screen></entry>
- <entry>either <location> or <source> must be defined</entry>
+ <entry>Either <location> or <source> must be defined.</entry>
</row>
<row>
<entry>filename</entry>
- <entry><para>the filename of the script. It will be stored in a temporary directory under /tmp/...
+ <entry><para>The filename of the script. It will be stored in a temporary directory under /tmp/...
</para><screen><filename>mynitScript5.sh</filename></screen></entry>
- <entry>optional. The default is the type of the script (init-scripts) in this case. If you have more than one script, you should set the filename to a reasonable value</entry>
+ <entry>Optional, default is the type of the script (init-scripts in this case). If you have more than one script, set the filename to a reasonable value.<remark>emap 2011-11-06: Should this read: If you have more than one script, choose a reasonable filename? Or: select the correct file?</remark></entry>
</row>
<row>
<entry>rerun</entry>
- <entry><para>a script is only run once. So even if you use ayast_setup to run a XML file multiple times, the script is only run once. You can change that with this boolean.
+ <entry><para>A script is only run once. Even if you use ayast_setup to run a XML file multiple times, the script is only run once. Change this default behavior by setting this boolean to "true".
</para><screen><rerun config:type="boolean">true</rerun></screen></entry>
- <entry>optional. The default is false which makes scripts only run one time</entry>
+ <entry>Optional, default is "false" (scripts only run once).</entry>
</row>
</tbody>
</tgroup>
@@ -513,16 +508,16 @@
<para>
- When added to the control file manually, the
- scripts have to be included in a <emphasis>CDATA</emphasis> element to avoid confusion with
- the file syntax and other tags defined in the control file.
+ When added to the control file manually, scripts have to be included in
+ a <emphasis>CDATA</emphasis> element to avoid confusion with the file
+ syntax and other tags defined in the control file.
</para>
</section>
<section id="script_examples">
- <title>Script example</title>
+ <title>Script Example</title>
<example>
- <title>Post script configuration</title>
+ <title>Post Script Configuration</title>
<screen>
participants (1)
-
emap@svn2.opensuse.org