aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/opkg/opkg-collateral/tmp_dir
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/opkg/opkg-collateral/tmp_dir')
-rw-r--r--recipes/opkg/opkg-collateral/tmp_dir4
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes/opkg/opkg-collateral/tmp_dir b/recipes/opkg/opkg-collateral/tmp_dir
new file mode 100644
index 0000000000..7ba6abf6cf
--- /dev/null
+++ b/recipes/opkg/opkg-collateral/tmp_dir
@@ -0,0 +1,4 @@
+# We have whole /tmp in volatile tmpfs which is better than wear leveling NAND or uSD
+# But also bad for big upgrades where tmpfs eats whole memory,
+# device starts swapping (possibly using more NAND/uSD than temporary unpack) and then segfaults because of lack of space
+option tmp_dir /var/lib/opkg/tmp