Skip to content

Use /usr/lib/os-release and /etc/os-release #2337

@LowJack187

Description

@LowJack187

Describe the bug.

Make sure your program can skin a cat multiple ways! Look for it in both places and new users will be able to actually install the thing.

The file /etc/os-release takes precedence over /usr/lib/os-release. Applications should check for the former, and exclusively use its data if it exists, and only fall back to /usr/lib/os-release if it is missing. Applications should not read data from both files at the same time. /usr/lib/os-release is the recommended place to store OS release information as part of vendor trees. /etc/os-release should be a relative symlink to /usr/lib/os-release, to provide compatibility with applications only looking at /etc.

Sauce: https://bbs.archlinux.org/viewtopic.php?id=251724

Please attach log file(s) here if you have any.

Gen X doesn't need log files. ;-)

Reproduction Steps

Remove os-release file @ /etc/os-release and/or break sim link to /usr/lib/os-release. This is to make it act like this info didn't get placed correctly.

Expected Behavior

Microsoft employees to test their code!

Exceptions & Errors (if any)

No response

.NET Install Tool Version

2.3.6

Your operating system? Please provide more detail, such as the version and or distro above.

Linux

VS Code Version

Arch

Metadata

Metadata

Assignees

Labels

P2bugSomething isn't workingux

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions