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

Fedora 41 build fails during cleanup #1593

Open
b00ga opened this issue Jan 3, 2025 · 1 comment
Open

Fedora 41 build fails during cleanup #1593

b00ga opened this issue Jan 3, 2025 · 1 comment

Comments

@b00ga
Copy link
Contributor

b00ga commented Jan 3, 2025

find /etc/sysconfig/network-scripts -name "ifcfg-*" -not -name "ifcfg-lo" -exec rm -f {} \;

Above referenced find command fails (No such file or directory) and build stops with failed exit status.

Did some digging. ifcfg files (in the /etc/sysconfig/network-scripts directory) have been deprecated since Fedora 36 in favor of NetworkManager keyfiles (aka ini files) [1]. However ifcfg files would still work.

In Fedora 41, the network-scripts package (which provides the ifcfg files and their support) was completely removed from Fedora 41 [2]. Due to this removal, we no longer get an /etc/sysconfig/network-scripts directory, and so this cleanup failure.

This change needs to be accounted for in Fedora's cleanup script.

[1] https://fedoramagazine.org/converting-networkmanager-from-ifcfg-to-keyfiles/
[2] https://fedoraproject.org/wiki/Releases/41/ChangeSet#Removing_network-scripts_package

@b00ga
Copy link
Contributor Author

b00ga commented Jan 3, 2025

Just thinking "out loud". A quick first-pass fix may be to just check for the existence of the directory (aka wrap this find in an if [ -d /etc/sysconfig/network-scripts]; then ; fi)

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