LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kick Start %post problem (https://www.linuxquestions.org/questions/linux-newbie-8/kick-start-post-problem-4175594784/)

rolly4444 12-04-2016 01:51 PM

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


szboardstretcher 12-05-2016 08:20 AM

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

http://imgur.com/a/iS3Eu

rolly4444 12-05-2016 11:07 AM

sorry for that
I've modified it

rolly4444 12-05-2016 11:07 AM

sorry for that
I've modified it.

szboardstretcher 12-05-2016 11:13 AM

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



All times are GMT -5. The time now is 11:33 AM.