]> git.ipfire.org Git - thirdparty/systemd.git/commit
hostnamed: use /proc/device-tree to get chassis type
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 9 Nov 2021 01:21:23 +0000 (10:21 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Nov 2021 19:42:50 +0000 (04:42 +0900)
commite6cbe6970f8e642a2229e0631eaa743fa86fcd29
tree8e4fa589657ed8ae1a516bafb950442a6442dbc8
parent227e2fc1a79cf52aacba605199eb48140450b138
hostnamed: use /proc/device-tree to get chassis type

From https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-firmware-ofw
---
Userspace must not use the /sys/firmware/devicetree/base
path directly, but instead should follow /proc/device-tree
symlink. It is possible that the absolute path will change
in the future, but the symlink is the stable ABI.
---

Addresses the comment https://github.com/systemd/systemd/pull/20731#discussion_r744095262.
src/hostname/hostnamed.c