 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

30th October 2008, 11:01 PM
|
|
Registered User
|
|
Join Date: Dec 2007
Posts: 208

|
|
Including custom tools when creating LiveCD
I am creating images using LiveCD. I am using the following command
livecd-creator \
--config=/usr/share/livecd-tools/livecd-fedora-desktop.ks --fslabel=Fedora-LiveCD
I want to include some C++ custom tools in the image so that these tools are available when the LiveCD is used.
Any ideas on how to I can do this?
|

31st October 2008, 12:55 AM
|
|
Registered User
|
|
Join Date: May 2005
Location: Tragic City, Michigan USA
Posts: 1,605

|
|
You can edit the "livecd-fedora-desktop.ks" file and add your extras under the %packages heading also look at the "livecd-fedora-developer.ks" file and see how the packages are setup there or maybe just use that .ks file.
|

31st October 2008, 07:03 PM
|
|
Registered User
|
|
Join Date: Dec 2007
Posts: 208

|
|
|
Thanks for the reply. I have an additional questions for clarification. The tools that I want to add are not packages or located in a repository. They are executables I have in a local directory.
Does this matter? Do I just add them to the kickstart file or do I have to set up a repository and put them there?
|

31st October 2008, 11:55 PM
|
|
Registered User
|
|
Join Date: May 2005
Location: Tragic City, Michigan USA
Posts: 1,605

|
|
|
I have made livecds using the regular fedora repos some third party and local repo using rpms only so I can't be of much help on how to get your executables included. By "executables" would that be something used in Windows?
|

1st November 2008, 02:55 AM
|
|
Registered User
|
|
Join Date: Dec 2007
Posts: 208

|
|
|
No, by executables I am referring to the output of a successfully compilation of C++ program or project on Fedora 9 Linux.
And thanks for the support.
|

1st November 2008, 05:45 AM
|
|
Registered User
|
|
Join Date: Oct 2008
Posts: 299

|
|
If you mean binaries, assuming it uses squashfs, you would extract the squashfs, then edit the filesystem with the files you want to have, and where. Then you would recompress the filesystem.
Although this is a Ubuntu guide, it still applies to squashfs, and I've used it before.
EDIT: I just found another seemingly simpler one
Code:
# mount /some/file.sqfs /mnt -o loop
# rsync -aP /mnt/ /somewhere/big
# umount /mnt
(do edits to /somewhere/big)
# mksquashfs /somewhere/big /some/new-file.sqfs
__________________
Intel Core 2 Quad Q8400 CPU (2.66 GHz)
3gb RAM
500GB HD
Debian Lenny x86_64 & Windows 7 Ultimate x64
NVIDIA GeForce 9800 GTX+ Superclocked - Fattypack
Second(Server) PC:
512mb RAM
80gb TiVO HD(Lololol, took it from TiVO, old one broke)
PC-BSD 7.1.1 x86
Ossom router decked out with DD-WRT as a bridge providing net
Sign the Online Petition to bring Crysis 2 to Linux/Mac!
Last edited by NoEffex; 1st November 2008 at 05:47 AM.
|

4th November 2008, 08:02 PM
|
|
Registered User
|
|
Join Date: Dec 2007
Posts: 208

|
|
|
ok thanks for the support
|

4th November 2008, 08:14 PM
|
 |
Administrator
|
|
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 47
Posts: 3,848

|
|
|
Hi just a suggestion, but what i do usually is make any extra stuff like files and scripts i want to add into a rpm first, i found that was the easiest way for me.
|

4th November 2008, 11:58 PM
|
 |
Retired User
|
|
Join Date: Oct 2004
Location: London, UK
Posts: 4,999

|
|
you can add any custom files in the %post section of the kickstart file
http://forums.fedoraforum.org/showthread.php?t=202290
I've used this to include an entire (compressed) backup of my fedora install on a livedvd
|

21st November 2008, 09:19 PM
|
|
Registered User
|
|
Join Date: Dec 2007
Posts: 208

|
|
I have added the following line to the %post section of livecd-fedora-8-desktop.ks file
cp /home/metaylor/main $INSTALL_ROOT/fedora
I created a liveCD and booted using it. When I logged on as I did not see the file named main in the /home/fedora directory.
Should this have worked?
|

22nd November 2008, 12:44 AM
|
 |
Retired User
|
|
Join Date: Oct 2004
Location: London, UK
Posts: 4,999

|
|
Quote:
Originally Posted by metaylor
I have added the following line to the %post section of livecd-fedora-8-desktop.ks file
cp /home/metaylor/main $INSTALL_ROOT/fedora
I created a liveCD and booted using it. When I logged on as I did not see the file named main in the /home/fedora directory.
Should this have worked?
|
Yes, but it will be /fedora not /home/fedora
use $INSTALL_ROOT/home/fedora if the latter was the intention
|

24th November 2008, 11:17 PM
|
|
Registered User
|
|
Join Date: Dec 2007
Posts: 208

|
|
|
I tried both with no success. I have attached the kickstart file I used. Perhaps you can take a quick review of it.
|

8th December 2008, 06:24 PM
|
|
Registered User
|
|
Join Date: Dec 2007
Posts: 208

|
|
|
I was able to get this to work using the following commands
%post --nochroot
cp -r /home/metaylor/diagnostics $LIVE_ROOT/opt
cp -r /home/metaylor/diagnostics $INSTALL_ROOT/opt
%end
It appears that I misunderstood which $INSTALL_ROOT and $LIVE_ROOT.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 23:10 (Thursday, 23-05-2013)
|
|
 |
 |
 |
 |
|
|