mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
Sometimes it's interesting to condition units not just on the installation but on the physical device. Let's make ConditionHost= useful for that kind of checks, and while we are at it, also allow it to be used for condition checks on the boot id. Overloading like this is safe, since UUIDs are globally unique after all, and hence there should be no conflicts between the namespace of boot ids, machine ids and product ids. Finally, relax rules on uuid checking: if the specified string parses as uuid or id, also check it against the hostname, for setups where people name hosts after uuids. I wouldn't know why anyone would do that, but also, why not? shouldn'rt hurt allowing them and should not create ambiguity conflicts.
151 KiB
151 KiB