Richard Hughes
10b2fef1bd
trivial: Fix a 'Comparison is always true' LGTM warning
...
Not a bug, but somewhat muddled logic I guess.
2019-02-12 06:28:51 -06:00
Richard Hughes
ccd3b2a61f
uefi: Check the amount of free space on the ESP
...
Fixes https://github.com/hughsie/fwupd/issues/670
2018-09-12 13:56:02 +01:00
Richard Hughes
4adf3bb52c
trivial: Remove duplicate header includes
2018-09-04 08:22:39 -05:00
Richard Hughes
73bf2337c1
trivial: Add fu_common_strtoull() as a shared function
2018-08-28 09:41:10 +01:00
Mario Limonciello
df60f69814
uefi: Add special handling for /efi ( Closes #680 )
...
This is a similar problem to #627 (which was fixed by 9bdbbc5ca
).
Add special handling to allow writing to /efi/EFI
2018-08-22 16:43:20 -05:00
Mario Limonciello
25b49b6a6f
uefi: Add 'autofs' to supported filesystems ( Closes : #660 )
...
systemd-automount will unmount the ESP when not in use for some
people. This causes automatic ESP detection to fail.
In this case the ESP will need to be added to the conf file and
then this commit will let it keep working.
2018-08-20 07:44:17 -05:00
Mario Limonciello
9bdbbc5ca8
uefi: Handle /boot properly ( Closes : #627 )
...
/boot is a special cased directory when using ProtectSystem=full
Due to this, it's marked read only even if it's listed in ReadWritePaths.
Allow folks to use this for their ESP, but they need to create /boot/EFI
in advance of starting fwupd.
2018-08-09 09:28:50 -05:00
Richard Hughes
02c90d8a03
Remove the unused Emacs indenting headers from all source files
...
Fixes https://github.com/hughsie/fwupd/issues/636
2018-08-09 12:48:04 +01:00
Richard Hughes
03aead9fe7
uefi: Check the filesystem type when checking the ESP
2018-08-08 20:35:04 +01:00
Richard Hughes
99b0b1be04
uefi: Check the user-supplied ESP path
...
Additionally, if the user specified something invalid, do not autodetect the
ESP but return with a journal error. It seems wrong to ignore what the user
explicitly set and perhaps do something dangerous.
Alternative to https://github.com/hughsie/fwupd/pull/599
2018-08-08 20:35:04 +01:00
Mario Limonciello
e6e2bf9d97
trivial: Allow EFI application path to come from a different root
2018-07-10 14:10:16 -05:00
Mario Limonciello
44305bbde4
Rename EFI application from fwup<arch>.efi to fwupd<arch>.efi
...
This will prevent potentially clashing with fwupdate's EFI application
and allow them to remain co-installable.
2018-07-10 10:45:39 -05:00
Richard Hughes
04f8f267c5
trivial: Move the guessing of the ESP to common code
2018-06-28 15:51:11 +01:00
Richard Hughes
a80f79cb4d
uefi: Upload the firmware capsule without using libfwup
2018-06-28 15:51:11 +01:00
Richard Hughes
fb0e94857f
uefi: Upload the UX bitmap without using libfwup
2018-06-28 15:51:11 +01:00
Richard Hughes
5585b00892
uefi: Access /sys/firmware/efi/efivars directly rather than using efivars
...
This allows us to redirect the functions for our self tests.
2018-06-28 15:51:11 +01:00
Richard Hughes
83390f6556
uefi: Add functionality to parse the EFI framebuffer size
2018-06-28 15:51:11 +01:00
Richard Hughes
a593447695
uefi: Add functionality to get a bitmap size
2018-06-28 15:51:11 +01:00
Richard Hughes
6b8235660b
trivial: Move getting the secure boot status to the common file
2018-06-28 15:51:11 +01:00
Richard Hughes
0766857407
uefi: Read the ESRT entries from a directory in sysfs
2018-06-28 15:51:11 +01:00
Richard Hughes
bd80edd6be
uefi: Add a device superclass to model each ESRT entry
2018-06-28 15:51:11 +01:00