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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 31, 2012 at 2:04 PM, Colin Walters <walters@xxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-efi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux