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 fedora in kernel header install script #262

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion collector/kernel/kernel_headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function detect_distro {
if [[ -e "${os_release_file}" ]]; then
os_id="$(grep '^ID=' "${os_release_file}" 2> /dev/null | sed -e 's/ID=\(.*\)/\1/g' -e 's/"//g')"
case "${os_id}" in
debian | ubuntu | centos | amazon | rhel)
debian | ubuntu | centos | amazon | rhel | fedora)
echo "${os_id}"
return
;;
Expand All @@ -82,6 +82,9 @@ function detect_distro {
elif grep 'Amazon Linux' "${system_release_file}" > /dev/null 2> /dev/null; then
echo "amazon"
return
elif grep 'Fedora' "${system_release_file}" > /dev/null 2> /dev/null; then
echo "amazon"
return
fi
fi

Expand Down
Loading