Merge pull request #2357 from Zeglius/smart-dnf-wrapper

feat: Smart dnf wrapper
This commit is contained in:
Kyle Gospodnetich 2025-03-10 21:19:38 -07:00 committed by GitHub
commit d5bfbe4f54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,3 +1,9 @@
#!/usr/bin/bash
# Redirect to dnf5 if we are running inside a container
if systemd-detect-virt -cq || { [[ -e /run/.containerenv || -e /.dockerenv ]]; }; then
exec dnf5 "$@"
fi
echo -e "ERROR: Fedora Atomic images utilize rpm-ostree instead (and is discouraged to use).\nPlease, \e]8;;https://docs.bazzite.gg/Installing_and_Managing_Software/\aread our documentation\e]8;;\a\n\e]8;;https://docs.bazzite.gg/Installing_and_Managing_Software/\ahttps://docs.bazzite.gg/Installing_and_Managing_Software/\e]8;;\a\n"
exit 1