trivial: snap: install shim into the snap as well

Fixes: #5485
This commit is contained in:
Mario Limonciello 2023-02-09 10:50:20 -06:00 committed by Mario Limonciello
parent 4a2dc41b7e
commit fc25813bae

View File

@ -122,6 +122,7 @@ parts:
sed -i 's!SystemdService=\(.*\)!SystemdService=snap.fwupd.fwupd.service!' \ sed -i 's!SystemdService=\(.*\)!SystemdService=snap.fwupd.fwupd.service!' \
${CRAFT_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 cp -R /usr/libexec/fwupd/efi ${CRAFT_PART_INSTALL}/libexec/fwupd
cp /usr/lib/shim/shimx64.efi.signed ${CRAFT_PART_INSTALL}/libexec/fwupd/efi/
sed -i 's,^MetadataURI=.*$,MetadataURI=file:///var/snap/fwupd/common,' "${CRAFT_PART_INSTALL}/etc/fwupd/remotes.d/vendor-directory.conf" sed -i 's,^MetadataURI=.*$,MetadataURI=file:///var/snap/fwupd/common,' "${CRAFT_PART_INSTALL}/etc/fwupd/remotes.d/vendor-directory.conf"
override-pull: | override-pull: |
craftctl default craftctl default
@ -168,6 +169,7 @@ parts:
- python3-cairo - python3-cairo
- python3-gi - python3-gi
- protobuf-c-compiler - protobuf-c-compiler
- shim-signed
- systemd - systemd
- uuid-dev - uuid-dev
stage-packages: stage-packages: