From b7ec831cdbdb567d6e591d696dcb45e65dfbd476 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Wed, 19 Oct 2022 11:17:16 -0500 Subject: [PATCH] trivial: snap: move EFI binaries to expected location We compile with prefix "/", but Ubuntu (where we get the binaries from) compiles with prefix "/usr". Correct the location of these binaries in the snap. --- snap/snapcraft.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 03ab6d9e5..14ca1dfb5 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -81,13 +81,16 @@ parts: ${CRAFT_PART_INSTALL}/share/bash-completion/completions/* # fixes up dbus service for classic snap sed -i 's!SystemdService=\(.*\)!SystemdService=snap.fwupd.fwupd.service!' \ - ${SNAPCRAFT_PART_INSTALL}/share/dbus-1/system-services/org.freedesktop.fwupd.service + ${CRAFT_PART_INSTALL}/share/dbus-1/system-services/org.freedesktop.fwupd.service + cp -R /usr/libexec/fwupd/efi ${CRAFT_PART_INSTALL}/libexec/fwupd override-pull: | craftctl default craftctl set version=$(git describe HEAD --always) build-packages: - bash-completion - curl + - fwupd-signed + - fwupd-unsigned - gettext - gcab - gnu-efi @@ -130,8 +133,6 @@ parts: - systemd - uuid-dev stage-packages: - - fwupd-signed - - fwupd-unsigned - libunbound8 - libevent-2.1-7 - libnghttp2-14 @@ -177,6 +178,7 @@ parts: # /usr/bin/gpg2 - -usr/bin - -usr/sbin + - -usr/libexec - -usr/share/man - -usr/share/GConf - -etc/X11