Re: %include command in Kickstart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Al Sparks a écrit :
I have a kickstart file that basically runs the following:

install nfs --server=nfserver.blah.local --dir=/vol/updts/staging/CentOS_4.3 #include %some_file.cfg

I want to be able to access or "include" a file on the nfs share not the
local CDROM I've got this on. How do I do that?

the correct syntax is '%include', not '#include' and the NFS server must be given with its IP address, not the DNS name:

install nfs --server=1.2.3.4 --dir=/vol/updts/staging/CentOS_4.3
%include /path/to/file

Once the installation system is running, the mount point for the used NFS share by directive "install" is /mnt/source .

So if you want to include file 1.2.3.4:/vol/updts/staging/CentOS_4.3/ks/foo.ks, use:

install nfs --server=1.2.3.4 --dir=/vol/updts/staging/CentOS_4.3
%include /mnt/source/ks/foo.ks

my $ 0.02

Pierre Bourgin
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux