I don't think #EOF will work, EOF has to be the first thing on the line. Also, *I* would put the comments before/after writing the file, not in the file itself: # Now write them to file: cat << EOF >> /tmp/networkinfo network --device eth0 --bootproto static --ip $ESXIP --netmask 255.255.255.0 EOF -----Original Message----- From: kickstart-list-bounces@xxxxxxxxxx [mailto:kickstart-list-bounces@xxxxxxxxxx] On Behalf Of Gabrie Sent: Wednesday, July 18, 2007 3:03 PM To: Discussion list about Kickstart Subject: Re: Using variables in kickstart file Ok... let me give it a try. commandline: boot: yadda yadda yadda ESXIP=10.0.0.20 ESXVMOTION=10.0.2.20 Kickstart.cfg: # Regional Settings keyboard us lang en_US langsupport --default en_US timezone America/New_York # Installatition settings skipx mouse none firewall --disabled # Unencrypted root password: password rootpw --iscrypted $1$5a17$In5zYe6YsCty76AycpGaf/ reboot install url --url http://192.168.3.150/esx/esx301/ # network configuration %include /tmp/networkinfo # Partitioning clearpart --all --drives=cciss/c0d0 --initlabel part /boot --fstype ext3 --size 250 --ondisk=cciss/c0d0 part swap --size 1600 --ondisk=cciss/c0d0 part / --fstype ext3 --size 5120 --ondisk=cciss/c0d0 part /var --fstype ext3 --size 2048 --ondisk=cciss/c0d0 %pre # Read ESXIP and ESXVMOTION from commandline ESXIP=`awk -F "ESXIP=" '{print $2}' /proc/cmdline | cut -d " " -f 1` ESXVMOTION=`awk -F "ESXVMOTION=" '{print $2}' /proc/cmdline | cut -d " " -f 1` # Now write them to file: cat << EOF >> /tmp/networkinfo # Network Configurations network --device eth0 --bootproto static --ip $ESXIP --netmask 255.255.255.0 #EOF Any good? Gabrie _______________________________________________ Kickstart-list mailing list Kickstart-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/kickstart-list