LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 07-03-2010, 06:15 AM   #1
godzillarama
LQ Newbie
 
Registered: Dec 2008
Posts: 17

Rep: Reputation: 0
livecd-creator, kickstart files and adding to the CD layout


Is there a way to use the kickstart file to modify or add to the CD layout before the ISO is generated by livecd-creator? I would like to replace the splash.png and isolinux.cfg files in the CD layout by adding scripted commands in kickstart file. Even if I could pause the livecd-creator script at the right point, so that I could move the files manually, would be acceptable. Thanks in advance for any assistance.

Last edited by godzillarama; 07-03-2010 at 06:16 AM.
 
Old 07-03-2010, 03:33 PM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 475

Rep: Reputation: 73
You should be able to use the variables $INSTALL_ROOT and $LIVE_ROOT exposed during the process in kickstart's post --nochroot to script what you want into the LiveCD before it is compressed and written as an ISO.

Example:
Code:
...

%post --nochroot
tar xzf /home/user/my-livecd-configs.tgz -C $INSTALL_ROOT/

cat >> $LIVE_ROOT/isolinux/isolinux.cfg << EOF_isolinux
label unique
  menu label My Unique Addition
  kernel memdisk
  append initrd=my-custom-hdd.img
EOF_isolinux

...
 
Old 07-04-2010, 10:20 AM   #3
godzillarama
LQ Newbie
 
Registered: Dec 2008
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks -- I've tried your approach and I evidently didn't do it properly, or it's incorrect. Isn't the variable $INSTALL_ROOT the root of the installed (host) system, and isn't the variable $LIVE_ROOT the root of the file system once the CD is running the live OS?

Spinning a Fedora Linux Live CD (Adding Files section)

I didn't think either of those variables were the root of the CD itself.

If I'm using a Fedora as installed to the hard drive of my computer, and if I insert the Fedora Live CD, I see these folders on the CD:

/EFI
/isolinux
/LiveOS

How do I get files into those folders during the livecd-creator/kickstart process? For that matter, if I want to create additional folders on the CD, how would that be done? Perhaps I'm being dense. If so, my apologies.
 
Old 07-05-2010, 10:04 AM   #4
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 475

Rep: Reputation: 73
Both of those are variables for the LiveCD environment.

$INSTALL_ROOT is for the root of the filesystem of the LiveCD that will eventually be compressed. This is where all of the packages get installed during the build process. Use this if you want the files on the LiveCD OS filesystem.

$LIVE_ROOT is the root of the CD. Use this if you want the files available without having to boot to the LiveCD or uncompressing the filesystem on the CD. For example, you would copy files to $LIVE_ROOT if you wanted to be able to put the CD in a running system and see them. As in your post above, /EFI, /isolinux, /LiveOS.

There is no variable for the root of the installed (host) system. You retain access to it by using the %post --nochroot

To start simply, you could attempt something like:
Code:
...
%post --nochroot

touch $INSTALL_ROOT/this-is-install-root
touch $LIVE_ROOT/this-is-live-root

...
 
Old 07-06-2010, 03:07 PM   #5
godzillarama
LQ Newbie
 
Registered: Dec 2008
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks, rayfordj. You are correct. Works great.
 
  


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
livecd-creator kickstart file question ewlabonte Fedora 1 02-16-2010 12:23 PM
livecd-creator prob unixshell101 Linux - Newbie 1 01-03-2009 05:41 PM
LiveCD with dvorak keyboard layout borisd Linux From Scratch 2 04-03-2008 04:04 PM
A question about livecd-creator pobbz Fedora 0 02-25-2008 06:10 AM
adding a user during kickstart installation triley Linux - General 1 12-19-2005 09:59 AM


All times are GMT -5. The time now is 08:27 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