archlinux / archinstall

Arch Linux installer - guided, templates etc.
GNU General Public License v3.0
6.04k stars 522 forks source link

Add an option to install the appropriate kernel headers #1240

Open wc7086 opened 2 years ago

wc7086 commented 2 years ago

Some software, like virtualbox, will try to install kernel modules at the same time, and without the headers some features will not work because the kernel modules cannot be installed. I think should add an option for users to install kernel headers, so that when changing the kernel version to be installed, there is no need to change the kernel header version in the package list.

The following code should be decoupled so that the user force a selected installation of the kernel headers along with the selected installation of the Nvidia kernel module. https://github.com/archlinux/archinstall/commit/ffc43bc0411c71f84fa1c7e52204c2b20e311429

dylanmtaylor commented 2 years ago

Might be a good candidate for an --advanced feature if we add it, since most users won't need this and it'll add more selections to the installation

svartkanin commented 2 years ago

Maybe it should be renamed to "--experimental" all together ?

dylanmtaylor commented 2 years ago

Maybe it should be renamed to "--experimental" all together ?

I think the current name is sufficient. Additionally, changing the name would be confusing to users.

dhelgerson commented 4 months ago

I second this. I believe it should be a choice asked when selecting the kernel. especially if you select a kernel other than the base 'linux' kernel because it necessitates the use of dkms modules where normally it wouldn't. I can work on it and submit a PR if someone would point me in the right direction.I took a look at the code and didn't quite grasp the menu class structure or how exactly you finally get to the packages you install