-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Kernel switching module: complete refactoring and hardening #308
Conversation
d05b033
to
5f59f73
Compare
5f59f73
to
ad3f622
Compare
b5ed6c2
to
8c305eb
Compare
edd643a
to
ada7034
Compare
59718db
to
d4c96eb
Compare
19a1a0e
to
f929303
Compare
f929303
to
b6ae0b9
Compare
@Tearran @dimitry-ishenko @EvilOlaf Those changes above works well now, but there is a problem that menu got quite slow (Odroid M1 takes several seconds, my desktop is fast, so it gets <1s) due to many checks. Which are IMO needed to perform as designed. Or I am blind and I don't see how to do it better ;) Alternatively adding sub menu here
Any thoughts? |
for the front end and grouping. Adding header ["...,group"]="some_subgroup" could be easily used PR #287 Shows how we can query and nest separate groups. The example I used naming conventions module_ and gererate_ for groups others then fall in helper group.
|
Nothing obvious. Though I am not a bash wizard. Maybe add a warning "can take several seconds" :D |
It takes too much of time already on arm64 board and this would go into 15 seconds or more in some old H3 board. Here is a UX question first. If I push those kernel management stuff into submenu, main system will remain smooth as butter.
will look into this, thanks. |
{
"id": "Kernel",
"description": "Manage Armbian kernel upgrades",
"command": [
"see_menu module_armbian_firmware"
],
"status": "Stable",
"author": "@igorpecovnik",
"condition": ""
} |
condition checking in the help message to produce a list available options. https://github.com/armbian/configng/blob/main/tools/modules/software/install_webmin.sh |
As shown with https://github.com/armbian/configng/blob/hardening-kernel-switch/tools/modules/software/install_webmin.sh some condition checking done when a module is needed instead of checking conditions all at once. "armbian-config"
|
I wasn't sure how to document those switches. Also here direct translation to the menu might not work well, at least how it is designed now - switch has more additional options. Kernel headers have remove, install, status (which is in this kind of arrangement not needed). |
if you remove the 2nd \t on each line. That will fix the strings. You can nest the Kernel in a sub_group but suggest that a [...,group"]="Kernel" and [...,conditions]="", be added to the module_options along with [...,arch]="" and port even if not used. |
Perhaps one day this subfolder is done better as managing is still slow, but at least no affect whole system folder as before.
I think I will get back to this in the future, but for now I would merge good working but slow functioning. As kernel management was moved into submenu, this gets less annoying. And probably UX wise, this is also better. |
Description
Implementation Details
BASH module.
Documentation Summary
Testing Procedure
Checklist