[mhwd-kernel] add rt-kernel support and some small modifications #104

Merged
oberon merged 5 commits from unknown repository into master 2016-08-21 12:36:22 +00:00
oberon commented 2016-08-21 00:39:35 +00:00 (Migrated from gitlab2.manjaro.org)

I've tested this thorrowly running different kernels and all possible scenarios I could think of and everything seems to work fine.

kernel_repo()

kernel_list()

Some stuff is even a little fancier now 😉

The only little flaw is that when rt switches to a different basekernel this has to be adjusted manually until someone comes up with a more brilliant solution than this:

rt_base=linux46
rt_lts_base=linux44

IFS=. read -r major minor _ <<< "$(uname -r)"
current="linux$major$minor"
[[ $(uname -r) == *rt* ]] && [[ $current == $rt_base ]] && current=linux-rt-manjaro
[[ $(uname -r) == *rt* ]] && [[ $current == $rt_lts_base ]] && current=linux-rt-lts-manjaro
I've tested this thorrowly running different kernels and all possible scenarios I could think of and everything seems to work fine. kernel_repo() ![](http://imgur.com/68pKtAll.png) kernel_list() ![](http://imgur.com/uCZWWdyl.png) Some stuff is even a little fancier now :wink: ![](http://imgur.com/Ag4q1b2l.png) The only little flaw is that when rt switches to a different basekernel this has to be adjusted manually until someone comes up with a more brilliant solution than this: ``` rt_base=linux46 rt_lts_base=linux44 IFS=. read -r major minor _ <<< "$(uname -r)" current="linux$major$minor" [[ $(uname -r) == *rt* ]] && [[ $current == $rt_base ]] && current=linux-rt-manjaro [[ $(uname -r) == *rt* ]] && [[ $current == $rt_lts_base ]] && current=linux-rt-lts-manjaro ```
philm commented 2016-08-21 07:48:19 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

At the current state we have to update mhwd-kernel whenever you change the base of your RT kernels. Maybe you should ship a file in a package called mhwd-rt which is optional to support RT kernels. It has a simple config file we read out and only that package needs to be changed. Like we do with mhwd-nvidia and so on.

*Created by: philmmanjaro* At the current state we have to update **mhwd-kernel** whenever you change the base of your RT kernels. Maybe you should ship a file in a package called **mhwd-rt** which is optional to support RT kernels. It has a simple config file we read out and only that package needs to be changed. Like we do with **mhwd-nvidia** and so on.
oberon commented 2016-08-21 09:16:33 +00:00 (Migrated from gitlab2.manjaro.org)

I think we can even collect the necessary information from what we have already installed... I'll come up with something!

I think we can even collect the necessary information from what we have already installed... I'll come up with something!
oberon commented 2016-08-21 12:31:06 +00:00 (Migrated from gitlab2.manjaro.org)

I think I found something. Have a look! 😄

I think I found something. Have a look! :smile:
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
applications/mhwd!104
No description provided.