[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
How to get the hostname in stage2 ?
- From: Alexander Todorov <atodorov redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: How to get the hostname in stage2 ?
- Date: Wed, 21 Jan 2009 13:35:06 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hello,
in a %post I need the hostname of the machine being installed. hostname and
python's os.uname() report localhost.localdomain while anaconda displays the
hostname that comes from the DHCP server in the GUI. How do I get the value
which comes from DHCP? Is it stored somewhere or my only possibility is to parse
/etc/sysconfig/network ?
Thanks,
Alexander.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org
iD8DBQFJdwhphmd3WOiFct4RClgFAKCL7lAmVSV7rp3FBfSSOtX6VFghdgCgs9T8
gBko4UNA5gGIDHZ7altQ0hA=
=Wc2A
-----END PGP SIGNATURE-----
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]