hostnamed: add explicit BUS_ERROR_NO_HARDWARE_SERIAL error
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Mar 2024 13:46:27 +0000 (14:46 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Mar 2024 21:37:38 +0000 (22:37 +0100)
commit171ddae1a122e9c97b4ef12ccb2d29e1ba7a318a
treefac5991b905bee03db4a501d3a491b3960ecbaea
parent64724e0579366f89914b0b8f8791e127b7fbca93
hostnamed: add explicit BUS_ERROR_NO_HARDWARE_SERIAL error

For the very similar case of the product UUID we have its own error
BUS_ERROR_NO_PRODUCT_UUID if we have no UUID. Let's mirror this for the
hardware serial, and expose the same, to keep things nicely symmteric.
src/hostname/hostnamed.c
src/libsystemd/sd-bus/bus-common-errors.c
src/libsystemd/sd-bus/bus-common-errors.h