LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 03-28-2008, 10:21 PM   #1
jakev383
QmailToaster Developer
 
Registered: Dec 2005
Location: Burlington, NC
Distribution: CentOS, Voyage, Debian, Fedora
Posts: 220

Rep: Reputation: 31
Copy file from install CD during kickstart woes


I've had a thread going on over at centos.org:
http://www.centos.org/modules/newbb/...forumpost45526

Basically I've fixed stage2.img for the anaconda bug (or so I hope), but am still unable to copy my files to the new installation from the CD during the kickstart.

I've tried using:

%post
mkdir -p $INSTALL_ROOT/var/mystuff
touch $INSTALL_ROOT/var/mystuff/test
cp -R /mnt/source/me.tar.gz /mnt/sysimage/var/mystuff/
cp me.tar.gz $INSTALL_ROOT/var/mystuff/
cd $INSTALL_ROOT/var/mystuff
tar xzvf /mnt/source/me.tar.gz

(yes, I tried copying the file twice - using different paths while basically shooting in the dark). In tty3 during the kickstart it says it cannot find me.tar.gz 3 times (two for cp, and 1 for tar). I end up with a /var/mystuff directory and a /var/mystuff/test file in the final system but I cannot figure out how to get my file there (me.tar.gz).

If I use %post --nochroot then it can find the me.tar.gz file (and even unpacks it) but the files are not present in the final system (guess it's uncompressing them in the scratch).

Can anyone shed any light on this?
Thanks in advance.
 
Old 03-29-2008, 09:26 AM   #2
jakev383
QmailToaster Developer
 
Registered: Dec 2005
Location: Burlington, NC
Distribution: CentOS, Voyage, Debian, Fedora
Posts: 220

Original Poster
Rep: Reputation: 31
For those that are interested, I solved the problem and will post the solution in a little bit. I'm waiting on the stage2.img file to upload to my webserver before I post the instructions and a link to the fixed file. I'll do that later today.
 
Old 03-29-2008, 10:04 AM   #3
jakev383
QmailToaster Developer
 
Registered: Dec 2005
Location: Burlington, NC
Distribution: CentOS, Voyage, Debian, Fedora
Posts: 220

Original Poster
Rep: Reputation: 31
Okay, my kid's asleep so I have some time to post this:

Here's the link for the patched stage2.img file:
http://v2gnu.com/filemgmt/singlefile.php?lid=26

In my kickstart, here's what I have that works (it creates a dir called /var/mystuff and then untar/gzip's the archive file "me.tar.gz" from the installation CD to this directory):

%post --nochroot

mkdir /mnt/sysimage/var/mystuff
cd /mnt/sysimage/var/mystuff
tar xzvf /mnt/source/me.tar.gz


Easy enough once anaconda is patched. Enjoy!
 
  


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
regarding kickstart file gimmereeson Linux - Server 1 01-14-2007 07:43 AM
RHEL 4/VMWare/Kickstart initrd woes... PenguinPwrdBox Linux - Software 1 11-24-2006 10:48 AM
missing kickstart file prince2242002 Red Hat 1 10-02-2006 12:28 PM
Fresh Suse 9.1 trying to install VMWare 4.5.1 - Unable to copy the source file DeathCab for 2D Linux - Software 2 10-14-2004 06:24 PM
Access CDROM for file copy at end of Kickstart install of MDK 9.0 Burke Mandriva 1 08-28-2003 01:58 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

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