lima icon indicating copy to clipboard operation
lima copied to clipboard

Improve Linux distribution detection

Open Regrau opened this issue 1 year ago • 0 comments

This will close https://github.com/lima-vm/lima/issues/983. I took the liberty to reorder the file a little so one does not need to parse the whole file to understand what will happen. As it is now, this will implement both ways of checking for the distribution as discussed. It will check for the distribution and the package manager. If those checks fail it will try to work with the package manager only on a best effort basis.

Now you only need to parse the main function to understand the intent of the file. Addition of new distributions should hopefully be easier as well since one won't need to parse the long if elif else decision tree.

I'd like to simplify the new install_$DISTRO_dependencies functions a little more too but I'd need input on if it is the right course to take.

Regrau avatar Jul 23 '22 21:07 Regrau