On Mi, 04.07.18 11:24, Dimitri John Ledkov ([email protected]) wrote:

> Hi,
> 
> On 4 July 2018 at 10:22, Lennart Poettering <[email protected]> wrote:
> > On Mi, 04.07.18 07:24, Paul Menzel ([email protected]) 
> > wrote:
> >
> >> Dear systemd folks,
> >>
> >>
> >> Debian uses a shell script as `/init` in initrd, and I like to extend that,
> >> to set the time stamps for the initrd execution.
> >
> > This is part of the data that is serialized during the transition from
> > the systemd instance in the initrd to the systemd instance on the
> > host. The serialization is internal to systemd, and this is unlikely
> > to change, as it contains numerous bits of information that are
> > fragile and sensitive as the serialization really contains the full
> > service manager state with all its units and so on.
> >
> >> Is it possible to set that value from a shell script? If yes, could you
> >> please tell me how?
> >
> > It's not, and quite frankly I am not enthusiastic about the idea to
> > make this configurable...
> 
> At one point, I was considering to serialize just enough data to add
> these in the initramfs-tools (and/or systemd) as Debian specific
> patches to start supporting these measurements.
> And have a distro patch in systemd to read these measurements from a
> separately serialized file on boot-up.

Thinking about this a bit more: it would probably be OK to make PID 1
look for some env var for the timestamps and read them from there.

if you'd prep a patch for that, I'd look into it.

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to