[systemd-devel] Incorrect logic when /etc/machine-id is missing
Lennart Poettering
lennart at poettering.net
Wed Oct 8 13:34:58 PDT 2014
On Fri, 03.10.14 07:07, Jan Synacek (jsynacek at redhat.com) wrote:
> >> Now I was determined to fix this bug, however I'm left clueless as to
> >> how this is actually supposed to work. Is the entire logic in this piece
> >> of code wrong, or am I missing something? How is the
> >> (re)generating/mounting of machine-id supposed to work?
> >
> > I am pretty sure we *should* fail to boot if /etc/machine-id cannot be
> > initialized because the root dir is read-only. However, we probably
> > should print a good messages in this case, explaining the rationale.
>
> Thanks for the explanation! And yes, "Cannot open %s" isn't that helpful
> in this case.
I'd be delighted to take a patch for this! ;-)
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list