At some point all files in /lib/modules/6.x get deleted, and I cannot boot into the kernel that was compiled and working perfectly fine.
Does anybody knows what can I do to prevent this?
I have 6 distros at home.
Garuda is the only distro doing this, and I guess it might be related to the special kernel garuda has, maybe it wants to keep only two.
Please post the output of garuda-inxi when you have a chance.
This does not sound like something Garuda "does".
Garuda supports having multiple kernels installed, including custom kernels. Garuda does not have a "special kernel" per se, as not every spin ships with the same kernel. Most ship with the Zen kernel, which is not Arch's default kernel but is not a particularly exotic kernel either (it's in the [extra] repo).
Each kernel in /usr/lib/modules should have a separate directory based on the name of the kernel. Here is an example on the system I am booted into right now, which has six different kernels installed:
They will change version numbers as the kernels are updated, but they don't go away unless I choose to uninstall a kernel.
Maybe if you can describe your process with a little more detail someone from the community can help identify what is happening. Take it a step further: the real litmus test would be attempting to reproduce the issue. If you can, be sure to document the process so we can take a look.
It seems more likely to be a PEBCAK-related issue.
Your reply did not include any information, so I have moved the thread to 412 Precondition Failed for now. If you would like to revisit the discussion you may edit your post to include the details that were asked of you and we will move it back to an accessible topic category.
Please bear in mind blaming Garuda for randomly deleting your files or similar spurious mudslinging is not useful when troubleshooting an issue on a technical support forum. Please keep your suggestions evidence-based and rational if you can.