mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-31 10:48:59 +00:00

Shim has had a hard time with loading updates from arguments in the most recent release and this isn't the first time that happened. Give distros and users an escape hatch that will allow using GRUB instead.
29 lines
964 B
Bash
Executable File
29 lines
964 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
install_if_missing() {
|
|
directory=$(dirname ${2}/${1})
|
|
if [ "$2" != "/" ]; then
|
|
mkdir -p $directory
|
|
fi
|
|
if [ -d $directory ]; then
|
|
install -m 644 -C ${SNAP}/${1} ${2}/${1}
|
|
fi
|
|
}
|
|
|
|
#install policykit rules and actions
|
|
install_if_missing share/polkit-1/actions/org.freedesktop.fwupd.policy /usr
|
|
install_if_missing share/polkit-1/rules.d/org.freedesktop.fwupd.rules /usr
|
|
#install dbus related items
|
|
install_if_missing share/dbus-1/system-services/org.freedesktop.fwupd.service /usr
|
|
install_if_missing share/dbus-1/interfaces/org.freedesktop.fwupd.xml /usr
|
|
install_if_missing share/dbus-1/system.d/org.freedesktop.fwupd.conf /usr
|
|
#activation via systemd
|
|
install_if_missing etc/systemd/system/fwupd-activate.service /
|
|
systemctl daemon-reload
|
|
systemctl enable fwupd-activate
|
|
systemctl start fwupd-activate
|
|
#kernel modules
|
|
install_if_missing usr/lib/modules-load.d/fwupd-msr.conf /
|
|
#optional grub configuration
|
|
install_if_missing etc/grub.d/35_fwupd /
|