Skip to content
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

drop dependency on lsb-release script #4597

Merged
merged 1 commit into from
Feb 6, 2023
Merged

Conversation

jakubgs
Copy link
Member

@jakubgs jakubgs commented Feb 6, 2023

The /etc/os-release file exists in most distributions and can be easily read in Bash by sourcing it:

 > docker run --rm -it debian:bullseye
root@2f5d6e038738:/# grep '^ID=' /etc/os-release
ID=debian
 > docker run --rm -it ubuntu:22.04
root@316b572b6e4d:/# grep '^ID=' /etc/os-release
ID=ubuntu

The dependency on lsb-release tool is unnecessary, and pulls in additional big dependencies like python3:

 # apt show lsb-release | grep Depends
Depends: python3:any, distro-info-data

Which if used in a Docker container would make it unnecessarily big.

@jakubgs jakubgs added the enhancement New feature or request label Feb 6, 2023
@jakubgs jakubgs requested a review from arnetheduck February 6, 2023 09:35
@jakubgs jakubgs self-assigned this Feb 6, 2023
@jakubgs jakubgs force-pushed the drop-lsb-release-dep branch from 407cf18 to cef8898 Compare February 6, 2023 10:04
The `/etc/os-release` file exists in most distributions and can be
easily read in Bash by sourcing it:
```
 > docker run --rm -it debian:bullseye
root@2f5d6e038738:/# grep '^ID=' /etc/os-release
ID=debian
```
```
 > docker run --rm -it ubuntu:22.04
root@316b572b6e4d:/# grep '^ID=' /etc/os-release
ID=ubuntu
```
The dependency on `lsb-release` tool
is unnecessary, and pulls in additional big dependencies like `python3`:
```
 # apt show lsb-release | grep Depends
Depends: python3:any, distro-info-data
```
Which if used in a Docker container would make it unnecessarily big.

Signed-off-by: Jakub Sokołowski <[email protected]>
@jakubgs jakubgs force-pushed the drop-lsb-release-dep branch from cef8898 to 6ca1fe4 Compare February 6, 2023 10:06
@arnetheduck arnetheduck merged commit b79d267 into unstable Feb 6, 2023
@arnetheduck arnetheduck deleted the drop-lsb-release-dep branch February 6, 2023 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants