Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support restoring network configurations on ancient OS releases (e.g. RHEL6) #1607

Closed
rmetrich opened this issue Nov 29, 2017 · 1 comment
Closed
Assignees
Labels
bug The code does not do what it is meant to do cleanup fixed / solved / done
Milestone

Comments

@rmetrich
Copy link
Contributor

  • rear version (/usr/sbin/rear -V): rear-2.2
  • OS version (cat /etc/rear/os.conf or lsb_release -a): rhel6
  • Brief description of the issue:

On RHEL6 systems, the network configuration of the system cannot be generated properly, typically when bridges are used. This is due to "ip link" not supporting "bridge" type. In such case "brctl" may be used instead.
Also "readlink" only accepts 1 file name on RHEL6, and network devices do not have "lower_*" nodes in /sys/class/net//

PR #1605 fixes all this.
Sorry for not having noticed that before.

@jsmeix jsmeix self-assigned this Nov 29, 2017
@jsmeix jsmeix added bug The code does not do what it is meant to do cleanup labels Nov 29, 2017
@jsmeix jsmeix added this to the ReaR v2.3 milestone Nov 29, 2017
jsmeix added a commit that referenced this issue Dec 1, 2017
Reworked implementation in 310_network_devices.sh
so that it still supports older Linux distributions
like RHEL6 and SLES11 where in particular
'ip link' does not support the 'bridge' type and
'readlink' does not support more than one symlink,
see #1607
@jsmeix
Copy link
Member

jsmeix commented Dec 1, 2017

With #1605 merged
I consider this issue to be fixed.

@jsmeix jsmeix closed this as completed Dec 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The code does not do what it is meant to do cleanup fixed / solved / done
Projects
None yet
Development

No branches or pull requests

2 participants