FS#58629 - [fwupd] 1.0.7-1 missing backup files

Attached to Project: Community Packages
Opened by Cyrus Furbush (QCrr) - Thursday, 17 May 2018, 03:55 GMT
Last edited by Bruno Pagani (ArchangeGabriel) - Thursday, 17 May 2018, 14:21 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Bruno Pagani (ArchangeGabriel)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The fwupd package does not contain any of fwupd's configuration files under /etc/fwupd in the backup array in its PKGBUILD. In the case that the user has a EFI System Partion mounted in a location other than /boot/efi, the user configures this in /etc/fwupd/uefi.conf, but an update to fwupd later overwrites this file, future updates available through fwupd will fail (fwupd uses the location /boot/efi as the default location for the EFI System Partition).

Additional info:
$ pacman -Qii fwupd
Name : fwupd
Version : 1.0.7-1
Description : A simple daemon to allow session software to update firmware
Architecture : x86_64
URL : https://github.com/hughsie/fwupd
Licenses : GPL2
Groups : None
Provides : None
Depends On : appstream-glib fwupdate colord python
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 3.78 MiB
Packager : Bruno Pagani <archange@archlinux.org>
Build Date : Wed 09 May 2018 12:17:54 PM EDT
Install Date : Wed 09 May 2018 08:34:38 PM EDT
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
Backup Files :
(none)

$ cat /etc/uefi.conf
[uefi]

# For fwupdate 10+ allow overriding
# the compiled EFI system partition path
OverrideESPMountPoint=/boot
$

Steps to reproduce:

nano /etc/fwupd/uefi.conf # make changes to the this file
pacman -S fwupd
cat /etc/fwupd/uefi.conf # observe that the changes were overwritten

# if there are updates available through fwupdmgr and the ESP is not at /boot/efi and was properly configured in /etc/fwupd/uefi.conf
pacman -S fwupd
fwupdmgr refresh
fwupdmgr update # fails -- it tries to copy files to the nonexistent directory /boot/efi/efi/
This task depends upon

Closed by  Bruno Pagani (ArchangeGabriel)
Thursday, 17 May 2018, 14:21 GMT
Reason for closing:  Fixed
Additional comments about closing:  In svn (no point in releasing just this I suppose).
Comment by Cyrus Furbush (QCrr) - Thursday, 17 May 2018, 07:18 GMT
corrections:

under Additional info `cat /etc/uefi.conf' should be `cat /etc/fwupd/uefi.conf'
under Steps to reproduce fwupdmgr install --allow-reinstall <file>.cab specifically gives this error (the same error I saw when first attempting to run fwupdmgr update):
UEFI firmware update failed: {error #0} libfwup.c:1501 get_fd_and_media_path(): failed to make /boot/efi/EFI/arch/fw: No such file or directory

Comment by Bruno Pagani (ArchangeGabriel) - Thursday, 17 May 2018, 14:20 GMT
Oops, my bad. I’ve added both files directly under `/etc/fwupd/` to the `backup` array, I don’t think remotes should be edited.

Loading...