summaryrefslogtreecommitdiffstats
path: root/loader/net.c
Commit message (Collapse)AuthorAgeFilesLines
* Completely remove loader/Will Woods2012-02-151-2466/+0
| | | | IT IS ACCOMPLISHED.
* Support prefix length in ipv6= cmdline option (#679108)Radek Vykydal2011-11-011-0/+16
| | | | | | e.g. ipv6=2001:aaaa::1/48 Related: rhbz#679108
* Set default BOOTPROTO=dhcp for network service (minimal installs) (#741199)Radek Vykydal2011-10-061-0/+2
| | | | | NM assumes this default but network service (initscripts) won't start the device without the BOOTPROTO value set.
* Don't raise Retry dialog in loader kickstart networking (#722276)Radek Vykydal2011-08-041-4/+1
| | | | | | | | | Instead, fail silently as in RHEL 5 and RHEL 6.0. Depending on whether the network is up, user can be asked for networking later in UI step. Offer the Retry dialog only in the UI step where it actually works (don't for early networking, when fetching ks, or in kicktart). Resolves: rhbz#722276
* Honor linksleep boot option (#713991)Radek Vykydal2011-08-041-3/+4
| | | | | | As in rhel 5. Resolves: rhbz#713991
* remove key-files writing in loader (no more needed, NM does it itself)Vratislav Podzimek2011-07-181-50/+0
|
* do not write default ifcfg files for wireless devicesVratislav Podzimek2011-07-181-3/+3
|
* be more defensive -- check values for nonsensesVratislav Podzimek2011-06-221-15/+43
|
* enable netmask setting for wireless connectionsVratislav Podzimek2011-06-221-8/+15
|
* enable dns settings of wireless connectionVratislav Podzimek2011-06-221-6/+23
|
* enable gateway settings of wireless connectionVratislav Podzimek2011-06-221-8/+11
|
* enable establishing wpa connection in "early networking"Vratislav Podzimek2011-06-221-1/+282
|
* Remove duplicate code.Radek Vykydal2011-06-091-18/+0
| | | | The else branches are doing exactly the same as the if branches.
* HOSTNAME is not per-device/ifcfg setting.Radek Vykydal2011-05-191-2/+2
|
* Do not write out /etc/sysconfig/network in stage 1.Radek Vykydal2011-05-191-50/+0
| | | | | | | | | These system-wide setting were written for activated device/ifcfg file, which does not make sense now when we allow to activate more than one device in stage 1. We will write its NETWORKING, IPV6_NETWORKING, GATEWAY, IPV6_DEFAULTGW, HOSTNAME in stage2, or even let NM do the job (there is new method SaveHostname in NM dbus API 9.0).
* Revert "Don't write HWADDR into ifcfg files (#690589)"Radek Vykydal2011-04-181-0/+4
| | | | | | This reverts commit 6f7ccb89bf9f99f7f0bb4503c9f73a65ce69b841. HWADDR is required for BOOTPROTO=ibft, and more importantly ifcfg-rh/NM needs it when activating devices.
* Don't write HWADDR into ifcfg files (#690589)Radek Vykydal2011-04-081-4/+0
| | | | | | Not needed anymore (udev and biosdevname take care of the naming). Resolves: rhbz#690589
* Consolidate ip address checking into functions.Radek Vykydal2011-03-101-7/+34
|
* Do not activate first ks network device automatically in non-network installs.Radek Vykydal2011-03-021-0/+15
| | | | | | | | | | | | For non-network installs it restores rhel 5 behaviour that was changed in master by commit 9767cb5fce174e8fcf28d06ad6f48384129a7cd4 (which would activate the device in any case). Now new --activate option can be used if bringing up the device in non-network install is desired. Port from rhel6-branch. Related: rhbz#638131
* Make kickstart network command reconfigure active device in loaderRadek Vykydal2011-03-021-1/+123
| | | | | | | | | | | Port from rhel6-branch. Resolves: rhbz#668395 If the device has already been activated, reactivate it with new configuration. Restores rhel 5 behaviour, changed in master most probably with commit 1980e9d377aa6089ae96740cd85593ec18d5344d.
* Use NM for ibft configurationRadek Vykydal2011-03-021-48/+2
| | | | | Port from rhel6-branch Resolves: rhbz#634016
* Reset only ifcfg file of device we failed to activateRadek Vykydal2011-03-021-48/+62
| | | | | | | | Port from rhel6-branch. Resolves: rhbz#638131 Not of all devices, e.g those brought up before activating devices from kickstart.
* Initialize iface structure properlyRadek Vykydal2011-03-021-1/+1
| | | | | Port from rhel6-branch. Resolves: rhbz#638131
* Add kickstart network --nodefroute optionRadek Vykydal2011-03-021-0/+5
| | | | | | | | | Port from rhel6-branch. Resolves: rhbz#638131 Sets DEFROUTE=no in ifcfg file. Use case: one NIC used to fetch packages, another for iSCSI. Using the option we can prevent the latter to grab default route.
* Wait for activation of specific devices instead of NMRadek Vykydal2011-03-021-15/+36
| | | | | Port from rhel6-branch Resolves: rhbz#638131
* Activate all devices set by kickstart network --activate commandRadek Vykydal2011-03-021-18/+9
| | | | | Port from rhel6-branch. Resolves: rhbz#638131
* Move all kickstart functions into kickstart.c.Chris Lumens2011-01-251-166/+0
| | | | | Running the commands will now require operating on PyObjects, and I don't want to expose that outside of kickstart.c.
* Allow loader to re-prompt for networking when network activation failsJames Laska2010-11-031-6/+14
|
* Do not use autoconfiguration for DHCPv6 (#623216)Radek Vykydal2010-08-131-0/+1
|
* Remember user's choice when going back in Configure TCP/IP (#609570)Radek Vykydal2010-08-051-5/+19
|
* Propagate MACADDR from loaderData to iface (#595388)David Cantrell2010-07-211-0/+4
| | | | | Make sure the MACADDR value gets propagated to the iface struct so that writeNetInfo() will succeed on s390 hosts.
* Support for ks: --ipv6 command, and ipv6 values for --gateway (#490794)Radek Vykydal2010-07-201-2/+38
|
* Fix config of ipv6 and ipv4 (auto + manual) in loader (#609576)Radek Vykydal2010-07-191-12/+9
| | | | | If auto for one ip version and manual for the other was selected in loader, the manual configuration was ignored.
* Move isys and booty into the pyanaconda/ directory, adjust paths to match.Chris Lumens2010-06-281-4/+4
| | | | | | | This is required so the source layout and package layout have a similar enough structure to make our test setup work. Without this move, you can't run "make check" or checkbot without getting error messages about no such module pyanaconda.booty.
* Do parse DOMAIN for DNS search suffixes in loader (#595388)Steffen Maier2010-06-111-1/+6
| | | | | | | This is very handy on s390, where it's sometimes hard to write more than 80 chars for repo/stage2/updates etc. Also write out quoted since it is a whitespace separated list.
* Handle OPTIONS in ifcfg files transparently in loader (#595388)Steffen Maier2010-06-111-31/+5
| | | | | | | | | | | Loader does not need to handle or understand layer2 and portno so consolidate that into opaque options. This will prevent issues such as bug 577005 or commit 9caaca4 or bug 468755 and should be also transparent to future extensions in linuxrc. Correctly parse OPTIONS whose value includes equal signs because the values are attribute value pairs. See also bug 597205 and commit 8549a36.
* Don't let loader write HWADDR to ifcfg file on s390. (#595388)Steffen Maier2010-06-021-0/+2
| | | | See also bug 546005 and bug 546005 or bug 591533.
* Fix most of what is necessary for install over IPv6 on s390 (#594090)David Cantrell2010-06-021-0/+19
| | | | | | | | We need loader support to parse and write out an IPv6 prefix. Write out IPV6_AUTOCONF=no in writeEnabledNetInfo for manual IPv6 method. (Patch from Steffen Maier <maier@linux.vnet.ibm.com>)
* Make ssid and wepkey in boot params and stage 1 kickstart work (#473803)Radek Vykydal2010-05-241-0/+67
|
* logging: the ibft message once again.Ales Kozumplik2010-05-131-1/+1
|
* logging: no iBFT is not an error, fix spelling.Ales Kozumplik2010-05-131-1/+1
|
* Use iBFT if present and user didn't asked for anything else. (#590719)Martin Sivak2010-05-101-27/+36
|
* Fetch ks files over NFS when ksdevice is not given (#541873)David Cantrell2010-04-271-1/+2
| | | | | | | | | | | | | | Fixes up a problem that occurs when users pass: ks=nfs:HOST:PATH But do not pass ksdevice. The kickstartNetworkUp() function returns early because NetworkManager is running and has a connection, but when loader tries to pull the file over NFS, it looks for the network device in loaderData->netDev, but kickstartNetworkUp() never filled that information in. Seems to only occur on s390x. Tested on both s390x and x86_64.
* Do not write OPTIONS=layer2=1 on all architectures (#577005).David Cantrell2010-03-261-1/+1
| | | | | OPTIONS=layer2=1 is just for s390x, so make sure it doesn't end up on other architectures.
* Remove isys/str.c, replace calls with glib.h or string.h calls.David Cantrell2010-03-241-6/+5
| | | | | | | | | str.c was from a time when loader was still a statically linked binary. Times have changed. Removed str.c and replaced calls with either string.h or glib.h functions. For g_ascii_strup() and g_ascii_strdown(), those functions dup the passed in string, change it, and return that.
* move log.c from loader into isys.Ales Kozumplik2010-03-081-1/+1
| | | | | | This is in preparation to use logging from imount.c. We don't want a dependency of isys on loader, instead move logging code into isys and change loader sources to use the log.h header in isys.
* Reset network setting input counters for IPv4 and IPv6 (#553761).David Cantrell2010-01-191-0/+2
| | | | | | | | | | | | | In loader, the manual TCP/IP configuration loop prompts the user then validates the input. Each time a particular piece of input validates, the counter is incremented. If the counter does not equal the right now at the end of the loop, we tell the user to re-enter the information correctly. But the second time around, if any input was valid the first time, it will be counted again, throwing off the count we check at the end of the loop. This patch just resets the IPv4 and IPv6 counters if we detected invalid input.
* Fixes problems in the manual network configuration screen in loader with IPv6.Ales Kozumplik2010-01-071-1/+1
| | | | | | A crash occurs after the IPv6 GUI has been enabled when we chose to configure the network device manually. When the crash is fixed the screen still does not appear. This patch fixes both the problems.
* Bring back missing IPv6 pieces that were lost in time.David Cantrell2010-01-071-1/+1
| | | | | | strcmp() -> strncmp() for ipv6 'auto' comparison. Add back missing gateway6 member in loaderData. Initialize ipv6 and gateway6 in loaderData to NULL.
* Remove test mode from the loader, too.Chris Lumens2009-12-031-31/+27
| | | | | All previous comments about test mode being untested apply to loader, but doubly so.