From: Lennart Poettering Date: Thu, 24 Mar 2022 16:50:53 +0000 (+0100) Subject: hostnamed: properly reset hw model/vendor props before re-reading them X-Git-Tag: v251-rc1~33^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F22859%2Fhead;p=thirdparty%2Fsystemd.git hostnamed: properly reset hw model/vendor props before re-reading them Follow-up for 4fc7e4f374bf4401330e90e267227267abf1dcac --- diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index 01ac5bb8052..5d381e157ba 100644 --- a/src/hostname/hostnamed.c +++ b/src/hostname/hostnamed.c @@ -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],