This logic is a bit convoluted and contrary to the comment above it doesn't check for a blank /etc/machine-id, only if the file is missing entirely.