Pollux Su wrote:
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.
Tim
hi tim:
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.
in your own config/kickstart, you can add a section like the following
(note, you can just add this, as there can be multiple of these %post
sections)
%post --nochroot
mkdir $INSTALL_ROOT/usr/share/extramedia
cp /home/mdickson/some.mpeg \
$INSTALL_ROOT/usr/share/extramedia/
mkdir $LIVE_ROOT/momedia
cp /home/mdickson/someother.mpeg \
$LIVE_ROOT/momedia/
%end
Note, the first part, will add the file to the root filesystem that is
visible when you boot up the livecd/usb. And as a result will be
compressed during the build process (but obviously not well, as mpeg is
already compressed as much as it can).
The second part (using LIVE_ROOT instead of INSTALL_ROOT), will add the
file to the cdrom filesysem, uncompressed. As such, the user could for
instance easily see the file if they dropped the cdrom into a windows
system (on the cdrom, under the top level folder 'momedia').
On Thu, Jul 24, 2008 at 11:52 AM, Tim Wood <tim.wood(a)datawranglers.com
<mailto:tim.wood@datawranglers.com>> wrote:
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.
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.
Tim
Pollux Su wrote:
> Hi,I have some problems when I build a livecd.
> Is there someone has experience in installing a tar file into
> livecd? Should I rebuild this tar file into a rpm?
> 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?
> Need help!!! Thanks for your time. Help,please!
>
> Regards
> Pollux Su
> ------------------------------------------------------------------------
>
> --
> Fedora-livecd-list mailing list
> Fedora-livecd-list(a)redhat.com <mailto:Fedora-livecd-list@redhat.com>
>
https://www.redhat.com/mailman/listinfo/fedora-livecd-list
>
--
_________________________________
Tim Wood, CLP, RHCT
719.338.7484 (tel)
The Data Wranglers
Web, Database & more since since 1994
www.datawranglers.com <
http://www.datawranglers.com>
--
Fedora-livecd-list mailing list
Fedora-livecd-list(a)redhat.com <mailto:Fedora-livecd-list@redhat.com>
https://www.redhat.com/mailman/listinfo/fedora-livecd-list
------------------------------------------------------------------------
--
Fedora-livecd-list mailing list
Fedora-livecd-list(a)redhat.com
https://www.redhat.com/mailman/listinfo/fedora-livecd-list
--
_________________________________
Tim Wood, CLP, RHCT
719.338.7484 (tel)
The Data Wranglers
Web, Database & more since since 1994