aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 10.00.1710.00.17Jan Macku2022-01-241-1/+8
|
* ifup-routes: Revert quotesJan Macku2022-01-241-4/+4
| | | | | | | | Quotes were introduced in a71dcfd392cc1022c255208fdd94a0fc6c13ceb0 (cherry picked from commit f0171b8449033400db59a47a610124fc285dfe06) Resolves: #2034799
* ifup-routes: Use `ip replace` only on type `route`Jan Macku2022-01-211-4/+6
| | | | | | | | Since other types might fail due to `replace` to be undefined. (cherry picked from commit 28f50e5582f3641afac795e0e009fd22875b8dbb) Resolves: #2034799
* ci: introduce GA ci from master to rhel8-branchJan Macku2022-01-146-0/+323
|
* ci: Setup packit for RHEL8 branchJan Macku2022-01-141-0/+13
|
* ci: Get rid of old ci files (travis and zanata)Jan Macku2022-01-142-21/+0
|
* 10.00.1610.00.16Jan Macku2022-01-141-1/+6
|
* rename_device: also support dracut-style kernel cmdline configurationLukas Nykryn2022-01-141-1/+43
| | | | | | | | | | | | There are 2 cases where this might be useful. * On machines with initrd build without dracut-network, you can now still use ifname option * On older kernels where double renaming was allowed, normal system replaced the name set by initrd. (cherry picked from commit 55cdbccad3f6492b1e721154a45e5884044db76d) Resolves: #1851503
* ifup-routes: Log when using `ip $type replace`Jan Macku2022-01-121-2/+12
| | | | | | | | Follow-up to #401 Related: #2034799 (cherry picked from commit a31060817ef8b03814b240442811ea5caa082d1c)
* ifup-routes: Use `ip route repace` to avoid raceJan Macku2022-01-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | This should resolve the scenario when the link is brought up prior to disabling accept_ra. This only happens when both IPv4 and IPv6 address is on the interface, because network-scripts does IPv4 first and brings up the interface. Then it does IPv6 which disables the RA's, at that point the node has already learned the route from RA and setting a default route fails. Using `ip route replace` we ensure if the above scenario happens we end-up with the correct default ipv6 route. Huge thanks to Harald who debugged this issue and prepared a patch! Resolves: #2034799 (cherry picked from commit a71dcfd392cc1022c255208fdd94a0fc6c13ceb0) Co-authored-by: hjensas <hjensas@redhat.com>
* 10.00.1510.00.15Jan Macku2021-02-151-1/+5
|
* doc: Document ARPING_WAIT and ARPING_UPDATE_WAITJan Macku2021-02-151-0/+10
| | | | | | Related: #1928098 (cherry picked from commit f97766f7f3b376391c72794136a44733e276b48c)
* network scripts: Avoid infinite loop of arpingJan Macku2021-02-152-4/+5
| | | | | | | | | | | | | Introduced in the bonding driver (commit ae46f184bc1f) Driver now reports transmission failures. Before that, it silently dropped the packet and replied with success error code. The arping of iputils retries endlessly when a transmission error occurs. This patch fix this behavior. Resolves: #1928098 (cherry picked from commit afbd6b5a0aa0873a606cbc99ee418b4de8c3d2dc)
* 10.00.1410.00.14Jan Macku2021-02-041-1/+4
|
* network: fix condition in set_link_up()Jan Macku2021-02-041-2/+5
| | | | | Related: #1555001 (cherry picked from commit b0e3fcae2a609cf4e011c767e57b7128a6cd090d)
* 10.00.1310.00.13Jan Macku2021-01-221-1/+4
|
* doc: Documents ifcfg option LINKSTATUSJan Macku2021-01-221-0/+4
| | | | | | Related: #1555001 Resolves: #1916632 (cherry picked from commit 6bdeac5d349546b3d2c96b10cbdd1f9ce16ee947)
* 10.00.1210.00.12Jan Macku2020-12-171-1/+4
|
* network: fix set_link_up()Jan Macku2020-12-171-3/+1
| | | | | | | | This patch fixes issue, when interface wasn't bring up. Related: #1555001 (cherry picked from commit 17f1519e0dac05bf6b259ef9b7f8dcd6b94013ce)
* 10.00.1110.00.11Jan Macku2020-12-151-1/+5
|
* network: add option to keep the link downJan Macku2020-12-159-16/+25
| | | | | | | | | | Some interfaces like Open vSwitch bridges using the userspace datapath, needs the link to be kept down to avoid issues. Add a LINKSTATUS=[down|up] ifcfg parameter to add this functionality. If not specified, the link will default to up as before. Patch provided by Matteo Croce mcroce@redhat.com Resolves: #1555001
* makefile: Use rpmdev-bumpspec's legacy date optionJan Macku2020-11-062-2/+2
| | | Start using legacy date-stamp to remain consistent changelog
* 10.00.1010.00.10Jan Macku2020-11-061-1/+6
|
* Allow updating rfkill switch status while in readonly root modeJan Macku2020-11-061-0/+1
| | | | | | | | Adding rfkill switch status into rwtab. Resolves: #1878874 (cherry picked from commit 537a39f10173d34cd9a2cf75e42225bb339c318e)
* service: Prevent variables from globbingJan Macku2020-11-061-8/+8
| | | Resolves: rhbz #1894855
* Allow updating mlocate.db while in readonly root modeJan Macku2020-11-061-0/+1
| | | | | | | Fixes issue when updatedb does not have the ability to update the mlocate.db Resolves: #1880277 (cherry picked from commit 94aafd1d4fce89f19726dfb1b331198ce7bfd9e9)
* 10.00.910.00.9Jan Macku2020-07-241-1/+4
|
* Add optional 'dev' keywordJan Macku2020-07-242-3/+3
| | | | | | | | | | Fix the problem when the device name could be interpreted as an iproute2 keyword. For example, for a bridge slave named "a" the iproute2 would treat the name as a prefix of keyword "address" and the network-scripts would fail to set the bridge master. Resolves: rhbz #1859785 (cherry picked from commit 100ed46b483b50059b3be796bafaf7b8f2b99220)
* 10.00.810.00.8Jan Macku2020-06-161-1/+6
|
* rwtab: Add support for chronyJan Macku2020-06-161-1/+2
| | | | | | Chrony isn't able to write into its files while stateless mode is active. This patch should avoid this issue. Resolves: #1839003
* ifup-eth: Switch to bc utility, which supports floating point computations.Jan Macku2020-06-162-2/+5
| | | | backport of: 0be5319 Resolves: #1826637
* Replace grep -EL with subshell since -L changed behaviourJan Macku2020-06-161-2/+2
| | | | | | | | | | | Option -L is not supported in grep 3.2+ Related to #rhbz1824324 ----------- Sugested by @lnykryn Related to issue #300 (cherry picked from commit 04bb81ecfef80477a6bfa5b7598f27f5ad53f86e)
* 10.00.710.00.7Jan Macku2020-04-151-1/+6
|
* Wait for scope link addresses as well as for scope global addressesJan Macku2020-04-141-3/+3
| | | | | | | | Fix issue when interface has assigned only local address in tentative state and DHCPv6 isn't able to assign address to that interface. With this patch network-scripts will wait until tentative state is gone (wait for DAD) for all scopes including local one. Resolves: #1809601
* Remove deprecated option -m of pidofJan Macku2020-04-141-2/+2
| | | | Resolves: #1798128 (cherry picked from commit 516fb3ed7b7e2c9e8ba4e996cb9b6051acfdccd3)
* 10.00.610.00.6Jan Macku2019-12-101-1/+5
|
* Fix service network stop cmdJan Macku2019-12-101-0/+7
|
* Fix missing python3 during build phaseJan Macku2019-12-103-3/+7
|
* 10.00.510.00.5Jan Macku2019-10-301-1/+8
|
* network-function: bridges are created by ifup-ethJan Macku2019-10-301-0/+3
| | | | Resolves: rhbz#1762717 (cherry picked from commit 10f09913a177efaf007448c95c8b49dcfdc0a35f)
* network: don't fail with IFDOWN_ON_SHUTDOWNJan Macku2019-10-301-2/+2
| | | Resolve rhbz#1738578
* Add ip6gre tunnel optionJan Macku2019-10-303-2/+7
| | | Resolve: rhbz#1743251
* ifup-eth: Check that device name is setJan Macku2019-10-301-0/+5
| | | Resolve rhbz#1743249
* Initscripts no longer care about rc.localJan Macku2019-10-302-4/+0
| | | Resolve: BZ #1760416
* 10.00.410.00.4Lukas Nykryn2019-08-231-1/+4
|
* ifup-eth: Fix bridge setting stp optionBell2019-08-231-1/+1
| | | | | | | | | | | | | Fixes https://bugzilla.redhat.com/1743522 An uninitialized variable was copied from a closed PR [1] to submitted PR [2]. [1] https://github.com/fedora-sysv/initscripts/pull/212 [2] https://github.com/fedora-sysv/initscripts/pull/213 Signed-off-by: Bell Levin <blevin@redhat.com> (cherry picked from commit dd703a8494647d401dbffa0f036233e08044ec60)
* 10.00.310.00.3Jan Macku2019-08-071-1/+5
|
* rc.d/functions: fix escape sequence being output under systemd service unitsJan Macku2019-08-071-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When functions provided by /etc/rc.d/functions is used, escape sequence is output under systemd service units and logged into /var/log/messages as follows: # LANG=C systemctl cat foobar.service # /etc/systemd/system/foobar.service [Unit] Description=FOOBAR [Service] Type=oneshot ExecStart=/usr/bin/foobar.sh RemainAfterExit=yes [Install] WantedBy=multi-user.target # cat /usr/bin/foobar.sh #! /bin/bash . /etc/init.d/functions echo_success # LANG=C grep foobar.sh /var/log/messages Aug 7 09:29:54 localhost foobar.sh[29607]: #033[60G[#033[1;32m OK #033[0;39m]#015#033[60G[#033[1;31mFAILED#033[0;39m] This is a regression issue caused by the commit f88dbd98e992 where consoletype command was dropped. Under systemd service units, standard input is associated with /dev/null by default: # systemctl show -p StandardInput foobar.service StandardInput=null man 5 systemd.exec: StandardInput= Controls where file descriptor 0 (STDIN) of the executed processes is connected to. Takes one of null, tty, tty-force, tty-fail, data, file:path, socket or fd:name. If null is selected, standard input will be connected to /dev/null, i.e. all read attempts by the process will result in immediate EOF. consoletype command interprets /dev/null as serial: # consoletype < /dev/null warning: consoletype is now deprecated, and will be removed in the near future! warning: use tty (1) instead! More info: 'man 1 tty' serial The commit f88dbd98e992 overlooks this situation. To fix this issue, check also "not a tty" to cover the case where standard input is /dev/null. Note that LANG=C is needed because the message "not a tty" varies depending on locales. (cherry picked from commit fdcc55839df2334d7a7567de1f02f07ee7a69561)
* Replace not working awk command with sedJan Macku2019-07-311-1/+1
| | | | | | | Sed command get version number from spec file and increment last number by one. Work like old awk command was intended to work. Source: https://stackoverflow.com/questions/14348432/how-to-find-replace-and-increment-a-matched-number-with-sed-awk/14348899
* 10.00.210.00.2Jan Macku2019-06-061-1/+4
|