Message278851
I'm not suggesting a generic platform detection function but rather a limited function just for os-release. On platforms without /etc/os-release the function should obviously fail and raise an exception.
/etc/os-release is available on distributions without systemd. Even my oldest Debian installation on a Raspberry Pi has it.
A large majority of Linux distributions has the file. It's available on Debian, Fedora, RHEL 6+, Ubuntu 14.04+ and many more. |
|
Date |
User |
Action |
Args |
2016-10-18 09:51:30 | christian.heimes | set | recipients:
+ christian.heimes, matrixise, cstratak |
2016-10-18 09:51:30 | christian.heimes | set | messageid: <1476784290.45.0.560761435833.issue28468@psf.upfronthosting.co.za> |
2016-10-18 09:51:30 | christian.heimes | link | issue28468 messages |
2016-10-18 09:51:30 | christian.heimes | create | |
|