Re: static network configuration ask

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

 



You are correct.  I have bootproto=static.    At this point, this is what I have:

text
install
key dfsdfgsdggsdg
lang en_US.UTF-8
langsupport --default en_US.UTF-8 en_US.UTF-8
keyboard us
mouse genericwheelps/2 --device psaux
skipx
nfs --server 192.168.49.26 --dir /vol/vol1/vmimages/kickstart/RH5-server-i386
network --bootproto static --device eth0 --nameserver 192.168.49.107 --netmask 255.255.255.0
rootpw --iscrypted $1$rGjAQdLQm$LNgsdfsVF/TjfszJB6T
firewall --disabled
authconfig --enableshadow --enableldap --enableldapauth --ldapserver ldaps.ourdomain.com --ldapbasedn dc=ourdomain,dc=com
selinux --disabled
timezone --utc America/Chicago
bootloader --location=mbr
repo --name=repo --baseurl= http://repo.ourdomain.com/linux/4/$ARCH  ###  This part is still broken.
reboot

%packages
%include /mnt/config/includes/RHEL5_packages
firstboot

%pre
# nfs mount the config directory so that we can use %include
# in this file to make things cleaner.
mkdir /mnt/config
mount -t nfs 192.168.49.26:/vol/vol1/vmimages/kickstart/configs /mnt/config

%post --nochroot
cp /mnt/config/includes/* /mnt/sysimage/root
chmod +x /mnt/sysimage/root/system_setup.sh

#system_setup.sh used to live here in %post and I will be moving it back in with a %include rather than copying the file to the host if that will #work.   For some reason, my hostname still does not get set up in /etc/sysconfig/network even though I pass hostname, ip, and

Kit




On 8/30/07, Ed Brown <ebrown@xxxxxxxx> wrote:
It does the reverse lookup  even before it gets the kickstart file,
and flashes a screen telling you it's doing that, though often that
goes by so fast you don't see it.  You can also watch for it on alt-F3
(or 4?) though.  I don't know when it writes /etc/sysconfig/network,
but it's there in %post without my doing anything.  You do have have
the 'network --bootproto=static' line in the kickstart file?

-ed


Kit Stube wrote:
> Come to think of it, I have seen the behavior where the system appears to
> have done a reverse lookup of its self and set it's own hostname.  :-)
> That's perfect.  At what point during the install process does it do that?
>
> Thanks again for all of the great info everyone.
>
> Kit
>
>
> On 8/30/07, Ed Brown <ebrown@xxxxxxxx> wrote:
>> To say this another way, it is not necessary to enter hostname as a
>> boot parameter, assuming the ip address can be resolved.
>>
>> Ed Brown wrote:
>>> hostname won't be set during the %post scriptlet without some help, but
>>> it should be set on reboot just fine.  To set it for the sake of
>>> commands in %post (for example, if you need to run cfengine):
>>>
>>> hostname `grep HOSTNAME /etc/sysconfig/network |cut -d'=' -f2`
>>>
>>> But as the above implies, it should already be configured on reboot.
>>>
>>> -Ed
>>>
>>>
>>>
>>> Kit Stube wrote:
>>>> That worked for the most part. Ed,  your a genious!
>>>>
>>>> The only problem now is that it didn't set the hostname.  Is there
>>>> some way
>>>> to use something like $hostname in post so I can set all that up?
>>>> Perhaps that was what Pablo was trying to tell me?    I don't
>>>> understand how
>>>> to process /proc/commandline.    Does anyone have an example?
>>>> I would be greatly appreciative.
>>>>
>>>> Kit
>>>>
>>>>
>>>>
>>>> On 8/30/07, Ed Brown <ebrown@xxxxxxxx> wrote:
>>>>>> boot: ip=blah gateway=blah netmask=blah dns=blah
>>>>> This is not quite complete.  And actually, we make a custom boot cd,
>>>>> with multiple targets that contain the common parameters, so all
>>>>> that's needed at the boot prompt is target, ip and gateway.  You'll
>>>>> probably need at least this:
>>>>>
>>>>> boot: linux ks=http://url_of_kickstart_file ip=... gateway=...
>>>>> netmask=... dns=...
>>>>>
>>>>> -Ed
>>>>>
>>>>> _______________________________________________
>>>>> Kickstart-list mailing list
>>>>> Kickstart-list@xxxxxxxxxx
>>>>> https://www.redhat.com/mailman/listinfo/kickstart-list
>>>>>
>>>>
>>>>
>> ------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Kickstart-list mailing list
>>>> Kickstart-list@xxxxxxxxxx
>>>> https://www.redhat.com/mailman/listinfo/kickstart-list
>>> _______________________________________________
>>> Kickstart-list mailing list
>>> Kickstart-list@xxxxxxxxxx
>>> https://www.redhat.com/mailman/listinfo/kickstart-list
>> _______________________________________________
>> Kickstart-list mailing list
>> Kickstart-list@xxxxxxxxxx
>> https://www.redhat.com/mailman/listinfo/kickstart-list
>>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/kickstart-list

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux