MACHINE-INFO(5) | machine-info | MACHINE-INFO(5) |
NAME¶
machine-info - Local machine information file
SYNOPSIS¶
/etc/machine-info
DESCRIPTION¶
The /etc/machine-info file contains machine metadata.
The format of machine-info is a newline-separated list of environment-like shell-compatible variable assignments, ignoring comments and empty lines. It is possible to source the configuration from shell scripts, however, beyond mere variable assignments no shell features are supported, allowing applications to read the file without implementing a shell compatible execution engine. See os-release(5) for a detailed description of the format.
/etc/machine-info contains metadata about the machine that is set by the user or administrator. The settings configured here have the highest precedence. When not set, appropriate values may be determined automatically, based on the information about the hardware or other configuration files. It is thus completely fine for this file to not be present.
You may use hostnamectl(1) to change the settings of this file from the command line.
OPTIONS¶
The following machine metadata parameters may be set using /etc/machine-info:
PRETTY_HOSTNAME=
ICON_NAME=
CHASSIS=
Note that most systems allow detection of the chassis type automatically (based on firmware information or suchlike). This setting should only be used to override a misdetection or to manually configure the chassis type where automatic detection is not available.
Added in version 197.
DEPLOYMENT=
Added in version 216.
LOCATION=
Added in version 216.
HARDWARE_VENDOR=
Added in version 251.
HARDWARE_MODEL=
Added in version 251.
EXAMPLE¶
PRETTY_HOSTNAME="Lennart's Tablet" ICON_NAME=computer-tablet CHASSIS=tablet DEPLOYMENT=production
SEE ALSO¶
systemd(1), os-release(5), hostname(5), machine-id(5), hostnamectl(1), systemd-hostnamed.service(8)
NOTES¶
- 1.
- XDG Icon Naming Specification
systemd 256.7 |