-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Anolis OS in a more elegant way
This is a combination of 2 commits. This is the 1st commit message: Support Anolis OS in a more elegant way There are many different distribution of linux kernel. However, it may not be good to support one new distribution just by adding a judgment condition. Therefore, I move it into a function. In the future, if a new distribution need to be supported, it may be more elegant. This is the commit message #2: fix the bug of wrong shell condition and contains more distro This commit fix the fowlling problem: 1. move SUPPORTED_DISTRO to SUPPORTED_RPM_DISTROS 2. fix the wrong ID of "Anolis" to "anolis" in SUPPORTED_RPM_DISTROS 3. change distro in function to local variable 4. rename is_supported_distro to is_supported_rpm_distro; print_supported_distro to print_supported_rpm_distro 5. fix the bug of return value of is_supported_rpm_distro 6. contains ubuntu and debian release in print_supported_rpm_distro, and adjust the vmlinux search logic at the same time.
- Loading branch information
Wardenjohn
committed
Dec 13, 2023
1 parent
8513926
commit 3fdda35
Showing
1 changed file
with
48 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters