Re: static network configuration ask

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

 



I see what you mean now.   I know what to do with this information at this point.  Can I do the same thing in %pre?

Kit

On 8/30/07, Pablo Iranzo Gómez <Pablo.Iranzo@xxxxx> wrote:
        Hi

On Thu, 30 Aug 2007, 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.

        If you put on commandline ip= 123.123.123.123
netmask=234.234.234.234 hostname=host123

        On %post you could do:

        HOST=`cat /proc/cmdline|tr " " "\n"|grep hostname|cut -d "=" -f  2`

        And when creating the custom /etc/sysconfig/network, fill in the
value from $HOST

        Regards
        Pablo

_______________________________________________
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