On Wed, May 6, 2009 at 1:07 PM, Iustin Pop <[email protected]> wrote:
> On Wed, May 06, 2009 at 11:59:58AM +0200, Guido Trotter wrote:
>>
>> Sometimes reinstalls are slightly different than new installs. For
>> example certain partitions may need to be preserved accross reinstalls.
>> In order to do that on a per-os basis we pass in the INSTANCE_REINSTALL
>> variable to inform the create script about when a reinstall is
>> happening.
>>
>> Signed-off-by: Guido Trotter <[email protected]>
>
>
> LGTM. The docs/man page needs also updating, btw.
>
True. This is the interdiff for the man page. I plan to submit it with
the same patch, so if we cherry-pick it anywhere we're also going to
get the updated document:
diff --git a/man/ganeti-os-interface.sgml b/man/ganeti-os-interface.sgml
index 5a127e4..11df58c 100644
--- a/man/ganeti-os-interface.sgml
+++ b/man/ganeti-os-interface.sgml
@@ -215,6 +215,11 @@
according to this name. It can configure the IP statically or
not, depending on the deployment environment.</para>
+ <para>The <envar>INSTANCE_REINSTALL</envar> variable is set to '1' if and
+ only if this create request is reinstalling and existing instance, rather
+ than creating one anew. This can be used, for example, to preserve some
+ data in the old instance in an os-specific way.</para>
+
</refsect2>