Update motd/00-header to use os-release
Bug #2008088 reported by
Corentin Noël
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
base-files (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The now recommended way to specify an OS version is in /usr/lib/os-release that is shipped with Ubuntu since a while now.
The lsb-release utility has now long switched to using os-release files https:/
It would be better for the motd header to look like this:
```
[ -r /usr/lib/os-release ] && . /usr/lib/os-release
if [ -z "$PRETTY_NAME" ] && [ -x /usr/bin/
# Fall back to using the very slow lsb_release utility
PRETTY_
fi
printf "Welcome to %s (%s %s %s)\n" "$PRETTY_NAME" "$(uname -o)" "$(uname -r)" "$(uname -m)"
```
description: | updated |
To post a comment you must log in.