Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers 2

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
$LIVE_ROOT=/my/root
mkdir $LIVE_ROOT
cp -ar /tmp/files2copy $LIVE_ROOT/files
%end
share|improve this answer
    
Great. So, now you can accept your answer, right? –  hunter2 Jul 1 '13 at 10:16
add comment

The Fedora project has extensive documentation on creating custom LiveCDs.

share|improve this answer
add comment

Your Answer

 
discard

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.