Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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?

share|improve this question
up vote 0 down vote accepted

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

%post --nochroot
mkdir $LIVE_ROOT
cp -ar /tmp/files2copy $LIVE_ROOT/files
share|improve this answer
Great. So, now you can accept your answer, right? – hunter2 Jul 1 '13 at 10:16

The Fedora project has extensive documentation on creating custom LiveCDs.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.