[SOLVED] Kernel panic and can't run mkinitcpio
I am sorry if I am being dumb and missing something basic, but I have been trying on and off to get my system fixed for a week and don't seem to be making much progress.
When I try to boot I get a kernel panic with the message that no working init can be found. When I chroot into the installation I am unable to run mkinitcpio because of the following error message:
==> WARNING: Failed to enable color. Check your TERM environment variable
==> ERROR: '/lib/modules/4.9.41-1-lts' is not a valid kernel module directory
now I have confirmed that this directory does not actually exist, but I do not know how to stop this occurring or why it is occurring in the first place.
I would appreciate any help in fixing this and will try to provide extra information if people ask for it.