LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 04-27-2010, 11:35 AM   #1
the student
LQ Newbie
 
Registered: Mar 2010
Posts: 17

Rep: Reputation: 0
a problem with a simple scripts in my %pre section of Centos kickstart vmware


Please I'm trying to get a hang of how scripts are put together in the %pre section

I have writing a simple script but it doesn't seem to work. Can someone please tell me what I'm doing wrong?

Thanks in advance


%pre

#!/bin/sh
x=`/sbin/ifconfig`
Cat $x > mnt/source/root/internal.txt
 
Old 04-27-2010, 08:49 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Try '/mnt/source/root/internal.txt'
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
centos kickstart problem xiutuo Linux - General 10 05-12-2010 01:07 AM
kickstart - asking for configuration in the %pre section johnnymta Linux - Server 7 08-18-2009 03:22 AM
problem with kickstart post section Hairman Red Hat 2 05-14-2007 01:35 PM
Using parted in the pre section of my kickstart install davidr Linux - Software 0 12-09-2004 06:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

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