Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 720746

Summary: sys-apps/fwupd + systemd: needs to mkdir /var/cache/fwupd
Product: Gentoo Linux Reporter: Ed Santiago <gentoo>
Component: Current packagesAssignee: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ed Santiago 2020-05-03 00:13:29 UTC
New install of fwupd on a systemd-based gentoo:

    # fwupdmgr get-devices
    [hangs 25 seconds]
    Failed to connect to daemon: Error calling StartServiceByName for org.freedesktop.fwupd: Failed to activate service 'org.freedesktop.fwupd': timed out (service_start_timeout=25000ms)

Same with refresh, get-updates.

    # systemctl status fwupd |cat
    ● fwupd.service - Firmware update daemon
         Loaded: loaded (/lib/systemd/system/fwupd.service; static; vendor preset: disabled)
         Active: failed (Result: exit-code) since Sat 2020-05-02 18:07:07 MDT; 1min 8s ago
           Docs: https://fwupd.org/
        Process: 303453 ExecStart=/usr/libexec/fwupd/fwupd (code=exited, status=226/NAMESPACE)
       Main PID: 303453 (code=exited, status=226/NAMESPACE)
            CPU: 6ms

    May 02 18:07:07 ... systemd[1]: Starting Firmware update daemon...
    May 02 18:07:07 ... systemd[303453]: fwupd.service: Failed to set up mount namespacing: /run/systemd/unit-root/var/cache/fwupd: No such file or directory
    May 02 18:07:07 ... systemd[303453]: fwupd.service: Failed at step NAMESPACE spawning /usr/libexec/fwupd/fwupd: No such file or directory
    May 02 18:07:07 ... systemd[1]: fwupd.service: Main process exited, code=exited, status=226/NAMESPACE
    May 02 18:07:07 ... systemd[1]: fwupd.service: Failed with result 'exit-code'.
    May 02 18:07:07 ... systemd[1]: Failed to start Firmware update daemon.

SOLUTION: mkdir /var/cache/fwupd

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2020-07-31 12:02:35 UTC

*** This bug has been marked as a duplicate of bug 707084 ***