On Monday 23 May 2011 11:51:09 Matthew Darcy wrote:
> 1.) what sets the hostname in the kickstart file, how can I force it to be
> spacewalk01.domain.com rather than spacewalk01
You can force it by setting 'server' option in /etc/cobbler/settings (IIRC).
> 2.) using the kickstart network options can I set the default dns search
> names?
It appears there's no way to do that (at least in EL5). What I do is I set
IP, netmask, gateway, nameservers and hostname using the network line in ks,
and I set search and domain in resolv.conf with this in a %pre script:
echo domain $name_servers_search[0] >> /etc/resolv.conf
echo search $str.join(' ', $name_servers_search) >> /etc/resolv.conf
(note I use $name_servers_search variable here which I set using cobbler)
I also have something similar in a %post script as I don't think
/etc/resolv.conf is getting copied into new sysroot (had some problems with
that).
--
Michael Gliwinski
Henderson Group Information Services
9-11 Hightown Avenue, Newtownabby, BT36 4RT
Phone: 028 9034 3319
**********************************************************************************************
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee and access to the email by anyone else
is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or
any action taken or omitted to be taken in reliance on it, is prohibited and
may be unlawful.
When addressed to our clients, any opinions or advice contained in this e-mail
are subject to the terms and conditions expressed in the governing client
engagement leter or contract.
If you have received this email in error please notify
[email protected]
John Henderson (Holdings) Ltd
Registered office: 9 Hightown Avenue, Mallusk, County Antrim, Northern Ireland,
BT36 4RT.
Registered in Northern Ireland
Registration Number NI010588
Vat No.: 814 6399 12
*********************************************************************************
_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list