From 5712beb181155662e9db70ca7c592a570a47fcb5 Mon Sep 17 00:00:00 2001
From: j1nx
Date: Thu, 4 Mar 2021 20:50:26 +0100
Subject: [PATCH] Fix ramdisk permission errors making it below to the mycroft
user
---
buildroot-external/rootfs-overlay/etc/tmpfiles.d/mycroft.conf | 1 +
.../rootfs-overlay/usr/lib/systemd/system/ramdisk.mount | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/buildroot-external/rootfs-overlay/etc/tmpfiles.d/mycroft.conf b/buildroot-external/rootfs-overlay/etc/tmpfiles.d/mycroft.conf
index 75383d19..76ee8fd5 100644
--- a/buildroot-external/rootfs-overlay/etc/tmpfiles.d/mycroft.conf
+++ b/buildroot-external/rootfs-overlay/etc/tmpfiles.d/mycroft.conf
@@ -1,2 +1,3 @@
d /var/log/mycroft 700 mycroft mycroft
Z /opt/mycroft - mycroft mycroft
+d /ramdisk 700 mycroft mycroft
diff --git a/buildroot-external/rootfs-overlay/usr/lib/systemd/system/ramdisk.mount b/buildroot-external/rootfs-overlay/usr/lib/systemd/system/ramdisk.mount
index 74769558..75bd91f9 100644
--- a/buildroot-external/rootfs-overlay/usr/lib/systemd/system/ramdisk.mount
+++ b/buildroot-external/rootfs-overlay/usr/lib/systemd/system/ramdisk.mount
@@ -10,7 +10,7 @@ Conflicts=umount.target
What=/dev/zram1
Where=/ramdisk
Type=ext4
-Options=nobarrier,strictatime,nosuid,nodev
+Options=rw,nobarrier,strictatime,nosuid,nodev
[Install]
WantedBy=local-fs.target