-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fall back to ID if ID_LIKE is not available #494
Labels
Comments
This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been labeled as stale for 7 days with no activity. |
Fixed in 6c1970f on develop. |
erijo
added a commit
that referenced
this issue
Feb 9, 2025
* Improve and harden alt file regeneration (#466) * Fix "yadm config" in fish completion (#491) * Fix "yadm clone" when not run in "$YADM_WORK" (#513) * Output the actual paths in help message (#376) * Verify all alt conditions for templates (#478) * Ignore case in alt and default template conditions (#455, #456) * Fall back to ID for distro family if ID_LIKE is not available (#494) * Support overriding distro and distro family (#430) * Improve support for Bash 3 (the default version on macOS) * Make "yadm clone --recursive" work as expected (#517) * Don't include files multiple times in archive (#125) * Document YADM_HOOK_DATA and YADM_HOOK_DIR env variables (#343) * Support alt dirs with deeply nested tracked files (#495)
Fixed in 3.4.0. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
I recently got started with yadm and spent a good while trying to figure out why alternative files wouldn't be created for selector
##distro_family.debian
when using it on a vanilla debian system.Describe the solution you'd like
Could it be an option to consider the base
ID
field ifID_LIKE
is not available in/etc/os-release
? Base distros like debian or arch sitting at the root of the distro tree may deliberately omit the field. The specification is not explicit on what to do if the current distro isn't a derivative of something else, but it says to only list distros you derive from, so base distros seem to correctly not set this field.from https://www.freedesktop.org/software/systemd/man/latest/os-release.html
Describe alternatives you've considered
I can see that there are options being considered, e.g by overriding the distro_family, which is definitely a valid option for distros that just don't set the value, but I'm not sure if it's the best approach for all use cases.
The text was updated successfully, but these errors were encountered: