[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/1] support loading of custom initrd images
From: |
Christian Hesse |
Subject: |
Re: [PATCH 1/1] support loading of custom initrd images |
Date: |
Mon, 8 Feb 2016 09:22:42 +0100 |
Andrei Borzenkov <address@hidden> on Sat, 2016/02/06 09:51:
> > Nevertheless I have another use case:
> > I do use Yubikeys in challenge/response mode to open my LUKS encrypted
> > partition. [1] (This is not specific for mkinitcpio but works with dracut
> > as well.) The challenges are stored in an extra initramfs. This is
> > required if you want to update the challenge on every use - recompressing
> > the initramfs on every boot is not a good option.
> >
>
> Why your initrd cannot simply read this file from /boot itself?
Because just having the files around is easier than handling mount and
umount. My code is run from udev when a key is inserted, I suppose fiddling
with mount will confuse systemd units.
--
main(a){char*c=/* Schoene Gruesse */"B?IJj;MEH"
"CX:;",b;for(a/* Chris get my mail address: */=0;b=c[a++];)
putchar(b-1/(/* gcc -o sig sig.c && ./sig */b/42*2-3)*42);}
pgpQ6US1ZD_7S.pgp
Description: OpenPGP digital signature
Re: [PATCH 1/1] support loading of custom initrd images, Vladimir 'phcoder' Serbinenko, 2016/02/05