Ver código fonte

Fix "[Errno 13] Permission denied"-error that occurs when using the InfluxDB integration by using `snapcraft-preload` part in snap. Underlying issue seems to be related to Python’s multiprocessing module that is blocked by AppArmour.

Elwin Dokter 2 anos atrás
pai
commit
25c949441c
1 arquivos alterados com 10 adições e 0 exclusões
  1. 10 0
      snap/snapcraft.yaml

+ 10 - 0
snap/snapcraft.yaml

@@ -121,6 +121,7 @@ apps:
   home-assistant-snap:
     command: bin/hass --config $SNAP_DATA
     command-chain:
+      - bin/snapcraft-preload
       - bin/plug-bin
     daemon: simple
     environment:
@@ -155,6 +156,15 @@ apps:
 #    ppa: deadsnakes/ppa
 
 parts:
+  snapcraft-preload:
+    source: https://github.com/sergiusens/snapcraft-preload.git
+    plugin: cmake
+    cmake-parameters:
+      - -DCMAKE_INSTALL_PREFIX=/
+    build-packages:
+      - on amd64:
+        - gcc-multilib
+        - g++-multilib
   python:
     plugin: autotools
     source: https://www.python.org/ftp/python/3.9.12/Python-3.9.12.tgz