Skip to content

Handle custom kernel names#54

Open
LukeShortCloud wants to merge 1 commit intoNVIDIA:mainfrom
LukeShortCloud:custom-kernel-name
Open

Handle custom kernel names#54
LukeShortCloud wants to merge 1 commit intoNVIDIA:mainfrom
LukeShortCloud:custom-kernel-name

Conversation

@LukeShortCloud
Copy link
Copy Markdown

Both upstream and custom kernel names can now be used.

Both upstream and custom kernel names can now be used.
@LukeShortCloud
Copy link
Copy Markdown
Author

LukeShortCloud commented Sep 23, 2024

Example output for an upstream kernel:

$ export uname_r="6.10.5-200.fc40.x86_64"
$ kernel=$(echo ${uname_r} | awk -F '-' '{print $1}')
$ echo ${kernel}
6.10.5
$ release=$(echo ${uname_r} | awk -F '-' '{print $2}' | sed -r 's|\.[a-z]{2}[0-9]+| |' | awk '{print $1}' | cut -d. -f1)
$ echo ${release}
200
$ dist=$(echo ${uname_r} | rev | cut -d. -f2 | rev)
$ echo ${dist}
fc40

Example output for a custom kernel:

$ export uname_r="6.10.11-201.custom.fc41.x86_64"
$ kernel=$(echo ${uname_r} | awk -F '-' '{print $1}')
$ echo ${kernel}
6.10.11
$ release=$(echo ${uname_r} | awk -F '-' '{print $2}' | sed -r 's|\.[a-z]{2}[0-9]+| |' | awk '{print $1}' | cut -d. -f1)
$ echo ${release}
201
$ dist=$(echo ${uname_r} | rev | cut -d. -f2 | rev)
$ echo ${dist}
fc41

@kmittman kmittman self-assigned this Oct 2, 2024
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

Successfully merging this pull request may close these issues.

2 participants