I&#39;m having some problem with the --partitions option. I have created the following partitions file :<br><br>------------<br>[root]<br>size=5G<br>type=ext3<br>mountpoint=/<br>options=sync,errors=remount-ro<br><br>[swap]<br>

size=1G<br>type=swap<br><br>[home]<br>size=5G<br>type=xfs<br>mountpoint=/home<br>options=defaults<br><br>[tmp]<br>size=1G<br>type=xfs<br>mountpoint=/tmp<br>options=defaults<br><br>[usr]<br>size=5G<br>type=xfs<br>mountpoint=/usr<br>

options=defaults<br><br>[var]<br>size=5G<br>type=xfs<br>mountpoint=/var<br>options=defaults<br><br>[data]<br>size=10G<br>type=xfs<br>mountpoint=/data<br>options=defaults<br>------------<br><br>When I try to create the creation, its give me the following error :<br>

<br>Use of uninitialized value $lines[0] in substitution (s///) at /usr/share/perl5/Config/IniFiles.pm line 614.<br>Use of uninitialized value $_ in pattern match (m//) at /usr/share/perl5/Config/IniFiles.pm line 628.<br>

The root partition was not specified.<br><br>Perl version : <br>xen1:~/scripts# perl -v<br>This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi<br><br>I don&#39;t know Perl at all, therefore I have no idea what could be causing such a bizarre error.<br>

<br>Thank you in advance for your help,<br><br>Antoine<br><br><div class="gmail_quote">On Mon, May 17, 2010 at 11:06 PM, Dmitry Nedospasov <span dir="ltr">&lt;<a href="mailto:dmitry@nedos.net">dmitry@nedos.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On 17.5.10 22:47, Axel Beckert wrote:<br>
&gt;&gt; What I would like to do is create a custom partitionning scheme for<br>
&gt;&gt; my domains.<br>
&gt;<br>
&gt; Have a look at the file /etc/xen-tools/partitions.d/sample-server<br>
<br>
</div>Wow you learn something new every day. I haven&#39;t tried this out yet<br>
either (I didn&#39;t know it existed :)).<br>
<br>
I just wanted to mention that it&#39;s very easy to define &quot;roles&quot; with<br>
xen-tools which could do something along these lines as well if you feel<br>
in any way limited by the current functionality. If you were to extend<br>
xen-tools by adding a new role I recommend you take a look at the<br>
following files:<br>
<br>
1. xm.tmpl<br>
2. xen-tools.conf<br>
3. xen-create-image<br>
4. And obviously adding the script itself to the roles directory<br>
<br>
Regards,<br>
<font color="#888888"><br>
D.<br>
<br>
<br>
</font><br>_______________________________________________<br>
xen-tools-discuss mailing list<br>
<a href="mailto:xen-tools-discuss@xen-tools.org">xen-tools-discuss@xen-tools.org</a><br>
<a href="https://xen-tools.org/mailman/listinfo/xen-tools-discuss" target="_blank">https://xen-tools.org/mailman/listinfo/xen-tools-discuss</a><br>
<br></blockquote></div><br>