Author: locilka
Date: Tue Aug 12 10:31:08 2008
New Revision: 49966
URL: http://svn.opensuse.org/viewcvs/yast?rev=49966&view=rev
Log:
- Added documentation and example for list of files to be copied
from the previous installation.
Added:
trunk/installation/control/docs/examples/globals-copy_to_system.xml
Modified:
trunk/installation/control/control.SLD.xml
trunk/installation/control/control.SLES.xml
trunk/installation/control/control.openSUSE.xml
trunk/installation/control/docs/control-section.xml
trunk/installation/package/yast2-installation.changes
trunk/installation/src/clients/inst_pre_install.ycp
Modified: trunk/installation/control/control.SLD.xml
URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/control/control.SLD.xml?rev=49966&r1=49965&r2=49966&view=diff
==============================================================================
--- trunk/installation/control/control.SLD.xml (original)
+++ trunk/installation/control/control.SLD.xml Tue Aug 12 10:31:08 2008
@@ -43,7 +43,7 @@
- <!-- #305019: configure the files to copy from a previous installation -->
+ <!-- FATE #305019: configure the files to copy from a previous installation -->
<!-- FATE #300421: Import ssh keys from previous installations -->
Modified: trunk/installation/control/control.SLES.xml
URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/control/control.SLES.xml?rev=49966&r1=49965&r2=49966&view=diff
==============================================================================
--- trunk/installation/control/control.SLES.xml (original)
+++ trunk/installation/control/control.SLES.xml Tue Aug 12 10:31:08 2008
@@ -40,7 +40,7 @@
- <!-- #305019: configure the files to copy from a previous installation -->
+ <!-- FATE #305019: configure the files to copy from a previous installation -->
<!-- FATE #300421: Import ssh keys from previous installations -->
Modified: trunk/installation/control/control.openSUSE.xml
URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/control/control.openSUSE.xml?rev=49966&r1=49965&r2=49966&view=diff
==============================================================================
--- trunk/installation/control/control.openSUSE.xml (original)
+++ trunk/installation/control/control.openSUSE.xml Tue Aug 12 10:31:08 2008
@@ -46,7 +46,7 @@
- <!-- #305019: configure the files to copy from a previous installation -->
+ <!-- FATE #305019: configure the files to copy from a previous installation -->
<!-- FATE #300421: Import ssh keys from previous installations -->
Modified: trunk/installation/control/docs/control-section.xml
URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/control/docs/control-section.xml?rev=49966&r1=49965&r2=49966&view=diff
==============================================================================
--- trunk/installation/control/docs/control-section.xml (original)
+++ trunk/installation/control/docs/control-section.xml Tue Aug 12 10:31:08 2008
@@ -429,6 +429,54 @@
</itemizedlist>
</section>
+ <!-- FATE #305019: configure the files to copy from a previous installation -->
+ <!-- FATE #300421: Import ssh keys from previous installations -->
+ <!-- FATE #120103: Import Users From Existing Partition -->
+ <section id="control_globals_copy_to_system">
+ <title>Importing Files from Previous Installation</title>
+
+ <para>Even if users are performing new reinstallation of their system, installation
+ process can backup some files or directories before their disks are formatted and
+ restore them after the installation. For instance, SSH keys are reused.</para>
+
+ <para>Typically, there is only one system previously installed, if there are more
+ systems, the one with the newest access time to required files is chosen.</para>
+
+ <para>See the example:</para>
+ <programlisting>
+ http://www.w3.org/2001/XInclude"/>
+ </programlisting>
+
+ <para>In the <emphasis>globals</emphasis> section, there is a
+ <emphasis>copy_to_system</emphasis> list of <emphasis>copy_to_system_item</emphasis>
+ entries.</para>
+
+ <para>Every <emphasis>copy_to_system_item</emphasis> entry consists of:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>(string) <emphasis>copy_to_dir</emphasis> - files are finally
+ stored into the mentioned directory, they additionally keep their
+ path in the previous filesystem, e.g., file <emphasis>/etc/file</emphasis>
+ copied to directory <emphasis>/var/lib/YaST2/</emphasis> will be finally
+ stored as <emphasis>/var/lib/YaST2/etc/file</emphasis></para>
+ </listitem>
+ <listitem>
+ <para>(list) <emphasis>mandatory_files</emphasis> - list of (string)
+ <emphasis>file_item</emphasis> entries, one entry for one file or
+ directory; these files are mandatory and must all exist on the source
+ system; if any of the files are missing, such system is skipped</para>
+ </listitem>
+ <listitem>
+ <para>(list) <emphasis>optional_files</emphasis> - list of (string)
+ <emphasis>file_item</emphasis> entries, one entry for one file or
+ directory; files are optional and are copied if they exist; missing
+ files are skipped</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
<!-- FATE #303939: Enable redetection of hardware at customer first boot -->
<section id="control_globals_automatic_configuration">
<title>Automatic Configuration</title>
Added: trunk/installation/control/docs/examples/globals-copy_to_system.xml
URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/control/docs/examples/globals-copy_to_system.xml?rev=49966&view=auto
==============================================================================
--- trunk/installation/control/docs/examples/globals-copy_to_system.xml (added)
+++ trunk/installation/control/docs/examples/globals-copy_to_system.xml Tue Aug 12 10:31:08 2008
@@ -0,0 +1,43 @@
+
+ <globals>
+
+
+ <!-- Files are restored directly to "/" after installation -->
+ /
+
+ <!-- Files that must be all present on the previous system -->
+
+ /etc/ssh/ssh_host_key
+ /etc/ssh/ssh_host_key.pub
+
+
+ <!-- Files thay may be present and are used if exist -->
+
+ /etc/ssh/ssh_host_dsa_key
+ /etc/ssh/ssh_host_dsa_key.pub
+ /etc/ssh/ssh_host_rsa_key
+ /etc/ssh/ssh_host_rsa_key.pub
+
+
+
+
+ <!--
+ Files are restored to a special directory
+ (and used by YaST later)
+ -->
+ /var/lib/YaST2/imported/userdata/
+
+ <!--
+ They finally appear as
+ "/var/lib/YaST2/imported/userdata/etc/shadow"
+ "/var/lib/YaST2/imported/userdata/etc/passwd" ...
+ -->
+
+ /etc/shadow
+ /etc/passwd
+ /etc/login.defs
+ /etc/group
+
+
+
+ </globals>
Modified: trunk/installation/package/yast2-installation.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/package/yast2-installation.changes?rev=49966&r1=49965&r2=49966&view=diff
==============================================================================
--- trunk/installation/package/yast2-installation.changes (original)
+++ trunk/installation/package/yast2-installation.changes Tue Aug 12 10:31:08 2008
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Tue Aug 12 10:28:24 CEST 2008 - locilka@suse.cz
+
+- Added documentation and example for list of files to be copied
+ from the previous installation.
+
+-------------------------------------------------------------------
Mon Aug 11 17:35:47 CEST 2008 - locilka@suse.cz
- List of files to be copied from the previous installation moved
Modified: trunk/installation/src/clients/inst_pre_install.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/src/clients/inst_pre_install.ycp?rev=49966&r1=49965&r2=49966&view=diff
==============================================================================
--- trunk/installation/src/clients/inst_pre_install.ycp (original)
+++ trunk/installation/src/clients/inst_pre_install.ycp Tue Aug 12 10:31:08 2008
@@ -27,7 +27,7 @@
Initialize();
- if (InstData::copy_files_use_control_file == true) {
+ if (SystemFilesCopy::GetUseControlFileDef()) {
y2milestone ("Using copy_to_system from control file");
// FATE #305019: configure the files to copy from a previous installation
@@ -43,7 +43,7 @@
});
}
- if (SystemFilesCopy::GetUseControlFileDef()) {
+ if (SystemFilesCopy::GetCopySystemFiles() != []) {
y2milestone ("Using additional copy_to_system");
foreach (map one_copy_item, SystemFilesCopy::GetCopySystemFiles(), {
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org