Skip to content

Commit 2fce288

Browse files
Ysorokohisi-odoo
authored andcommitted
[FIX] iot_box_image: increace /tmp size
Currently Chromium generates a lot of temporary files like .org.chromium.Chromium.0ouinx in /tmp directory This leads to the kiosk using IoT Boxes being non responsive and eventually having issues/crashing This PR increases the size of /tmp directory following the recommendation of it being half the size of the ram (which is 2GB for our rpi 4) We also increase /etc directory size to allow more cups storage where it it used Recommendation link: https://docs.aws.amazon.com/linux/al2023/ug/filesystem-slash-tmp.html closes odoo#209826 X-original-commit: 2ea3b8b Signed-off-by: Max Whale (mawh) <[email protected]>
1 parent a39d19f commit 2fce288

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

addons/iot_box_image/configuration/setup_ramdisks.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ create_ramdisk () {
1616
}
1717

1818
echo "Creating ramdisks..."
19+
# Note: As of 2025 we are using 2 Gb ram rpi4 as basic IoT Boxes.
20+
# The 2 Gb limit applies here
1921
create_ramdisk "/var" "192M"
20-
create_ramdisk "/etc" "16M"
21-
create_ramdisk "/tmp" "64M"
22+
create_ramdisk "/etc" "64M"
23+
create_ramdisk "/tmp" "1G" # big size necessary for chromium kiosk usage
2224

2325
# bind mount / so that we can get to the real /var and /etc
2426
mount --bind / /root_bypass_ramdisks

0 commit comments

Comments
 (0)