VandalByte / darkmatter-grub2-theme

Dark Matter GRUB Theme πŸ‘ΎπŸ’™
https://www.pling.com/p/1603282/
GNU General Public License v3.0
310 stars 15 forks source link

Gave `os-release` priority as an OS identification data file #18

Closed medanisjbara closed 2 years ago

medanisjbara commented 2 years ago

Most distributions use systemd which has os-release as the file containing OS identification data. Therefore, I believe using the data it contains is a priority, then searching for other files can be a secondary task. In distributions like arch linux which contains another file called arch-release. a totally empty file that is there just to let programs know that the distribution is arch. The existence of such files will cause problems such as the one mentioned in #17 Therefore, I believe giving priority to os-release before other files ending with "-release" is a good move to make the installation script work with a wider variety of distributions