mirror of
https://git.proxmox.com/git/fwupd
synced 2025-06-29 23:58:34 +00:00

This patch is adding the fwupd wrapper for Qubes. The wrapper provides fwupd functionalities for Qubes R4.1. It creates three packages (two RPMs and one Debian package): fwupd-qubes-dom0 (RPM) fwupd-qubes-vm (RPM) fwupd-qubes-vm-whonix (deb) More information about the wrapper could be found in the contrib/qubes/README.md Signed-off-by: Norbert Kamiński <norbert.kaminski@3mdeb.com>
12 lines
338 B
Bash
12 lines
338 B
Bash
#!/bin/bash
|
|
|
|
HOME_DIR=`getent passwd user | awk '{ split($$0,a,":"); print a[6]}'`
|
|
|
|
if [ -z "$HOME_DIR" ]; then
|
|
echo "Default user does not exist!!" >&2
|
|
echo "Package does not create fwupd directories" >&2
|
|
else
|
|
mkdir -p $HOME_DIR/.cache/fwupd_download_updates
|
|
chown -R user:user $HOME_DIR/.cache/fwupd_download_updates
|
|
fi
|