LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 04: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 04:33 AM.
 
Old 03-13-2011, 04:42 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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 04:43 AM. Reason: Forgot welcome word, sorry.
 
Old 03-13-2011, 05: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 05:03 AM.
 
  


Reply



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 03:07 PM
livecd-creator kickstart file question ewlabonte Fedora 1 02-16-2010 12:23 PM
home directory files gone, hidden files remain Grasshopper Linux - Security 12 04-10-2005 08:23 PM
Kickstart files put on http server directory ? Gates1026 Linux - General 0 01-27-2004 10:05 AM
Sharing files not in Home directory tomsa Linux - Networking 0 07-22-2003 03:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration