<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Pollux Su wrote:<br>
<br>
hehehe... it looks like you found a previous post I did on this that I
was too tired to redo :-) Glad to be of help.<br>
<br>
Tim<br>
<br>
<blockquote
cite="mid:780ddc050807232146u3aec4eafg2da0a4a4d6b479b0@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true" 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 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 moz-do-not-send="true" href="mailto:Fedora-livecd-list@redhat.com"
target="_blank">Fedora-livecd-list@redhat.com</a>
<a moz-do-not-send="true"
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">--
_________________________________
Tim Wood, CLP, RHCT
719.338.7484 (tel)
The Data Wranglers
Web, Database & more since since 1994
<a moz-do-not-send="true" href="http://www.datawranglers.com"
target="_blank">www.datawranglers.com</a>
</pre>
</div>
<br>
--<br>
Fedora-livecd-list mailing list<br>
<a moz-do-not-send="true"
href="mailto:Fedora-livecd-list@redhat.com" target="_blank">Fedora-livecd-list@redhat.com</a><br>
<a moz-do-not-send="true"
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>
<pre wrap="">
<hr size="4" width="90%">
--
Fedora-livecd-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Fedora-livecd-list@redhat.com">Fedora-livecd-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/fedora-livecd-list">https://www.redhat.com/mailman/listinfo/fedora-livecd-list</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
_________________________________
Tim Wood, CLP, RHCT
719.338.7484 (tel)
The Data Wranglers
Web, Database & more since since 1994
<a class="moz-txt-link-abbreviated" href="http://www.datawranglers.com">www.datawranglers.com</a>
</pre>
</body>
</html>