<div dir="ltr">hi tim:<br>   Thanks for your fast reply, I've found how to copy file to livecd using the %post-nochroot and pasted here,you made my day,thanks again.<br><br><br>in your own config/kickstart, you can add a section like the following<br>
(note, you can just add this, as there can be multiple of these %post<br>sections)<br><br>%post --nochroot<br><br>mkdir $INSTALL_ROOT/usr/share/extramedia<br>cp /home/mdickson/some.mpeg \<br>$INSTALL_ROOT/usr/share/extramedia/<br>
<br>mkdir $LIVE_ROOT/momedia<br>cp /home/mdickson/someother.mpeg \<br>$LIVE_ROOT/momedia/<br><br>%end<br><br>Note, the first part, will add the file to the root filesystem that is<br>visible when you boot up the livecd/usb.  And as a result will be<br>
compressed during the build process (but obviously not well, as mpeg is<br>already compressed as much as it can).<br><br>The second part (using LIVE_ROOT instead of INSTALL_ROOT), will add the<br>file to the cdrom filesysem, uncompressed.  As such, the user could for<br>
instance easily see the file if they dropped the cdrom into a windows<br>system (on the cdrom, under the top level folder 'momedia').<br><br><br><div class="gmail_quote">On Thu, Jul 24, 2008 at 11:52 AM, Tim Wood <<a href="mailto:tim.wood@datawranglers.com" target="_blank">tim.wood@datawranglers.com</a>> 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 bgcolor="#ffffff" text="#000000">
If you're trying to build a program from a tar file and install it,
then your best option is going to be to go the rpm route.  <br>
<br>
If you just want to copy some files over to a livecd, you can do it
during post nochroot.  If you do a search on the list archives, you'll
find details.<br>
<br>
Tim<br>
<br>
<br>
Pollux Su wrote:
<blockquote type="cite"><div><div></div><div>
  <div dir="ltr">Hi,I have some problems when I build a livecd.<br>
   Is there someone has experience in installing a tar file into
livecd?  Should I rebuild this tar file into a rpm? <br>
   If I just want to copy some files into the livecd I have built,how
to do this? unpack the osmin.img or squashfs.img? How can I do? <br>
   Need help!!!  Thanks for your time. Help,please!<br>
  <br>
Regards<br>
Pollux Su<br>
  </div>
  </div></div><pre><hr size="4" width="90%">
--
Fedora-livecd-list mailing list
<a href="mailto:Fedora-livecd-list@redhat.com" target="_blank">Fedora-livecd-list@redhat.com</a>
<a href="https://www.redhat.com/mailman/listinfo/fedora-livecd-list" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-livecd-list</a>
  </pre>
</blockquote>
<br>
<br>
<pre cols="72">-- <br>_________________________________<br>Tim Wood, CLP, RHCT<br>719.338.7484 (tel)<br><br>The Data Wranglers<br>Web, Database & more since    since 1994<br><a href="http://www.datawranglers.com" target="_blank">www.datawranglers.com</a>
</pre>
</div>

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