X Tutup
Skip to content

Commit 38639aa

Browse files
committed
hostnamed: properly reset hw model/vendor props before re-reading them
Follow-up for 4fc7e4f
1 parent 0924ea2 commit 38639aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hostname/hostnamed.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ static void context_read_machine_info(Context *c) {
128128
(UINT64_C(1) << PROP_ICON_NAME) |
129129
(UINT64_C(1) << PROP_CHASSIS) |
130130
(UINT64_C(1) << PROP_DEPLOYMENT) |
131-
(UINT64_C(1) << PROP_LOCATION));
131+
(UINT64_C(1) << PROP_LOCATION) |
132+
(UINT64_C(1) << PROP_HARDWARE_VENDOR) |
133+
(UINT64_C(1) << PROP_HARDWARE_MODEL));
132134

133135
r = parse_env_file(NULL, "/etc/machine-info",
134136
"PRETTY_HOSTNAME", &c->data[PROP_PRETTY_HOSTNAME],

0 commit comments

Comments
 (0)
X Tutup