LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 06-02-2008, 04:37 PM   #1
tate1615
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Rep: Reputation: 0
Red Hat Enterprise Linux 5 RHEL5 kickstart problem with post install


Hi,
I've had some success with installing RHEL5 unattended using a kickstart file located on the installation DVD.
The only thing that isn't working like it should is that I can't get commands located in the post-install section to work at all.

Here's the line I'm using to try and test functionality--fails:

%post --nochroot cp /post_files/booya.sh /mnt/sysimage/etc/

Here I'm trying to copy booya.sh from a directory on the installation DVD named post_files to the /etc/ directory on the fresh system.
After it installs...I can't find the booya.sh.

--I modeled my option above after the example in the RHEL kickstart docs: (can't add link b/c it's my 1st post)

Goals for post-install section:
1) Copy a directory from the DVD that I put in the iso filled with configuration files.
2) Run a script transferred along in said directory that copies the config files etc.

Any ideas would be most appreciated.
Thanks,
 
Old 04-30-2010, 03:38 AM   #2
prpednek
LQ Newbie
 
Registered: Mar 2010
Location: India
Distribution: RHEL
Posts: 22

Rep: Reputation: 16
Quote:
Originally Posted by tate1615 View Post
Hi,
I've had some success with installing RHEL5 unattended using a kickstart file located on the installation DVD.
The only thing that isn't working like it should is that I can't get commands located in the post-install section to work at all.

Here's the line I'm using to try and test functionality--fails:

%post --nochroot cp /post_files/booya.sh /mnt/sysimage/etc/

Here I'm trying to copy booya.sh from a directory on the installation DVD named post_files to the /etc/ directory on the fresh system.
After it installs...I can't find the booya.sh.

--I modeled my option above after the example in the RHEL kickstart docs: (can't add link b/c it's my 1st post)

Goals for post-install section:
1) Copy a directory from the DVD that I put in the iso filled with configuration files.
2) Run a script transferred along in said directory that copies the config files etc.

Any ideas would be most appreciated.
Thanks,
Your problem seems reasonable, but you should first copy the files from the DVD in the %pre section and then again in the post section onto the filesystem at /mnt/sysimage/


Something like :

%pre
mkdir -p /testing/
# Copy config file only
cp /mnt/source/post_files/booya.sh /testing/

OR
# To copy all files in your created directory
cp /mnt/source/post_files/* /testing/

%post --nochroot
cp /testing/booya.sh /mnt/sysimage/etc/


Thus you can now find your file in the /etc directory after first reboot.


Hope this helps.
 
  


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
Kickstart Configurator Problem - Red Hat Enterprise Linux server 5 sj_johney Linux - Server 7 04-22-2012 10:47 AM
How to Install Red Hat Linux via PXE and Kickstart, sachinbhagat Red Hat 5 07-18-2008 08:14 AM
Problem with Red Hat Enterprise Linux 3 silvertype Red Hat 4 02-12-2007 09:04 AM
Red Hat Enterprise Linux 4 AS install mossless Linux - Enterprise 8 03-04-2006 12:12 PM
Red hat linux enterprise...booting problem raj_deep2k1 Linux - General 4 01-27-2006 11:10 PM


All times are GMT -5. The time now is 04:48 PM.

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