LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 03-13-2011, 05:31 AM   #1
Bastian123
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
livecd-creator, kickstart files, adding files to /home directory. I.E. software dedicated livecd


Hello,

I want to customize my livecd ISO image of fedora based on kickstart by adding my program to it. (I just want to make livecd based on fedora to distribute my program in dedicated live distro)
However the program is in sourcecode.
I would like to add it to the newly created ISO in compiled form ie excutable.
Now I know that I can add the required packages to my Live image by adding them in package section of kickstart.
Questions are:
1. How can I put the source code of my program in the /hoe/liveuser/myprogram?
2. how can I commit the followong:
Code:
ln -s /usr/bin/ccache gcc
ln -s /usr/bin/ccache g++
[me@localhost projectSrcfolder]$cd build 
ccmake ..
make
make install
in my live system kickstart on source code ?
3. Is it possible at all to do it in fedora with kickstart or shall use maby other procedure or distro ?

Last edited by Bastian123; 03-13-2011 at 05:33 AM.
 
Old 03-13-2011, 05:42 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Hello and Welcome to LinuxQuestions,

You can run your commands in the %post section of kickstart but you'll need to make sure that in your installation from CD or your live system you have a fully functional build environment. If you don't it'll be exiting with errors. I think it's a better idea, if you have a build environment for Fedore already set up, to compile your software and include it as RPM in your cd and install it from there as normal software. For some more information about kickstart you can consult the RedHat documentation on kickstart and kickstart options.

Kind regards,

Eric

Last edited by EricTRA; 03-13-2011 at 05:43 AM. Reason: Forgot welcome word, sorry.
 
Old 03-13-2011, 06:02 AM   #3
Bastian123
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Hello & hello LQ too

Well off course I have studied the docs.
Problem 1. The first problem is the following kickstart doesn't seem to work for me.
myKickstart.ks:
Code:
...
<list of packages required for compilation>
%post
#create folder for my source code
cat >> /etc/rc.d/init.d/livesys << EOF

mkdir /home/liveuser/myApp_src
chown -R liveuser.liveuser /home/liveuser/myApp_src
EOF
%end
%post --nochroot
cp -rf /home/bastian/myAppSrc/* $INSTALL_ROOT/home/liveuser/myApp_src
%end
i.e. after booting the live there is nothing in the /home/liveuser/myApp_src.
Problem 2.
I wasn't considering creating RPM as I think it probably is complicated to create such for a program that requires dependencies.The program compiles fine on host system but creating of an RPM would mean i have to make a local yum repo and add it to kickstart and it sound kind of difficult

Last edited by Bastian123; 03-13-2011 at 06:03 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] livecd-creator, kickstart files and adding to the CD layout godzillarama Fedora 4 07-06-2010 04:07 PM
livecd-creator kickstart file question ewlabonte Fedora 1 02-16-2010 01:23 PM
home directory files gone, hidden files remain Grasshopper Linux - Security 12 04-10-2005 09:23 PM
Kickstart files put on http server directory ? Gates1026 Linux - General 0 01-27-2004 11:05 AM
Sharing files not in Home directory tomsa Linux - Networking 0 07-22-2003 04:22 PM


All times are GMT -5. The time now is 12:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration