Browse Source

rpm: add workaround for Fedora's systemd package bug

https://bugzilla.redhat.com/1559286

Fixes QubesOS/qubes-issues#3983
Marek Marczykowski-Górecki 5 years ago
parent
commit
e816a4600a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      rpm_spec/core-agent.spec.in

+ 6 - 0
rpm_spec/core-agent.spec.in

@@ -347,6 +347,12 @@ if [ -L /usr/local ]; then
     mount /usr/local || :
 fi
 
+# workaround for Fedora's systemd package bug
+# https://bugzilla.redhat.com/1559286
+if [ -d /var/lib/private ]; then
+    chmod 700 /var/lib/private
+fi
+
 if test -f /etc/yum.conf && ! grep -q '/etc/yum\.conf\.d/qubes-proxy\.conf' /etc/yum.conf; then
   echo >> /etc/yum.conf
   echo '# Yum does not support inclusion of config dir...' >> /etc/yum.conf