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

ifup doesn't complete interfaces configured with nmconnection key files on fedora #1281

Open
3 tasks done
yedayak opened this issue Nov 28, 2024 · 0 comments
Open
3 tasks done

Comments

@yedayak
Copy link
Collaborator

yedayak commented Nov 28, 2024

Describe the bug

ifup in fedora doesn't complete since configured interfaces since the interface configuration is in /etc/NetworkManager/system-connections/ now by default, and _comp_compgen_configured_interfaces only looks for files like this: /etc/sysconfig/network-scripts/ifcfg-*.

To reproduce

  1. Use a recent fedora system with configured interfaces in /etc/NetworkManager/system-connections/
  2. type ifup <TAB>
  3. No completions

Expected behavior

_comp_compgen_configured_interfaces should check for /etc/NetworkManager/system-connections/*.nmconnection files to get configured interfaces.

Versions (please complete the following information)

  • Operating system name/distribution and version: fedora 39+
  • bash version, echo "$BASH_VERSION": N/A
  • bash-completion version, (IFS=.; echo "${BASH_COMPLETION_VERSINFO[*]}"): 2.15.0

Additional context

Found in #1280

@yedayak yedayak changed the title ifup doesn't complete configured interfaces on fedora ifup doesn't complete interfaces configured with nmconnection key files on fedora Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant