[systemd-devel] systemd-encrypt is a little painful

Lennart Poettering lennart at poettering.net
Mon Sep 7 15:30:15 UTC 2020


On Mo, 07.09.20 18:04, Mantas Mikulėnas (grawity at gmail.com) wrote:

> On Mon, Sep 7, 2020 at 5:33 PM Lennart Poettering <lennart at poettering.net>
> wrote:
>
> > On Mo, 07.09.20 13:51, Kai Hendry (hendry at webconverger.com) wrote:
> >
> > > Hi guys,
> > >
> > > After making https://www.youtube.com/watch?v=gh3jkIENmAM I'm
> > > thinking the install process could be a lot smoother if:
> > >
> > > somehow systemd could do the initramfs, i.e. take over mkinitcpio's
> > > hook role
> >
> > Hmm, mkinitcpio? That's arch? Does that run systemd inside?
> >
>
> It can optionally use systemd (although the default is to use a traditional
> busybox script), and it sounds like Kai *has* configured it that way,
> otherwise sd-encrypt wouldn't have had any effect whatsoever.
>
> "sd-encrypt" is the mkinitcpio module (hook) which adds the standard
> systemd-cryptsetup(-generator) & systemd-ask-password binaries.
>
> systemd-gpt-auto-generator should work, as it gets added together with the
> rest in the main "systemd" hook.

OK, so I guess we can summarize then that if the systemd flavour of
the initrd would have been used everything Kai asks for is already in
place... (or did I get this wrong?)

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list