[CentOS] %include command in Kickstart
Pierre Bourgin
pierre.bourgin at arteris.com
Thu Feb 15 07:28:13 UTC 2007
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
More information about the CentOS
mailing list