After many attempts, I conclude that installing kernels with mhwd-kernel just doesn't work properly in chroot. I'll just install chosen kernels and their ndiswrappers with pacstrap then.
In the local branch, I have now implemented following features:
- choosable kernels are generated with mhwd-kernel -l. This means that a) all kernels are available b) only kernels suitable for your architecture and branch can be selected c) I don't need to manually update the installer as new kernels come and old ones are removed
- manjaro editions list is dynamically generated from available profiles, so as profiles are added to the iso-profiles repo, they automatically become available.
Now I just need to fix the base installation for this...
I was thinking that maybe I should do away with the basic/advanced selection. The base installation could be like this:
- choose systemd/openrc
- choose edition. Have netinstall as an option.
This would simplify usage and code, and lead to less pacstraps.