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
Use os-release instead of lsb_release #731
Comments
…/os.conf file. After some discussions we decided this was not the best option. However, a final solution is not yet in sight (I'm afraid) for Debian related distributions. See issue #731
Milestone (1.18) removed. No idea when this one will be fixed. |
Issue #778 is a related issue. |
referenced to the wrong issue - should have been #778. This issue has not been resolved yet! |
Just had a look again, with @jsmeix would this be a way for more recent SUSE systems to avoid creating this |
That build-time created os.conf file should definitely be dropped @schlomo FYI: # git clone https://github.com/rear/rear.git # cd rear |
@schlomo on SLES10 I only find |
post-pone to release 2.3 |
@jsmeix Could you paste from a few SLES versions the output of |
SLE10: # cat /etc/issue | grep -v '^$' Welcome to SUSE Linux Enterprise Server 10 SP4 (x86_64) ... # grep "ID" /etc/os-release grep: /etc/os-release: No such file or directory SLE11 # cat /etc/issue | grep -v '^$' Welcome to SUSE Linux Enterprise Desktop 11 SP3 (i586) ... # grep "ID" /etc/os-release grep: /etc/os-release: No such file or directory SLE12: # cat /etc/issue | grep -v '^$' Welcome to SUSE Linux Enterprise Server 12 SP2 (x86_64) ... # grep "ID" /etc/os-release VERSION_ID="12.2" ID="sles" openSUSE Leap (is based on SLE12): # cat /etc/issue | grep -v '^$' Welcome to openSUSE Leap 42.1 ... # grep "ID" /etc/os-release VERSION_ID="42.1" ID=opensuse ID_LIKE="suse" openSUSE Tumbleweed (continuously changing rolling release): # cat /etc/issue | grep -v '^$' Welcome to openSUSE Tumbleweed 20170620 ... # grep "ID" /etc/os-release ID=opensuse ID_LIKE="suse" VERSION_ID="20170620" |
Issue #1639 will pick up where we left this issue. This one can be closed. |
I think that os-release is a good thing. All systemd based distros will ship that file and the content is well defined. We can pull all or at least most of our info from there as well.
I would therefore propose a completely different approach:
os-release
removelsb*
from the package dependencies.os-release
iflsb_release
is not available.The result will be a smooth migration with minimal impact. And it is upgrade safe as we don't run any code on package installation. And it also works when you run ReaR from source code :-)
See 613ba6f for full discussion
The text was updated successfully, but these errors were encountered: