| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Copy over /etc/resolv.conf to /mnt/sysimage/etc/resolv.conf so that
%post scripts can succeed with DNS lookups.
|
|
|
|
|
|
| |
network.py was still using this directory. Ooops. The bug also
notes that /.dbus appears, but I cannot find anywhere in the
anaconda code where we create /.dbus.
|
|
|
|
|
|
| |
Let network.bringUp() work by calling network.write() with no
parameters. bringUp() is used to bring up networking during
installation.
|
|
|
|
|
| |
Tell NetworkManager not to touch anaconda configured interfaces when / is
on a network based device.
|
| |
|
|
|
|
|
| |
nm-system-settings only reads NM_CONTROLLED=no to know to ignore a
device. By default, it assumes control of all devices.
|
|
|
|
| |
If a host is unknown, socket.gethostbyaddr() gives us a 2-tuple.
|
|
|
|
|
|
| |
NetworkManager stopped providing the Hostname property (thanks!),
so get the IP address now and shove that through gethostbyaddr() and
see if it produces anything useful.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Similar to the change to writeEnabledNetInfo(). Write new files
somewhere else, then move them in place.
|
| |
|
|
|
|
|
| |
If the user supplies ksdevice=link, make sure we automatically
select the first network device found that has an active link.
|
|
|
|
|
|
| |
If you boot with boot.iso and pass ksdevice=DEVICE or
ksdevice=MACADDR, use that to automatically select the NIC to use
when we ask the user to bring up the network for installation.
|
| |
|
|
|
|
| |
Patch from Thomas Woerner <twoerner AT redhat DOT com>.
|
|
|
|
|
|
|
|
| |
Set up /etc/hosts correctly if the user enters a hostname or an FQDN
in the hostname screen in anaconda. This avoids name resolution
problems when starting sendmail.
Patch from Thomas Woerner <twoerner AT redhat DOT com>.
|
| |
|
|
|
|
|
|
|
|
|
| |
Bring back the isys.resetResolv() function to kick glibc and make it
reinitialize itself from /etc/resolv.conf again. We need to do this
to account for NetworkManager writing out a new resolv.conf.
In network.bringUp(), init i to 0 so we actually loop and poll
NetworkManager's state.
|
|
|
|
|
|
|
|
| |
After writing new networking settings, check the State property
from NetworkManager to see if we are connected. Return True if
we ever see state go to connected, False otherwise. Idea here
is that the interface code can pop up an error if we get False
from this function.
|
|
|
|
|
|
| |
At least for now, I see no need for firstnetdevice in the same way
before we started using NetworkManager. Might have to come back
for specific cases, but I don't think it's necessary.
|
|
|
|
|
|
| |
If instPath is empty, it means bringUp() has been called to kick out
new network configuration files for use during installation. Do not
try to write out udev.d files during installation.
|
|
|
|
|
|
|
| |
Changed bringDeviceUp() in network.py to bringUp() since it really
just writes out all new network configuration information and lets
NetworkManager take over from there. Correct the calls to this
method so we don't get tracebacks anymore.
|
|
|
|
|
|
|
|
| |
NetworkManager spawns dhclient, but provides nm-dhcp-client.action
as the dhclient-script process, which means we never get the hostname
set unless that program does it. NetworkManager retains all of the
information from dhclient, so we need to ask it for the hostname
and domain.
|
|
|
|
|
| |
Try to find what the default hostname should be if it's also
currently set to just 'localhost'.
|
|
|
|
|
|
| |
getDefaultHostname() returns a string to the caller (either the
iw or textw interface that contains the default hostname to
populate the UI with.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A number of changes:
* Make gateway and nameserver settings be per device
rather than global.
* Allow for both GATEWAY and IPV6_DEFAULTGW per device.
* Store nameservers as DNSx where x is an int starting
at 1 and incrementing. For functions that need to
write out nameserver information (kickstart files or
resolv.conf), read the nameservers from the device
settings hash table.
* Add a bringDeviceUp() function which will call the
write() method (with no instPath specified) to give us
a new ifcfg-DEVICE file with the latest settings so
nm-system-settings will see it and bring the device
up. This function may (actually, probably will) need
expansion to communicate/wait_for NetworkManager.
The bringDeviceUp() function replaces the old isys
dhcpNetDevice() and configNetDevice() functions.
|
|
|
|
|
|
|
|
|
| |
We always want to write:
NM_CONTROLLED=
to the ifcfg-DEVICE files regardless of the setting it has
during installation.
|
|
|
|
|
| |
Make sure we carry over the settings from the ifcfg-DEVICE
files and current device states from NetworkManager.
|
|
|
|
|
|
|
| |
Going with 255 for now even though this seems to be loosely
defined on Linux. POSIX specifies 255 as the max length, but
Linux doesn't seem to have a maximum. But LSB likes the POSIX
specification, so we'll stick with that.
|
| |
|
| |
|
|
|
|
|
| |
Wrap it all in try/except so we fail gracefully for now. This
should make CD & DVD installs work.
|
|
|
|
|
|
| |
Now using this variable anymore since we have NM. For now,
just calling hasActiveNetDev() since that checks to see we
are in NM_STATE_CONNECTED.
|
|
|
|
|
|
|
|
|
| |
The NetworkDevice class does not have has_key(), just call
get() and check to see if it's empty.
The NM_ and DBUS_ constants are currently in isys, so
reference them there. Ideally NetworkManager would be
offering a Python module that provides this sort of info.
|
|
|
|
|
|
| |
It's:
def anyUsingDHCP():
def anyUsingStatic():
|
|
|
|
|
|
| |
Rewrite network.py to read network settings from NetworkManager
and then ifcfg files. We still need these classes to support
network configuration settings via kickstart.
|
|
|
|
|
|
|
| |
Rewrote the hasActiveNetDev() and _anyUsing() function in
network.py to talk to NetworkManager via dbus. Modified
the calls in iw/network_gui.py and textw/network_text.py
that use these functions.
|
| |
|
|
|
|
| |
* po/sk.po: Typo fix.
|
|
|
|
|
|
|
|
|
|
|
| |
NetworkManager needs to know DNS information on a per interface
basis. Right now, we only prompt for global DNS information in
anaconda. Write those settings to each ifcfg file on the
target system. Will be updating the UI post-F-9 to better
gather the network information since we are using NM now (or at
least trying to get people to use it).
Also write NM_CONTROLLED= to each ifcfg line.
|
|
|
|
|
|
|
|
| |
Hostnames can start with digits. Removed inStrRange() since
it seemed a little redundant. Left hostname length check at
64 characters, but put a comment reminding me that POSIX
sets this limit to 255, so we should examine this in the
future again.
|
|
|
|
|
|
|
|
|
|
| |
Better fix for #408921. Using network.overrideDHCPhostname to set
the default behavior of requiring users to set a hostname. If the
user changed that to 'use DHCP', clicked Next, then clicked Back,
the network configuration screen would be back at manual for the
hostname. Fixed that by honoring overrideDHCPhostname. Also took
the opportunity to make overrideDHCPhostname a boolean since that's
how we are using it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Handle cases where the default gateway is an IPv6 address,
which has to be written as IPV6_DEFAULTGW rather than just
GATEWAY. The UI still needs work as it is possible to have
a default gateway for IPv4 and IPv6 concurrently, but we
are only prompting for one address.
This patch also removes the duplicate anyUsingDHCP() from
iw/network_gui.py and uses the one in network.py. It also
adds an anyUsingStatic() function. Some functions in
network.py have been changed to return True/False rather
than 1/0.
The network configuration screen in anaconda (not stage 1,
but in stage 2) will activate the gateway and DNS entry
fields now if any interface is set to have any static
configuration. Previously, it would only activate if all
devices were set to manual configuration for everything.
In addition, you can currently leave the fields blank,
which works well for situations such as IPv4 being DHCP
and IPv6 being static with no IPv6 gateway. The system
will get a default gateway for IPv4 using DHCP in that
case.
|
|
|
|
| |
Include KERNEL== in the udev rules anaconda writes out to fix things on PS3
|
|
|
|
|
|
|
|
| |
On the first run of the chooseNetworkInterface() function in
rescue mode, all network interfaces are shown as UNCONFIGURED
regardless of their current configuration. This also affects
text mode installations in the post-install configuration
steps.
|
|
|
|
| |
This reverts commit 062a1e5ebbf6dab03524a125c1ce34d3cea43fcb.
|
| |
|
|
|
|
|
|
|
|
| |
This patch adds support for a new network bootproto. The point of this is
to work around our basic assumption that no network line in the kickstart
file means you get dhcp. Some environments may want the assumption that
no network line means you get prompted for network configuration. That's
what this patch adds.
|