mirror of
https://github.com/systemd/systemd.git
synced 2024-11-28 04:33:36 +08:00
hostnamed: properly reset hw model/vendor props before re-reading them
Follow-up for 4fc7e4f374
This commit is contained in:
parent
0924ea2b26
commit
38639aa28f
@ -128,7 +128,9 @@ static void context_read_machine_info(Context *c) {
|
||||
(UINT64_C(1) << PROP_ICON_NAME) |
|
||||
(UINT64_C(1) << PROP_CHASSIS) |
|
||||
(UINT64_C(1) << PROP_DEPLOYMENT) |
|
||||
(UINT64_C(1) << PROP_LOCATION));
|
||||
(UINT64_C(1) << PROP_LOCATION) |
|
||||
(UINT64_C(1) << PROP_HARDWARE_VENDOR) |
|
||||
(UINT64_C(1) << PROP_HARDWARE_MODEL));
|
||||
|
||||
r = parse_env_file(NULL, "/etc/machine-info",
|
||||
"PRETTY_HOSTNAME", &c->data[PROP_PRETTY_HOSTNAME],
|
||||
|
Loading…
Reference in New Issue
Block a user