LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-04-2016, 01:51 PM   #1
rolly4444
Member
 
Registered: Sep 2012
Posts: 46

Rep: Reputation: Disabled
Kick Start %post problem


i configured a kick start file to install a RHEL 6.5 then copy a tar.gz file and extract it for me in /mnt/sysimage/root for me.

the first problem is that the file is being coped with different name like ? or with no name just white space.
the second problem that i use
Code:
tar -xzvf *.tar.gz
command but it can't be executed.

can anyone tell me what is the problem

this is the %post section from the ks.cfg file:

Code:
%post 

cp -f /mnt/source/myfile.tar.gz /root
tar -xzvf /mnt/source/myfile.tar.gz

%end

Last edited by rolly4444; 12-05-2016 at 11:06 AM.
 
Old 12-05-2016, 08:20 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Use [ CODE ] tags to display your code correctly. The Bright Green text with a blue background is literally invisible.

http://imgur.com/a/iS3Eu
 
Old 12-05-2016, 11:07 AM   #3
rolly4444
Member
 
Registered: Sep 2012
Posts: 46

Original Poster
Rep: Reputation: Disabled
sorry for that
I've modified it
 
Old 12-05-2016, 11:07 AM   #4
rolly4444
Member
 
Registered: Sep 2012
Posts: 46

Original Poster
Rep: Reputation: Disabled
sorry for that
I've modified it.
 
Old 12-05-2016, 11:13 AM   #5
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
The way you are explaining it, this is what you would want I would think.

Code:
%post 

cp -f /mnt/source/myfile.tar.gz /root
tar -xf /root/myfile.tar.gz -C /root

%end
 
1 members found this post helpful.
  


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
Ubuntu 14.04 kick start sp_vijay Linux - Newbie 1 06-06-2015 12:42 AM
Kick Start problem. (sed can't read /home/centos/live...) busi386 Linux - Software 11 12-04-2012 07:18 AM
Kick-start File Problem Fedora 9 KinnowGrower Linux - Desktop 1 11-02-2008 03:26 PM
regarding kick start rohit_67066 Linux - Newbie 2 10-05-2007 11:27 PM
Kick Start to my Laptop DJOmegaRush Linux - Laptop and Netbook 0 02-09-2005 11:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:31 AM.

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