-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Comments
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 |
That would get rid of the error.. but does the functionality also need to be translated to the NetworkManager replacement? (ie remove all ini files except localhosts?)... or is NetworkManager sufficiently dynamic? I guess it depends on why this was added to the cleanup scripts in the first place.. I'm guessing due to dynamic nature of interface names on different providers. |
This was all created way before my time, and has probably been a hold over. Not much changes till it breaks on newer versions then gets updated. Thanks for the suggestion I'm implementing that now to fix it in #1596 |
bento/packer_templates/scripts/fedora/cleanup_dnf.sh
Line 28 in 74602d4
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
The text was updated successfully, but these errors were encountered: