[systemd-devel] [PATCH] systemd: mount the EFI variable filesystem

Kay Sievers kay at vrfy.org
Wed Oct 31 06:13:30 PDT 2012


On Wed, Oct 31, 2012 at 2:04 PM, Colin Walters <walters at verbum.org> wrote:
> On Mon, 2012-10-29 at 10:21 +0800, joeyli wrote:
>
>> I tested this patch on my UEFI notebook with latest EFI kernel git tree,
>> the efivarfs mounted normally after system boot and I can delete/add EFI
>> variable through /sys/firmware/efi/efivars.
>
> This causes systemd to output a warning if the kernel doesn't have an
> efivars module.  I suppose to do this kind of thing "right" we'd
> have to conditionalize the module loads on available kernel version they
> first appeared in?

We should probably suppress the warning that the module cannot be
loaded. And then maybe make the mount conditional, depending on the
existence of the target directory.

This should make all that only trigger when the kernel module is
available or it is compiled-in (libkmod tells the same), and do
nothing on older kernel, kernels without the filesysystem, or
platforms without EFI.

We generally never want to depend on specific kernel versions, because
people are free to backport stuff to older kernel versions or free to
disable things in the kernel which are not absolutely required.

Kay


More information about the systemd-devel mailing list