]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hostname: add hardware family, sku and version (#36956)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 23 May 2025 14:17:01 +0000 (23:17 +0900)
committerGitHub <noreply@github.com>
Fri, 23 May 2025 14:17:01 +0000 (23:17 +0900)
Add support for the hardware family, SKU (Stock-Keeping Unit) and
version. The values are read from the file /etc/machine-info or DMI as
fallback.

The entries are useful to provide an unified interface to collect detail
hardware information. The /etc/machine-info entries enable embedded
devices without UEFI support to provide the information via a common
interface.

Fixes: #31134
1  2 
src/hostname/hostnamectl.c

Simple merge