1

I'm working on distributing a version of Fedora to our internal development team using Live CD. There are certain files I would like to copy to the live cd that are not:

  1. part of an RPM or
  2. going to live in the user's home directory.

Based on samples I've seen I'm trying something like the following in the post section of my kickstart file, to no avail.

%post --nochroot
cp -ar /tmp/files2copy $LIVE_ROOT/files
%end

Where is $LIVE_ROOT? Does it need to be exported earlier in the *.ks file? Do I need to create the files directory using mkdir?

2 Answers 2

1

In this case, my problem was simply that the directory didn't exist. This did the trick.

%post --nochroot
$LIVE_ROOT=/my/root
mkdir $LIVE_ROOT
cp -ar /tmp/files2copy $LIVE_ROOT/files
%end
1
-1

The Fedora project has extensive documentation on creating custom LiveCDs.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .