<div dir="ltr">Thanks chip, i worked out what I did wrong.<br><br>In %pre I needed to mount the disk, /mnt/sysimage isn't there.<br><br>Good hint on the sleep command though.<br><br>thanks,<br><br><div class="gmail_quote">
On Mon, Sep 15, 2008 at 11:16 PM, Shabazian, Chip <span dir="ltr"><<a href="mailto:Chip.Shabazian@bankofamerica.com">Chip.Shabazian@bankofamerica.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">










<div link="blue" vlink="#606420" lang="EN-US">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">If you are just doing one machine, just
backup that directory.  If you need to do lots of machines, put a sleep
statement in your %pre and figure out what you want to do, then add those
commands to the %pre.</span></font></p>

<div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:kickstart-list-bounces@redhat.com" target="_blank">kickstart-list-bounces@redhat.com</a> [mailto:<a href="mailto:kickstart-list-bounces@redhat.com" target="_blank">kickstart-list-bounces@redhat.com</a>] <b><span style="font-weight: bold;">On Behalf Of </span></b>niall el-assaad<br>

<b><span style="font-weight: bold;">Sent:</span></b> Monday, September 15, 2008
3:01 PM<br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:Kickstart-list@redhat.com" target="_blank">Kickstart-list@redhat.com</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> Removing old linux in the
%pre section</span></font></p>

</div><div><div></div><div class="Wj3C7c">

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

<div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Hi,<br>
<br>
I've got a fc6 build that I want to move to centos, i just want to keep a
single directory.<br>
<br>
Is there some way in the %pre section I could delete all the directories off
the disk (apart from 1) and then have kickstart continue and install centos?<br>
<br>
I've tried but the %pre section doesn't seem to work. I'm using /mnt/sysimage
to access the hard disk, but doesn't seem to work.<br>
<br>
Any ideas?<br>
<br>
thanks,</span></font></p>

</div>

</div></div></div>

</div>


<br>_______________________________________________<br>
Kickstart-list mailing list<br>
<a href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/kickstart-list" target="_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</a><br></blockquote></div><br></div>